From d0e7738654ff60215acba15760859ce68eb7223b Mon Sep 17 00:00:00 2001 From: Dakota Clark Date: Tue, 6 Aug 2024 19:38:21 -0700 Subject: [PATCH] feat: update kiota api to 25.0.2 --- src/Directory.Packages.props | 42 +- .../Admin/AdminRequestBuilder.cs | 24 +- .../AdminEvents/AdminEventsRequestBuilder.cs | 62 ++- .../AttackDetectionRequestBuilder.cs | 24 +- .../BruteForce/BruteForceRequestBuilder.cs | 24 +- .../Users/Item/WithUserGetResponse.cs | 32 +- .../Users/Item/WithUserItemRequestBuilder.cs | 54 +- .../BruteForce/Users/UsersRequestBuilder.cs | 54 +- .../AuthenticationRequestBuilder.cs | 79 +-- .../AuthenticatorProviders.cs | 32 +- .../AuthenticatorProvidersRequestBuilder.cs | 44 +- .../ClientAuthenticatorProviders.cs | 32 +- ...entAuthenticatorProvidersRequestBuilder.cs | 44 +- .../Config/ConfigRequestBuilder.cs | 57 +- .../Config/Item/ConfigItemRequestBuilder.cs | 66 ++- .../ConfigDescriptionRequestBuilder.cs | 35 +- .../Item/WithProviderItemRequestBuilder.cs | 42 +- .../Executions/ExecutionsRequestBuilder.cs | 57 +- .../Item/Config/ConfigRequestBuilder.cs | 57 +- .../Config/Item/ConfigItemRequestBuilder.cs | 42 +- .../LowerPriorityRequestBuilder.cs | 38 +- .../RaisePriorityRequestBuilder.cs | 38 +- .../Item/WithExecutionItemRequestBuilder.cs | 71 ++- .../Flows/FlowsRequestBuilder.cs | 75 ++- .../Flows/Item/Copy/CopyPostRequestBody.cs | 32 +- .../Flows/Item/Copy/CopyRequestBuilder.cs | 41 +- .../Execution/ExecutionPostRequestBody.cs | 32 +- .../Execution/ExecutionRequestBuilder.cs | 41 +- .../Executions/ExecutionsRequestBuilder.cs | 69 ++- .../Executions/Flow/FlowPostRequestBody.cs | 32 +- .../Executions/Flow/FlowRequestBuilder.cs | 41 +- .../Flows/Item/FlowAliasItemRequestBuilder.cs | 79 +-- .../FormActionProviders.cs | 32 +- .../FormActionProvidersRequestBuilder.cs | 44 +- .../FormProviders/FormProviders.cs | 32 +- .../FormProvidersRequestBuilder.cs | 44 +- .../PerClientConfigDescriptionGetResponse.cs | 32 +- ...erClientConfigDescriptionRequestBuilder.cs | 42 +- .../RegisterRequiredActionPostRequestBody.cs | 32 +- .../RegisterRequiredActionRequestBuilder.cs | 38 +- .../Item/Config/ConfigRequestBuilder.cs | 157 ++++++ .../ConfigDescriptionRequestBuilder.cs | 82 +++ .../LowerPriorityRequestBuilder.cs | 38 +- .../RaisePriorityRequestBuilder.cs | 38 +- .../Item/WithAliasItemRequestBuilder.cs | 88 ++- .../RequiredActionsRequestBuilder.cs | 60 ++- .../UnregisteredRequiredActions.cs | 32 +- ...registeredRequiredActionsRequestBuilder.cs | 44 +- ...lientDescriptionConverterRequestBuilder.cs | 42 +- .../ClientPoliciesRequestBuilder.cs | 29 +- .../Policies/PoliciesRequestBuilder.cs | 62 ++- .../Profiles/ProfilesRequestBuilder.cs | 62 ++- .../ClientRegistrationPolicyRequestBuilder.cs | 24 +- .../Providers/ProvidersRequestBuilder.cs | 44 +- .../ClientScopesRequestBuilder.cs | 72 ++- .../Item/ClientScopeItemRequestBuilder.cs | 76 ++- .../AddModels/AddModelsRequestBuilder.cs | 38 +- .../Item/ModelsItemRequestBuilder.cs | 66 ++- .../ModelsRequests/ModelsRequestBuilder.cs | 72 ++- .../Item/WithProtocolItemRequestBuilder.cs | 44 +- .../Protocol/ProtocolRequestBuilder.cs | 35 +- .../ProtocolMappersRequestBuilder.cs | 34 +- .../Clients/ClientsRequestBuilder.cs | 35 +- .../Item/Available/AvailableRequestBuilder.cs | 44 +- .../Item/Composite/CompositeRequestBuilder.cs | 48 +- .../Item/WithClientItemRequestBuilder.cs | 78 ++- .../Available/AvailableRequestBuilder.cs | 44 +- .../Composite/CompositeRequestBuilder.cs | 48 +- .../Realm/RealmRequestBuilder.cs | 78 ++- .../ScopeMappingsRequestBuilder.cs | 52 +- .../ClientSessionStats/ClientSessionStats.cs | 32 +- .../ClientSessionStatsRequestBuilder.cs | 44 +- .../ClientTemplatesRequestBuilder.cs | 72 ++- .../Item/ClientScopeItemRequestBuilder.cs | 76 ++- .../AddModels/AddModelsRequestBuilder.cs | 38 +- .../Item/ModelsItemRequestBuilder.cs | 66 ++- .../ModelsRequests/ModelsRequestBuilder.cs | 72 ++- .../Item/WithProtocolItemRequestBuilder.cs | 44 +- .../Protocol/ProtocolRequestBuilder.cs | 35 +- .../ProtocolMappersRequestBuilder.cs | 34 +- .../Clients/ClientsRequestBuilder.cs | 35 +- .../Item/Available/AvailableRequestBuilder.cs | 44 +- .../Item/Composite/CompositeRequestBuilder.cs | 48 +- .../Item/WithClientItemRequestBuilder.cs | 78 ++- .../Available/AvailableRequestBuilder.cs | 44 +- .../Composite/CompositeRequestBuilder.cs | 48 +- .../Realm/RealmRequestBuilder.cs | 78 ++- .../ScopeMappingsRequestBuilder.cs | 52 +- .../ClientTypes/ClientTypesRequestBuilder.cs | 122 +++++ .../Item/Clients/ClientsRequestBuilder.cs | 78 ++- .../Clients/Item/Authz/AuthzRequestBuilder.cs | 24 +- .../Import/ImportRequestBuilder.cs | 38 +- .../Evaluate/EvaluateRequestBuilder.cs | 42 +- .../Permission/PermissionRequestBuilder.cs | 79 ++- .../Providers/ProvidersRequestBuilder.cs | 44 +- .../Permission/Search/SearchRequestBuilder.cs | 48 +- .../Policy/Evaluate/EvaluateRequestBuilder.cs | 42 +- .../Policy/PolicyRequestBuilder.cs | 79 ++- .../Providers/ProvidersRequestBuilder.cs | 44 +- .../Policy/Search/SearchRequestBuilder.cs | 48 +- .../Attributes/AttributesRequestBuilder.cs | 44 +- .../Permissions/PermissionsRequestBuilder.cs | 50 +- .../Item/ResourceItemRequestBuilder.cs | 99 ++-- .../Item/Scopes/ScopesRequestBuilder.cs | 50 +- .../Resource/ResourceRequestBuilder.cs | 93 ++-- .../Resource/Search/SearchRequestBuilder.cs | 48 +- .../ResourceServerRequestBuilder.cs | 84 +-- .../Permissions/PermissionsRequestBuilder.cs | 44 +- .../Item/Resources/ResourcesRequestBuilder.cs | 44 +- .../Scope/Item/ScopeItemRequestBuilder.cs | 76 ++- .../Scope/ScopeRequestBuilder.cs | 85 +-- .../Scope/Search/SearchRequestBuilder.cs | 50 +- .../Settings/SettingsRequestBuilder.cs | 42 +- .../CertificatesRequestBuilder.cs | 35 +- .../Item/Download/DownloadRequestBuilder.cs | 38 +- .../Item/Generate/GenerateRequestBuilder.cs | 42 +- .../GenerateAndDownloadRequestBuilder.cs | 38 +- .../Item/Upload/UploadRequestBuilder.cs | 42 +- .../UploadCertificateRequestBuilder.cs | 42 +- .../Item/WithAttrItemRequestBuilder.cs | 67 ++- .../ClientSecretRequestBuilder.cs | 63 ++- .../Rotated/RotatedRequestBuilder.cs | 54 +- .../Item/ClientUuItemRequestBuilder.cs | 166 +++--- .../DefaultClientScopesRequestBuilder.cs | 60 ++- .../Item/WithClientScopeItemRequestBuilder.cs | 50 +- .../EvaluateScopesRequestBuilder.cs | 44 +- ...enerateExampleAccessTokenRequestBuilder.cs | 46 +- .../GenerateExampleIdTokenRequestBuilder.cs | 46 +- .../GenerateExampleUserinfoGetResponse.cs | 32 +- .../GenerateExampleUserinfoRequestBuilder.cs | 46 +- .../ProtocolMappersRequestBuilder.cs | 48 +- .../Item/Granted/GrantedRequestBuilder.cs | 48 +- .../NotGranted/NotGrantedRequestBuilder.cs | 48 +- .../WithRoleContainerItemRequestBuilder.cs | 29 +- .../ScopeMappingsRequestBuilder.cs | 35 +- .../InstallationRequestBuilder.cs | 24 +- .../Item/WithProviderItemRequestBuilder.cs | 38 +- .../Providers/ProvidersRequestBuilder.cs | 35 +- .../Management/ManagementRequestBuilder.cs | 24 +- .../Permissions/PermissionsRequestBuilder.cs | 58 +- .../Nodes/Item/WithNodeItemRequestBuilder.cs | 38 +- .../Item/Nodes/NodesPostRequestBody.cs | 32 +- .../Clients/Item/Nodes/NodesRequestBuilder.cs | 54 +- .../OfflineSessionCountGetResponse.cs | 32 +- .../OfflineSessionCountRequestBuilder.cs | 42 +- .../OfflineSessionsRequestBuilder.cs | 48 +- .../Item/WithClientScopeItemRequestBuilder.cs | 50 +- .../OptionalClientScopesRequestBuilder.cs | 60 ++- .../AddModels/AddModelsRequestBuilder.cs | 38 +- .../Item/ModelsItemRequestBuilder.cs | 66 ++- .../ModelsRequests/ModelsRequestBuilder.cs | 72 ++- .../Item/WithProtocolItemRequestBuilder.cs | 44 +- .../Protocol/ProtocolRequestBuilder.cs | 35 +- .../ProtocolMappersRequestBuilder.cs | 34 +- .../PushRevocationRequestBuilder.cs | 42 +- .../RegistrationAccessTokenRequestBuilder.cs | 42 +- .../Clients/ClientsRequestBuilder.cs | 35 +- .../Item/ClientUuItemRequestBuilder.cs | 44 +- .../Composites/CompositesRequestBuilder.cs | 78 ++- .../Composites/Realm/RealmRequestBuilder.cs | 44 +- .../Roles/Item/Groups/GroupsRequestBuilder.cs | 48 +- .../Management/ManagementRequestBuilder.cs | 24 +- .../Permissions/PermissionsRequestBuilder.cs | 58 +- .../Roles/Item/RoleNameItemRequestBuilder.cs | 86 +-- .../Roles/Item/Users/UsersRequestBuilder.cs | 48 +- .../Clients/Item/Roles/RolesRequestBuilder.cs | 78 ++- .../Clients/ClientsRequestBuilder.cs | 35 +- .../Item/Available/AvailableRequestBuilder.cs | 44 +- .../Item/Composite/CompositeRequestBuilder.cs | 48 +- .../Item/WithClientItemRequestBuilder.cs | 78 ++- .../Available/AvailableRequestBuilder.cs | 44 +- .../Composite/CompositeRequestBuilder.cs | 48 +- .../Realm/RealmRequestBuilder.cs | 78 ++- .../ScopeMappingsRequestBuilder.cs | 52 +- .../ServiceAccountUserRequestBuilder.cs | 42 +- .../SessionCount/SessionCountGetResponse.cs | 32 +- .../SessionCountRequestBuilder.cs | 42 +- .../TestNodesAvailableRequestBuilder.cs | 42 +- .../UserSessionsRequestBuilder.cs | 48 +- .../ClientsInitialAccessRequestBuilder.cs | 76 ++- .../ClientsInitialAccessItemRequestBuilder.cs | 38 +- .../Components/ComponentsRequestBuilder.cs | 80 ++- .../Item/ComponentsItemRequestBuilder.cs | 71 ++- .../SubComponentTypesRequestBuilder.cs | 48 +- .../CredentialRegistratorsRequestBuilder.cs | 40 +- ...efaultDefaultClientScopesRequestBuilder.cs | 60 ++- .../Item/WithClientScopeItemRequestBuilder.cs | 50 +- .../DefaultGroupsRequestBuilder.cs | 60 ++- .../Item/WithGroupItemRequestBuilder.cs | 50 +- ...faultOptionalClientScopesRequestBuilder.cs | 60 ++- .../Item/WithClientScopeItemRequestBuilder.cs | 50 +- .../Events/Config/ConfigRequestBuilder.cs | 54 +- .../Item/Events/EventsRequestBuilder.cs | 67 ++- .../GroupByPath/GroupByPathRequestBuilder.cs | 35 +- .../Item/WithPathItemRequestBuilder.cs | 42 +- .../Item/Groups/Count/CountGetResponse.cs | 32 +- .../Item/Groups/Count/CountRequestBuilder.cs | 46 +- .../Item/Groups/GroupsRequestBuilder.cs | 83 +-- .../Item/Children/ChildrenRequestBuilder.cs | 78 ++- .../Groups/Item/GroupItemRequestBuilder.cs | 86 +-- .../Management/ManagementRequestBuilder.cs | 24 +- .../Permissions/PermissionsRequestBuilder.cs | 58 +- .../Item/Members/MembersRequestBuilder.cs | 48 +- .../Clients/ClientsRequestBuilder.cs | 37 +- .../Item/Available/AvailableRequestBuilder.cs | 50 +- .../Clients/Item/ClientItemRequestBuilder.cs | 175 ++++++ .../Item/Composite/CompositeRequestBuilder.cs | 50 +- .../Available/AvailableRequestBuilder.cs | 44 +- .../Composite/CompositeRequestBuilder.cs | 48 +- .../RoleMappings/Realm/RealmRequestBuilder.cs | 78 ++- .../RoleMappingsRequestBuilder.cs | 52 +- .../IdentityProviderRequestBuilder.cs | 34 +- .../ImportConfigPostRequestBody.cs | 32 +- .../ImportConfig/ImportConfigPostResponse.cs | 32 +- .../ImportConfigRequestBuilder.cs | 42 +- .../Instances/InstancesRequestBuilder.cs | 78 ++- .../Item/Export/ExportRequestBuilder.cs | 42 +- .../Management/ManagementRequestBuilder.cs | 24 +- .../Permissions/PermissionsRequestBuilder.cs | 58 +- .../MapperTypes/MapperTypesRequestBuilder.cs | 38 +- .../Mappers/Item/MappersItemRequestBuilder.cs | 66 ++- .../Item/Mappers/MappersRequestBuilder.cs | 72 ++- .../ReloadKeys/ReloadKeysRequestBuilder.cs | 38 +- .../Item/WithAliasItemRequestBuilder.cs | 91 ++-- .../Item/WithProvider_GetResponse.cs | 32 +- .../Item/WithProvider_ItemRequestBuilder.cs | 42 +- .../Providers/ProvidersRequestBuilder.cs | 35 +- .../Realms/Item/Keys/KeysRequestBuilder.cs | 42 +- .../Item/Item/WithKeyItemRequestBuilder.cs | 62 ++- .../Item/WithLocaleGetResponse.cs | 32 +- .../Item/WithLocaleItemRequestBuilder.cs | 92 ++-- .../Item/WithLocalePostRequestBody.cs | 32 +- .../LocalizationRequestBuilder.cs | 56 +- .../Item/LogoutAll/LogoutAllRequestBuilder.cs | 42 +- .../PartialExportRequestBuilder.cs | 42 +- .../PartialImportRequestBuilder.cs | 38 +- .../PushRevocationRequestBuilder.cs | 42 +- .../Clients/ClientsRequestBuilder.cs | 35 +- .../Item/ClientUuItemRequestBuilder.cs | 44 +- .../Composites/CompositesRequestBuilder.cs | 78 ++- .../Composites/Realm/RealmRequestBuilder.cs | 44 +- .../Roles/Item/Groups/GroupsRequestBuilder.cs | 48 +- .../Management/ManagementRequestBuilder.cs | 24 +- .../Permissions/PermissionsRequestBuilder.cs | 58 +- .../Roles/Item/RoleNameItemRequestBuilder.cs | 86 +-- .../Roles/Item/Users/UsersRequestBuilder.cs | 48 +- .../Realms/Item/Roles/RolesRequestBuilder.cs | 78 ++- .../Clients/ClientsRequestBuilder.cs | 35 +- .../Item/WithClientUuItemRequestBuilder.cs | 44 +- .../Composites/CompositesRequestBuilder.cs | 86 +-- .../Composites/Realm/RealmRequestBuilder.cs | 44 +- .../Management/ManagementRequestBuilder.cs | 24 +- .../Permissions/PermissionsRequestBuilder.cs | 58 +- .../RolesById/Item/RoleItemRequestBuilder.cs | 76 ++- .../Item/RolesById/RolesByIdRequestBuilder.cs | 35 +- .../Item/WithSessionItemRequestBuilder.cs | 47 +- .../Item/Sessions/SessionsRequestBuilder.cs | 35 +- .../TestSMTPConnectionPostRequestBody.cs | 32 +- .../TestSMTPConnectionRequestBuilder.cs | 38 +- .../Item/Users/Count/CountRequestBuilder.cs | 42 +- ...serStorageCredentialTypesRequestBuilder.cs | 40 +- .../Item/Users/Item/Consents/Consents.cs | 32 +- .../Item/Consents/ConsentsRequestBuilder.cs | 60 ++- .../Item/WithClientItemRequestBuilder.cs | 38 +- .../Credentials/CredentialsRequestBuilder.cs | 60 ++- ...NewPreviousCredentialItemRequestBuilder.cs | 38 +- .../Item/MoveAfter/MoveAfterRequestBuilder.cs | 35 +- .../MoveToFirst/MoveToFirstRequestBuilder.cs | 38 +- .../Item/UserLabel/UserLabelRequestBuilder.cs | 38 +- .../Item/WithCredentialItemRequestBuilder.cs | 53 +- .../DisableCredentialTypesRequestBuilder.cs | 38 +- .../ExecuteActionsEmailRequestBuilder.cs | 42 +- .../FederatedIdentityRequestBuilder.cs | 60 ++- .../Item/WithProviderItemRequestBuilder.cs | 50 +- .../Item/Groups/Count/CountGetResponse.cs | 32 +- .../Item/Groups/Count/CountRequestBuilder.cs | 48 +- .../Users/Item/Groups/GroupsRequestBuilder.cs | 71 ++- .../Item/WithGroupItemRequestBuilder.cs | 50 +- .../ImpersonationPostResponse.cs | 32 +- .../ImpersonationRequestBuilder.cs | 42 +- .../Users/Item/Logout/LogoutRequestBuilder.cs | 38 +- .../Item/WithClientUuItemRequestBuilder.cs | 44 +- .../OfflineSessionsRequestBuilder.cs | 35 +- .../ResetPasswordRequestBuilder.cs | 38 +- .../ResetPasswordEmailRequestBuilder.cs | 42 +- .../Clients/ClientsRequestBuilder.cs | 37 +- .../Item/Available/AvailableRequestBuilder.cs | 50 +- .../Clients/Item/ClientItemRequestBuilder.cs | 175 ++++++ .../Item/Composite/CompositeRequestBuilder.cs | 50 +- .../Available/AvailableRequestBuilder.cs | 44 +- .../Composite/CompositeRequestBuilder.cs | 48 +- .../RoleMappings/Realm/RealmRequestBuilder.cs | 78 ++- .../RoleMappingsRequestBuilder.cs | 52 +- .../SendVerifyEmailRequestBuilder.cs | 42 +- .../Item/Sessions/SessionsRequestBuilder.cs | 44 +- .../UnmanagedAttributesGetResponse.cs | 53 ++ .../UnmanagedAttributesRequestBuilder.cs | 75 +++ .../Item/Users/Item/UserItemRequestBuilder.cs | 155 ++++-- .../Metadata/MetadataRequestBuilder.cs | 42 +- .../Users/Profile/ProfileRequestBuilder.cs | 63 ++- .../Realms/Item/Users/UsersRequestBuilder.cs | 88 +-- ...sersManagementPermissionsRequestBuilder.cs | 58 +- .../Item/WithRealmItemRequestBuilder.cs | 232 +++++--- .../Admin/Realms/RealmsRequestBuilder.cs | 78 ++- .../Keycloak.AuthServices.Sdk.Kiota.csproj | 2 +- .../KeycloakAdminApiClient.cs | 18 +- .../Models/AbstractPolicyRepresentation.cs | 76 +-- .../Models/Access.cs | 36 +- .../Models/AccessToken.cs | 175 +++--- .../Models/AccessToken_otherClaims.cs | 32 +- .../Models/AccessToken_resource_access.cs | 32 +- .../Models/AddressClaimSet.cs | 44 +- .../Models/AdminEventRepresentation.cs | 54 +- .../Models/ApplicationRepresentation.cs | 172 +++--- .../ApplicationRepresentation_access.cs | 32 +- .../ApplicationRepresentation_attributes.cs | 32 +- ...tion_authenticationFlowBindingOverrides.cs | 32 +- .../ApplicationRepresentation_claims.cs | 27 +- ...plicationRepresentation_registeredNodes.cs | 32 +- .../Models/AuthDetailsRepresentation.cs | 40 +- ...enticationExecutionExportRepresentation.cs | 48 +- ...thenticationExecutionInfoRepresentation.cs | 62 ++- .../AuthenticationExecutionRepresentation.cs | 50 +- .../AuthenticationFlowRepresentation.cs | 52 +- .../AuthenticatorConfigInfoRepresentation.cs | 46 +- .../AuthenticatorConfigRepresentation.cs | 44 +- ...uthenticatorConfigRepresentation_config.cs | 32 +- .../Models/Authorization.cs | 40 +- .../Models/CertificateRepresentation.cs | 40 +- .../Models/ClaimRepresentation.cs | 52 +- .../ClientInitialAccessCreatePresentation.cs | 36 +- .../Models/ClientInitialAccessPresentation.cs | 44 +- .../Models/ClientPoliciesRepresentation.cs | 50 +- .../ClientPolicyConditionRepresentation.cs | 44 +- .../ClientPolicyExecutorRepresentation.cs | 44 +- .../Models/ClientPolicyRepresentation.cs | 48 +- .../Models/ClientProfileRepresentation.cs | 44 +- .../Models/ClientProfilesRepresentation.cs | 48 +- .../Models/ClientRepresentation.cs | 164 +++--- .../Models/ClientRepresentation_access.cs | 32 +- .../Models/ClientRepresentation_attributes.cs | 32 +- ...tion_authenticationFlowBindingOverrides.cs | 32 +- .../ClientRepresentation_registeredNodes.cs | 32 +- .../Models/ClientScopeRepresentation.cs | 56 +- .../ClientScopeRepresentation_attributes.cs | 32 +- .../Models/ClientTemplateRepresentation.cs | 74 +-- ...ClientTemplateRepresentation_attributes.cs | 32 +- .../Models/ClientTypeRepresentation.cs | 83 +++ .../Models/ClientTypeRepresentation_config.cs | 53 ++ .../Models/ClientTypesRepresentation.cs | 73 +++ .../Models/ComponentRepresentation.cs | 52 +- .../Models/ComponentTypeRepresentation.cs | 52 +- .../ComponentTypeRepresentation_metadata.cs | 32 +- .../Models/Composites.cs | 50 +- .../Models/Composites_application.cs | 32 +- .../Models/Composites_client.cs | 32 +- .../Models/ConfigPropertyRepresentation.cs | 58 +- .../Models/Confirmation.cs | 36 +- .../Models/CredentialRepresentation.cs | 74 +-- .../Models/CredentialRepresentation_config.cs | 27 +- .../Models/DecisionEffect.cs | 13 +- .../Models/DecisionStrategy.cs | 15 +- .../Models/EvaluationResultRepresentation.cs | 70 +-- .../Models/EventRepresentation.cs | 56 +- .../Models/EventRepresentation_details.cs | 32 +- .../Models/FederatedIdentityRepresentation.cs | 38 +- .../Models/GlobalRequestResult.cs | 36 +- .../Models/GroupRepresentation.cs | 76 +-- .../Models/GroupRepresentation_access.cs | 32 +- .../Models/GroupRepresentation_attributes.cs | 32 +- .../Models/GroupRepresentation_clientRoles.cs | 32 +- .../Models/IDToken.cs | 135 +++-- .../Models/IDToken_otherClaims.cs | 32 +- .../IdentityProviderMapperRepresentation.cs | 48 +- ...tityProviderMapperRepresentation_config.cs | 32 +- .../Models/IdentityProviderRepresentation.cs | 68 ++- .../IdentityProviderRepresentation_config.cs | 32 +- .../Models/KeyMetadataRepresentation.cs | 56 +- .../Models/KeyStoreConfig.cs | 44 +- .../Models/KeyUse.cs | 13 +- .../Models/KeysMetadataRepresentation.cs | 48 +- .../KeysMetadataRepresentation_active.cs | 32 +- .../Models/Logic.cs | 13 +- .../Models/ManagementPermissionReference.cs | 44 +- ...entPermissionReference_scopePermissions.cs | 32 +- .../Models/MappingsRepresentation.cs | 48 +- .../MappingsRepresentation_clientMappings.cs | 32 +- ...hMapStringComponentExportRepresentation.cs | 32 +- .../Models/MultivaluedHashMapStringString.cs | 32 +- .../Models/OAuthClientRepresentation.cs | 172 +++--- .../OAuthClientRepresentation_access.cs | 32 +- .../OAuthClientRepresentation_attributes.cs | 32 +- ...tion_authenticationFlowBindingOverrides.cs | 32 +- .../OAuthClientRepresentation_claims.cs | 27 +- ...uthClientRepresentation_registeredNodes.cs | 32 +- .../OrganizationDomainRepresentation.cs | 67 +++ .../Models/OrganizationRepresentation.cs | 127 +++++ .../OrganizationRepresentation_attributes.cs | 53 ++ .../Models/Permission.cs | 46 +- .../Models/Permission_claims.cs | 32 +- .../Models/PolicyEnforcementMode.cs | 15 +- .../Models/PolicyEvaluationRequest.cs | 56 +- .../Models/PolicyEvaluationRequest_context.cs | 32 +- .../Models/PolicyEvaluationResponse.cs | 56 +- .../Models/PolicyProviderRepresentation.cs | 38 +- .../Models/PolicyRepresentation.cs | 84 +-- .../Models/PolicyRepresentation_config.cs | 32 +- .../Models/PolicyResultRepresentation.cs | 56 +- .../ProtocolMapperEvaluationRepresentation.cs | 44 +- .../Models/ProtocolMapperRepresentation.cs | 52 +- .../ProtocolMapperRepresentation_config.cs | 32 +- .../Models/RealmEventsConfigRepresentation.cs | 44 +- .../Models/RealmRepresentation.cs | 510 +++++++++--------- ...Representation_applicationScopeMappings.cs | 32 +- .../Models/RealmRepresentation_attributes.cs | 32 +- ...lmRepresentation_browserSecurityHeaders.cs | 32 +- ...RealmRepresentation_clientScopeMappings.cs | 32 +- .../RealmRepresentation_localizationTexts.cs | 32 +- .../Models/RealmRepresentation_smtpServer.cs | 32 +- .../RealmRepresentation_socialProviders.cs | 32 +- .../RequiredActionConfigInfoRepresentation.cs | 63 +++ .../RequiredActionConfigRepresentation.cs | 63 +++ ...quiredActionConfigRepresentation_config.cs | 53 ++ .../RequiredActionProviderRepresentation.cs | 52 +- ...iredActionProviderRepresentation_config.cs | 32 +- .../Models/ResourceOwnerRepresentation.cs | 36 +- .../Models/ResourceRepresentation.cs | 78 +-- .../ResourceRepresentation_attributes.cs | 32 +- .../Models/ResourceRepresentation_owner.cs | 27 +- .../Models/ResourceServerRepresentation.cs | 76 +-- .../Models/RoleRepresentation.cs | 62 ++- .../Models/RoleRepresentation_attributes.cs | 32 +- .../Models/RolesRepresentation.cs | 56 +- .../Models/RolesRepresentation_application.cs | 32 +- .../Models/RolesRepresentation_client.cs | 32 +- .../Models/ScopeMappingRepresentation.cs | 42 +- .../Models/ScopeRepresentation.cs | 56 +- .../Models/SocialLinkRepresentation.cs | 38 +- .../Models/UPAttribute.cs | 80 +-- .../Models/UPAttributePermissions.cs | 36 +- .../Models/UPAttributeRequired.cs | 36 +- .../Models/UPAttributeSelector.cs | 34 +- .../Models/UPAttribute_annotations.cs | 32 +- .../Models/UPAttribute_validations.cs | 32 +- .../Models/UPConfig.cs | 54 +- .../Models/UPGroup.cs | 46 +- .../Models/UPGroup_annotations.cs | 32 +- .../Models/UnmanagedAttributePolicy.cs | 15 +- .../Models/UserConsentRepresentation.cs | 42 +- .../UserFederationMapperRepresentation.cs | 48 +- ...erFederationMapperRepresentation_config.cs | 32 +- .../UserFederationProviderRepresentation.cs | 54 +- ...FederationProviderRepresentation_config.cs | 32 +- .../UserProfileAttributeGroupMetadata.cs | 46 +- ...ofileAttributeGroupMetadata_annotations.cs | 32 +- .../Models/UserProfileAttributeMetadata.cs | 60 ++- ...serProfileAttributeMetadata_annotations.cs | 32 +- ...UserProfileAttributeMetadata_validators.cs | 32 +- .../Models/UserProfileMetadata.cs | 48 +- .../Models/UserRepresentation.cs | 140 ++--- .../Models/UserRepresentation_access.cs | 32 +- .../UserRepresentation_applicationRoles.cs | 32 +- .../Models/UserRepresentation_attributes.cs | 32 +- .../Models/UserRepresentation_clientRoles.cs | 32 +- .../Models/UserSessionRepresentation.cs | 58 +- .../UserSessionRepresentation_clients.cs | 32 +- .../kiota-lock.json | 7 +- 467 files changed, 15406 insertions(+), 8505 deletions(-) create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/Config/ConfigRequestBuilder.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/ConfigDescription/ConfigDescriptionRequestBuilder.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTypes/ClientTypesRequestBuilder.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/ClientItemRequestBuilder.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/ClientItemRequestBuilder.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UnmanagedAttributes/UnmanagedAttributesGetResponse.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UnmanagedAttributes/UnmanagedAttributesRequestBuilder.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation_config.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypesRepresentation.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationDomainRepresentation.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation_attributes.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigInfoRepresentation.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation.cs create mode 100644 src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation_config.cs diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 4ee3fa98..66ebe325 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -1,33 +1,27 @@ - - - - + + + - - + - - - - + + + - - - - - - - - - - - + + + + + + + + - - + + - + \ No newline at end of file diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/AdminRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/AdminRequestBuilder.cs index 134211e1..baaef17e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/AdminRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/AdminRequestBuilder.cs @@ -1,33 +1,39 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin +{ /// /// Builds and executes requests for operations under \admin /// - public class AdminRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AdminRequestBuilder : BaseRequestBuilder + { /// The realms property - public RealmsRequestBuilder Realms { get => - new RealmsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.RealmsRequestBuilder Realms + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.RealmsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AdminRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin", pathParameters) { + public AdminRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin", rawUrl) { + public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AdminEvents/AdminEventsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AdminEvents/AdminEventsRequestBuilder.cs index 0b39bd60..0cef5866 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AdminEvents/AdminEventsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AdminEvents/AdminEventsRequestBuilder.cs @@ -1,31 +1,36 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\admin-events /// - public class AdminEventsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AdminEventsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AdminEventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/admin-events{?authClient*,authIpAddress*,authRealm*,authUser*,dateFrom*,dateTo*,first*,max*,operationTypes*,resourcePath*,resourceTypes*}", pathParameters) { + public AdminEventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/admin-events{?authClient*,authIpAddress*,authRealm*,authUser*,dateFrom*,dateTo*,first*,max*,operationTypes*,resourcePath*,resourceTypes*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AdminEventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/admin-events{?authClient*,authIpAddress*,authRealm*,authUser*,dateFrom*,dateTo*,first*,max*,operationTypes*,resourcePath*,resourceTypes*}", rawUrl) { + public AdminEventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/admin-events{?authClient*,authIpAddress*,authRealm*,authUser*,dateFrom*,dateTo*,first*,max*,operationTypes*,resourcePath*,resourceTypes*}", rawUrl) + { } /// /// Delete all admin events @@ -34,10 +39,12 @@ public AdminEventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -45,19 +52,21 @@ public async Task DeleteAsync(Action /// Get admin events Returns all admin events, or filters events based on URL query parameters listed here /// - /// A List<AdminEventRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AdminEventRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, AdminEventRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AdminEventRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Delete all admin events @@ -66,12 +75,14 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/realms/{realm}/admin-events", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); return requestInfo; } @@ -82,10 +93,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -95,15 +108,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AdminEventsRequestBuilder WithUrl(string rawUrl) { - return new AdminEventsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents.AdminEventsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents.AdminEventsRequestBuilder(rawUrl, RequestAdapter); } /// /// Get admin events Returns all admin events, or filters events based on URL query parameters listed here /// - public class AdminEventsRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AdminEventsRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("authClient")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/AttackDetectionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/AttackDetectionRequestBuilder.cs index 2fcba5f5..59e87623 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/AttackDetectionRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/AttackDetectionRequestBuilder.cs @@ -1,33 +1,39 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\attack-detection /// - public class AttackDetectionRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AttackDetectionRequestBuilder : BaseRequestBuilder + { /// The bruteForce property - public BruteForceRequestBuilder BruteForce { get => - new BruteForceRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.BruteForceRequestBuilder BruteForce + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.BruteForceRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AttackDetectionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection", pathParameters) { + public AttackDetectionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AttackDetectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection", rawUrl) { + public AttackDetectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/BruteForceRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/BruteForceRequestBuilder.cs index fbb45939..1aba4c52 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/BruteForceRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/BruteForceRequestBuilder.cs @@ -1,33 +1,39 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\attack-detection\brute-force /// - public class BruteForceRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class BruteForceRequestBuilder : BaseRequestBuilder + { /// The users property - public UsersRequestBuilder Users { get => - new UsersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.UsersRequestBuilder Users + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.UsersRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public BruteForceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force", pathParameters) { + public BruteForceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public BruteForceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force", rawUrl) { + public BruteForceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserGetResponse.cs index 683572a5..262f55c8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserGetResponse.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item { - public class WithUserGetResponse : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class WithUserGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public WithUserGetResponse() { + public WithUserGetResponse() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithUserGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserGetResponse(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserItemRequestBuilder.cs index 7f07e98f..a639ccf5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/Item/WithUserItemRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\attack-detection\brute-force\users\{userId} /// - public class WithUserItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithUserItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithUserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users/{userId}", pathParameters) { + public WithUserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users/{userId}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithUserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users/{userId}", rawUrl) { + public WithUserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users/{userId}", rawUrl) + { } /// /// Clear any user login failures for the user This can release temporary disabled user @@ -33,10 +38,12 @@ public WithUserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -44,18 +51,20 @@ public async Task DeleteAsync(Action /// Get status of a username in brute force detection /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WithUserGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Clear any user login failures for the user This can release temporary disabled user @@ -64,10 +73,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -80,10 +91,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -93,10 +106,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithUserItemRequestBuilder WithUrl(string rawUrl) { - return new WithUserItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/UsersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/UsersRequestBuilder.cs index a065b88f..7f0edbc3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/UsersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/AttackDetection/BruteForce/Users/UsersRequestBuilder.cs @@ -1,39 +1,48 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\attack-detection\brute-force\users /// - public class UsersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UsersRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.attackDetection.bruteForce.users.item collection /// Unique identifier of the item - /// A - public WithUserItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("userId", position); - return new WithUserItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("userId", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users", pathParameters) { + public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users", rawUrl) { + public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/attack-detection/brute-force/users", rawUrl) + { } /// /// Clear any user login failures for all users This can release temporary disabled users @@ -42,10 +51,12 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -57,10 +68,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -69,10 +82,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsersRequestBuilder WithUrl(string rawUrl) { - return new UsersRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.UsersRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.UsersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticationRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticationRequestBuilder.cs index c0c4782b..77cda275 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticationRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticationRequestBuilder.cs @@ -11,78 +11,95 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication /// - public class AuthenticationRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AuthenticationRequestBuilder : BaseRequestBuilder + { /// The authenticatorProviders property - public AuthenticatorProvidersRequestBuilder AuthenticatorProviders { get => - new AuthenticatorProvidersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProvidersRequestBuilder AuthenticatorProviders + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The clientAuthenticatorProviders property - public ClientAuthenticatorProvidersRequestBuilder ClientAuthenticatorProviders { get => - new ClientAuthenticatorProvidersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProvidersRequestBuilder ClientAuthenticatorProviders + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The config property - public ConfigRequestBuilder Config { get => - new ConfigRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.ConfigRequestBuilder Config + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.ConfigRequestBuilder(PathParameters, RequestAdapter); } /// The configDescription property - public ConfigDescriptionRequestBuilder ConfigDescription { get => - new ConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.ConfigDescriptionRequestBuilder ConfigDescription + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.ConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); } /// The executions property - public ExecutionsRequestBuilder Executions { get => - new ExecutionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.ExecutionsRequestBuilder Executions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.ExecutionsRequestBuilder(PathParameters, RequestAdapter); } /// The flows property - public FlowsRequestBuilder Flows { get => - new FlowsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.FlowsRequestBuilder Flows + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.FlowsRequestBuilder(PathParameters, RequestAdapter); } /// The formActionProviders property - public FormActionProvidersRequestBuilder FormActionProviders { get => - new FormActionProvidersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProvidersRequestBuilder FormActionProviders + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The formProviders property - public FormProvidersRequestBuilder FormProviders { get => - new FormProvidersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProvidersRequestBuilder FormProviders + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The perClientConfigDescription property - public PerClientConfigDescriptionRequestBuilder PerClientConfigDescription { get => - new PerClientConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionRequestBuilder PerClientConfigDescription + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); } /// The registerRequiredAction property - public RegisterRequiredActionRequestBuilder RegisterRequiredAction { get => - new RegisterRequiredActionRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionRequestBuilder RegisterRequiredAction + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionRequestBuilder(PathParameters, RequestAdapter); } /// The requiredActions property - public RequiredActionsRequestBuilder RequiredActions { get => - new RequiredActionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.RequiredActionsRequestBuilder RequiredActions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.RequiredActionsRequestBuilder(PathParameters, RequestAdapter); } /// The unregisteredRequiredActions property - public UnregisteredRequiredActionsRequestBuilder UnregisteredRequiredActions { get => - new UnregisteredRequiredActionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActionsRequestBuilder UnregisteredRequiredActions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AuthenticationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication", pathParameters) { + public AuthenticationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AuthenticationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication", rawUrl) { + public AuthenticationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProviders.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProviders.cs index b56971d4..c79ca4ae 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProviders.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProviders.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders { - public class AuthenticatorProviders : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AuthenticatorProviders : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AuthenticatorProviders() { + public AuthenticatorProviders() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticatorProviders CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProviders CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuthenticatorProviders(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProviders(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProvidersRequestBuilder.cs index eb6c0bc1..dd7b8c7b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/AuthenticatorProviders/AuthenticatorProvidersRequestBuilder.cs @@ -1,47 +1,54 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\authenticator-providers /// - public class AuthenticatorProvidersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AuthenticatorProvidersRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AuthenticatorProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/authenticator-providers", pathParameters) { + public AuthenticatorProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/authenticator-providers", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AuthenticatorProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/authenticator-providers", rawUrl) { + public AuthenticatorProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/authenticator-providers", rawUrl) + { } /// /// Get authenticator providers Returns a stream of authenticator providers. /// - /// A List<AuthenticatorProviders> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProviders> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, AuthenticatorProviders.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProviders.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get authenticator providers Returns a stream of authenticator providers. @@ -50,10 +57,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AuthenticatorProvidersRequestBuilder WithUrl(string rawUrl) { - return new AuthenticatorProvidersRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProvidersRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProvidersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProviders.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProviders.cs index 6fb2263a..9ffb4e33 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProviders.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProviders.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders { - public class ClientAuthenticatorProviders : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientAuthenticatorProviders : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientAuthenticatorProviders() { + public ClientAuthenticatorProviders() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientAuthenticatorProviders CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProviders CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientAuthenticatorProviders(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProviders(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProvidersRequestBuilder.cs index fa0e902e..c714003e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ClientAuthenticatorProviders/ClientAuthenticatorProvidersRequestBuilder.cs @@ -1,47 +1,54 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\client-authenticator-providers /// - public class ClientAuthenticatorProvidersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientAuthenticatorProvidersRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientAuthenticatorProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/client-authenticator-providers", pathParameters) { + public ClientAuthenticatorProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/client-authenticator-providers", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientAuthenticatorProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/client-authenticator-providers", rawUrl) { + public ClientAuthenticatorProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/client-authenticator-providers", rawUrl) + { } /// /// Get client authenticator providers Returns a stream of client authenticator providers. /// - /// A List<ClientAuthenticatorProviders> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProviders> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientAuthenticatorProviders.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProviders.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get client authenticator providers Returns a stream of client authenticator providers. @@ -50,10 +57,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClientAuthenticatorProvidersRequestBuilder WithUrl(string rawUrl) { - return new ClientAuthenticatorProvidersRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProvidersRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProvidersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/ConfigRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/ConfigRequestBuilder.cs index d9eaf4fd..2d5e307f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/ConfigRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/ConfigRequestBuilder.cs @@ -1,59 +1,69 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\config /// - public class ConfigRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ConfigRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.authentication.config.item collection /// Configuration id - /// A - public ConfigItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ConfigItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.Item.ConfigItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.Item.ConfigItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config", pathParameters) { + public ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config", rawUrl) { + public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config", rawUrl) + { } /// /// Create new authenticator configuration /// - /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } /// /// Create new authenticator configuration @@ -64,10 +74,12 @@ public async Task PostAsync(AuthenticatorConfigRepresentation body, Acti [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -78,11 +90,12 @@ public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresenta /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public ConfigRequestBuilder WithUrl(string rawUrl) { - return new ConfigRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.ConfigRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/Item/ConfigItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/Item/ConfigItemRequestBuilder.cs index dfb9424c..44713579 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/Item/ConfigItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Config/Item/ConfigItemRequestBuilder.cs @@ -1,31 +1,36 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\config\{id} /// - public class ConfigItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ConfigItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ConfigItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config/{id}", pathParameters) { + public ConfigItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config/{id}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ConfigItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config/{id}", rawUrl) { + public ConfigItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config/{id}", rawUrl) + { } /// /// Delete authenticator configuration @@ -34,10 +39,12 @@ public ConfigItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -45,18 +52,20 @@ public async Task DeleteAsync(Action /// Get authenticator configuration /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AuthenticatorConfigRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update authenticator configuration @@ -66,10 +75,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -82,10 +93,12 @@ public async Task PutAsync(AuthenticatorConfigRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -98,10 +111,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -116,10 +131,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -130,10 +147,11 @@ public RequestInformation ToPutRequestInformation(AuthenticatorConfigRepresentat /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ConfigItemRequestBuilder WithUrl(string rawUrl) { - return new ConfigItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.Item.ConfigItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.Item.ConfigItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/ConfigDescriptionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/ConfigDescriptionRequestBuilder.cs index efc2e571..90f24e3c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/ConfigDescriptionRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/ConfigDescriptionRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\config-description /// - public class ConfigDescriptionRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ConfigDescriptionRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.authentication.configDescription.item collection /// Unique identifier of the item - /// A - public WithProviderItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("providerId", position); - return new WithProviderItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.Item.WithProviderItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("providerId", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.Item.WithProviderItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ConfigDescriptionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description", pathParameters) { + public ConfigDescriptionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ConfigDescriptionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description", rawUrl) { + public ConfigDescriptionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/Item/WithProviderItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/Item/WithProviderItemRequestBuilder.cs index d00c9a69..8e2a4753 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/Item/WithProviderItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/ConfigDescription/Item/WithProviderItemRequestBuilder.cs @@ -1,47 +1,54 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\config-description\{providerId} /// - public class WithProviderItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithProviderItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithProviderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description/{providerId}", pathParameters) { + public WithProviderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description/{providerId}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description/{providerId}", rawUrl) { + public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/config-description/{providerId}", rawUrl) + { } /// /// Get authenticator provider's configuration description /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AuthenticatorConfigInfoRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigInfoRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get authenticator provider's configuration description @@ -50,10 +57,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithProviderItemRequestBuilder WithUrl(string rawUrl) { - return new WithProviderItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.Item.WithProviderItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.Item.WithProviderItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/ExecutionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/ExecutionsRequestBuilder.cs index 2df066a6..af7d4e7d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/ExecutionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/ExecutionsRequestBuilder.cs @@ -1,58 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\executions /// - public class ExecutionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ExecutionsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.authentication.executions.item collection /// Unique identifier of the item - /// A - public WithExecutionItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("executionId", position); - return new WithExecutionItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.WithExecutionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("executionId", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.WithExecutionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ExecutionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions", pathParameters) { + public ExecutionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ExecutionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions", rawUrl) { + public ExecutionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions", rawUrl) + { } /// /// Add new authentication execution /// - /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(AuthenticationExecutionRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(AuthenticationExecutionRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } /// /// Add new authentication execution @@ -62,10 +72,12 @@ public async Task PostAsync(AuthenticationExecutionRepresentation body, /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(AuthenticationExecutionRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(AuthenticationExecutionRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -76,10 +88,11 @@ public RequestInformation ToPostRequestInformation(AuthenticationExecutionRepres /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ExecutionsRequestBuilder WithUrl(string rawUrl) { - return new ExecutionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.ExecutionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.ExecutionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/ConfigRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/ConfigRequestBuilder.cs index 60eb7afb..d7de9b86 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/ConfigRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/ConfigRequestBuilder.cs @@ -1,59 +1,69 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\executions\{executionId}\config /// - public class ConfigRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ConfigRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.authentication.executions.item.config.item collection /// Configuration id - /// A + /// A [Obsolete("")] - public ConfigItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ConfigItemRequestBuilder(urlTplParams, RequestAdapter); - } } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.Item.ConfigItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.Item.ConfigItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config", pathParameters) { + public ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config", rawUrl) { + public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config", rawUrl) + { } /// /// Update execution with new configuration /// - /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } /// /// Update execution with new configuration @@ -63,10 +73,12 @@ public async Task PostAsync(AuthenticatorConfigRepresentation body, Acti /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -77,10 +89,11 @@ public RequestInformation ToPostRequestInformation(AuthenticatorConfigRepresenta /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ConfigRequestBuilder WithUrl(string rawUrl) { - return new ConfigRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.ConfigRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/Item/ConfigItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/Item/ConfigItemRequestBuilder.cs index bd8b775e..e4b3b73d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/Item/ConfigItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/Config/Item/ConfigItemRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\executions\{executionId}\config\{id} /// - public class ConfigItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ConfigItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ConfigItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config/{id}", pathParameters) { + public ConfigItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config/{id}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ConfigItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config/{id}", rawUrl) { + public ConfigItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/config/{id}", rawUrl) + { } /// /// Get execution's configuration /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AuthenticatorConfigRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get execution's configuration @@ -52,10 +59,12 @@ public async Task GetAsync(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -65,11 +74,12 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public ConfigItemRequestBuilder WithUrl(string rawUrl) { - return new ConfigItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.Item.ConfigItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.Item.ConfigItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/LowerPriority/LowerPriorityRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/LowerPriority/LowerPriorityRequestBuilder.cs index 6abb5618..6344a490 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/LowerPriority/LowerPriorityRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/LowerPriority/LowerPriorityRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\executions\{executionId}\lower-priority /// - public class LowerPriorityRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class LowerPriorityRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public LowerPriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/lower-priority", pathParameters) { + public LowerPriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/lower-priority", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public LowerPriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/lower-priority", rawUrl) { + public LowerPriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/lower-priority", rawUrl) + { } /// /// Lower execution's priority @@ -33,10 +38,12 @@ public LowerPriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +55,12 @@ public async Task PostAsync(Action> /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,10 +69,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LowerPriorityRequestBuilder WithUrl(string rawUrl) { - return new LowerPriorityRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority.LowerPriorityRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority.LowerPriorityRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/RaisePriority/RaisePriorityRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/RaisePriority/RaisePriorityRequestBuilder.cs index 15c1dc02..b7587b88 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/RaisePriority/RaisePriorityRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/RaisePriority/RaisePriorityRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.RaisePriority { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.RaisePriority +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\executions\{executionId}\raise-priority /// - public class RaisePriorityRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RaisePriorityRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RaisePriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/raise-priority", pathParameters) { + public RaisePriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/raise-priority", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RaisePriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/raise-priority", rawUrl) { + public RaisePriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}/raise-priority", rawUrl) + { } /// /// Raise execution's priority @@ -33,10 +38,12 @@ public RaisePriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +55,12 @@ public async Task PostAsync(Action> /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,10 +69,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RaisePriorityRequestBuilder WithUrl(string rawUrl) { - return new RaisePriorityRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.RaisePriority.RaisePriorityRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.RaisePriority.RaisePriorityRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/WithExecutionItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/WithExecutionItemRequestBuilder.cs index 389ba274..a9bd7b77 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/WithExecutionItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Executions/Item/WithExecutionItemRequestBuilder.cs @@ -2,44 +2,53 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.RaisePriority; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\executions\{executionId} /// - public class WithExecutionItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithExecutionItemRequestBuilder : BaseRequestBuilder + { /// The config property - public ConfigRequestBuilder Config { get => - new ConfigRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.ConfigRequestBuilder Config + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.ConfigRequestBuilder(PathParameters, RequestAdapter); } /// The lowerPriority property - public LowerPriorityRequestBuilder LowerPriority { get => - new LowerPriorityRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority.LowerPriorityRequestBuilder LowerPriority + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority.LowerPriorityRequestBuilder(PathParameters, RequestAdapter); } /// The raisePriority property - public RaisePriorityRequestBuilder RaisePriority { get => - new RaisePriorityRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.RaisePriority.RaisePriorityRequestBuilder RaisePriority + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.RaisePriority.RaisePriorityRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithExecutionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}", pathParameters) { + public WithExecutionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithExecutionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}", rawUrl) { + public WithExecutionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/executions/{executionId}", rawUrl) + { } /// /// Delete execution @@ -48,10 +57,12 @@ public WithExecutionItemRequestBuilder(string rawUrl, IRequestAdapter requestAda /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -59,18 +70,20 @@ public async Task DeleteAsync(Action /// Get Single Execution /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Delete execution @@ -79,10 +92,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -95,22 +110,26 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; } /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithExecutionItemRequestBuilder WithUrl(string rawUrl) { - return new WithExecutionItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.WithExecutionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.WithExecutionItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/FlowsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/FlowsRequestBuilder.cs index 22c493e1..9a402167 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/FlowsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/FlowsRequestBuilder.cs @@ -1,75 +1,87 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\flows /// - public class FlowsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class FlowsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.authentication.flows.item collection /// Flow id - /// A - public FlowAliasItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("flowAlias%2Did", position); - return new FlowAliasItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.FlowAliasItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("flowAlias%2Did", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.FlowAliasItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public FlowsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows", pathParameters) { + public FlowsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public FlowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows", rawUrl) { + public FlowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows", rawUrl) + { } /// /// Get authentication flows Returns a stream of authentication flows. /// - /// A List<AuthenticationFlowRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, AuthenticationFlowRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a new authentication flow /// - /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(AuthenticationFlowRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(AuthenticationFlowRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } /// /// Get authentication flows Returns a stream of authentication flows. @@ -78,10 +90,12 @@ public async Task PostAsync(AuthenticationFlowRepresentation body, Actio /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,10 +110,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(AuthenticationFlowRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(AuthenticationFlowRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -110,10 +126,11 @@ public RequestInformation ToPostRequestInformation(AuthenticationFlowRepresentat /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public FlowsRequestBuilder WithUrl(string rawUrl) { - return new FlowsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.FlowsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.FlowsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyPostRequestBody.cs index 5429d54f..d34bc71a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyPostRequestBody.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy { - public class CopyPostRequestBody : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class CopyPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public CopyPostRequestBody() { + public CopyPostRequestBody() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CopyPostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyPostRequestBody(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyRequestBuilder.cs index 6541c0e6..8e09733d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Copy/CopyRequestBuilder.cs @@ -1,48 +1,54 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\flows\{flowAlias-id}\copy /// - public class CopyRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CopyRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CopyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/copy", pathParameters) { + public CopyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/copy", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/copy", rawUrl) { + public CopyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/copy", rawUrl) + { } /// /// Copy existing authentication flow under a new name The new name is given as 'newName' attribute of the passed JSON object /// - /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(CopyPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(CopyPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } /// /// Copy existing authentication flow under a new name The new name is given as 'newName' attribute of the passed JSON object @@ -52,10 +58,12 @@ public async Task PostAsync(CopyPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyPostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyPostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -66,10 +74,11 @@ public RequestInformation ToPostRequestInformation(CopyPostRequestBody body, Act /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CopyRequestBuilder WithUrl(string rawUrl) { - return new CopyRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionPostRequestBody.cs index 1f77683b..0db5a044 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionPostRequestBody.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution { - public class ExecutionPostRequestBody : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ExecutionPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ExecutionPostRequestBody() { + public ExecutionPostRequestBody() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ExecutionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ExecutionPostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionPostRequestBody(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionRequestBuilder.cs index b9c3c6a4..87fb94ac 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Execution/ExecutionRequestBuilder.cs @@ -1,48 +1,54 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\flows\{flowAlias-id}\executions\execution /// - public class ExecutionRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ExecutionRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ExecutionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/execution", pathParameters) { + public ExecutionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/execution", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ExecutionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/execution", rawUrl) { + public ExecutionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/execution", rawUrl) + { } /// /// Add new authentication execution to a flow /// - /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ExecutionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ExecutionPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } /// /// Add new authentication execution to a flow @@ -52,10 +58,12 @@ public async Task PostAsync(ExecutionPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ExecutionPostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionPostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ExecutionPostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionPostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -66,10 +74,11 @@ public RequestInformation ToPostRequestInformation(ExecutionPostRequestBody body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ExecutionRequestBuilder WithUrl(string rawUrl) { - return new ExecutionRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/ExecutionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/ExecutionsRequestBuilder.cs index bc8b9c0c..8322f9f1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/ExecutionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/ExecutionsRequestBuilder.cs @@ -2,74 +2,85 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\flows\{flowAlias-id}\executions /// - public class ExecutionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ExecutionsRequestBuilder : BaseRequestBuilder + { /// The execution property - public ExecutionRequestBuilder Execution { get => - new ExecutionRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionRequestBuilder Execution + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionRequestBuilder(PathParameters, RequestAdapter); } /// The flow property - public FlowRequestBuilder Flow { get => - new FlowRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowRequestBuilder Flow + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ExecutionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions", pathParameters) { + public ExecutionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ExecutionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions", rawUrl) { + public ExecutionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions", rawUrl) + { } /// /// Get authentication executions for a flow /// - /// A + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionInfoRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionInfoRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Update authentication executions of a Flow /// - /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(AuthenticationExecutionInfoRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionInfoRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(AuthenticationExecutionInfoRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionInfoRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } /// /// Get authentication executions for a flow @@ -78,13 +89,16 @@ public async Task PutAsync(AuthenticationExecutionInfoRepresentation bod /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; } /// @@ -95,10 +109,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(AuthenticationExecutionInfoRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionInfoRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(AuthenticationExecutionInfoRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionInfoRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -109,10 +125,11 @@ public RequestInformation ToPutRequestInformation(AuthenticationExecutionInfoRep /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ExecutionsRequestBuilder WithUrl(string rawUrl) { - return new ExecutionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.ExecutionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.ExecutionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowPostRequestBody.cs index f01411c9..552142c7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowPostRequestBody.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow { - public class FlowPostRequestBody : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class FlowPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public FlowPostRequestBody() { + public FlowPostRequestBody() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FlowPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FlowPostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowPostRequestBody(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowRequestBuilder.cs index f48352e6..695ec577 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/Executions/Flow/FlowRequestBuilder.cs @@ -1,48 +1,54 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\flows\{flowAlias-id}\executions\flow /// - public class FlowRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class FlowRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public FlowRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/flow", pathParameters) { + public FlowRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/flow", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public FlowRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/flow", rawUrl) { + public FlowRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}/executions/flow", rawUrl) + { } /// /// Add new flow with new execution to existing flow /// - /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(FlowPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(FlowPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } /// /// Add new flow with new execution to existing flow @@ -52,10 +58,12 @@ public async Task PostAsync(FlowPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(FlowPostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowPostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(FlowPostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowPostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -66,10 +74,11 @@ public RequestInformation ToPostRequestInformation(FlowPostRequestBody body, Act /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public FlowRequestBuilder WithUrl(string rawUrl) { - return new FlowRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/FlowAliasItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/FlowAliasItemRequestBuilder.cs index 5f9f20f5..e725e0ec 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/FlowAliasItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/Flows/Item/FlowAliasItemRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\flows\{flowAlias-id} /// - public class FlowAliasItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class FlowAliasItemRequestBuilder : BaseRequestBuilder + { /// The copy property - public CopyRequestBuilder Copy { get => - new CopyRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyRequestBuilder Copy + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyRequestBuilder(PathParameters, RequestAdapter); } /// The executions property - public ExecutionsRequestBuilder Executions { get => - new ExecutionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.ExecutionsRequestBuilder Executions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.ExecutionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public FlowAliasItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}", pathParameters) { + public FlowAliasItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public FlowAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}", rawUrl) { + public FlowAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/flows/{flowAlias%2Did}", rawUrl) + { } /// /// Delete an authentication flow @@ -44,10 +51,12 @@ public FlowAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -55,36 +64,39 @@ public async Task DeleteAsync(Action /// Get authentication flow for id /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AuthenticationFlowRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update an authentication flow /// - /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(AuthenticationFlowRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(AuthenticationFlowRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } /// /// Delete an authentication flow @@ -93,10 +105,12 @@ public async Task PutAsync(AuthenticationFlowRepresentation body, Action /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -109,10 +123,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -127,10 +143,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(AuthenticationFlowRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(AuthenticationFlowRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -141,10 +159,11 @@ public RequestInformation ToPutRequestInformation(AuthenticationFlowRepresentati /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public FlowAliasItemRequestBuilder WithUrl(string rawUrl) { - return new FlowAliasItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.FlowAliasItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.FlowAliasItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProviders.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProviders.cs index 98efd7f8..663c8e7b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProviders.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProviders.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders { - public class FormActionProviders : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class FormActionProviders : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public FormActionProviders() { + public FormActionProviders() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FormActionProviders CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProviders CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FormActionProviders(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProviders(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProvidersRequestBuilder.cs index 323ade68..90cac880 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormActionProviders/FormActionProvidersRequestBuilder.cs @@ -1,47 +1,54 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\form-action-providers /// - public class FormActionProvidersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class FormActionProvidersRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public FormActionProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-action-providers", pathParameters) { + public FormActionProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-action-providers", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public FormActionProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-action-providers", rawUrl) { + public FormActionProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-action-providers", rawUrl) + { } /// /// Get form action providers Returns a stream of form action providers. /// - /// A List<FormActionProviders> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProviders> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, FormActionProviders.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProviders.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get form action providers Returns a stream of form action providers. @@ -50,10 +57,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public FormActionProvidersRequestBuilder WithUrl(string rawUrl) { - return new FormActionProvidersRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProvidersRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProvidersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProviders.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProviders.cs index 9c32241b..9351adf2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProviders.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProviders.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders { - public class FormProviders : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class FormProviders : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public FormProviders() { + public FormProviders() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FormProviders CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProviders CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FormProviders(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProviders(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProvidersRequestBuilder.cs index 2813c3fb..3d747d72 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/FormProviders/FormProvidersRequestBuilder.cs @@ -1,47 +1,54 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\form-providers /// - public class FormProvidersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class FormProvidersRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public FormProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-providers", pathParameters) { + public FormProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-providers", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public FormProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-providers", rawUrl) { + public FormProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/form-providers", rawUrl) + { } /// /// Get form providers Returns a stream of form providers. /// - /// A List<FormProviders> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProviders> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, FormProviders.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProviders.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get form providers Returns a stream of form providers. @@ -50,10 +57,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public FormProvidersRequestBuilder WithUrl(string rawUrl) { - return new FormProvidersRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProvidersRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProvidersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionGetResponse.cs index 85c454bf..dc7befb4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionGetResponse.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription { - public class PerClientConfigDescriptionGetResponse : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PerClientConfigDescriptionGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public PerClientConfigDescriptionGetResponse() { + public PerClientConfigDescriptionGetResponse() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PerClientConfigDescriptionGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PerClientConfigDescriptionGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionGetResponse(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionRequestBuilder.cs index 7890d05b..f18a3133 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/PerClientConfigDescription/PerClientConfigDescriptionRequestBuilder.cs @@ -1,46 +1,53 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\per-client-config-description /// - public class PerClientConfigDescriptionRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PerClientConfigDescriptionRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PerClientConfigDescriptionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/per-client-config-description", pathParameters) { + public PerClientConfigDescriptionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/per-client-config-description", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PerClientConfigDescriptionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/per-client-config-description", rawUrl) { + public PerClientConfigDescriptionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/per-client-config-description", rawUrl) + { } /// /// Get configuration descriptions for all clients /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, PerClientConfigDescriptionGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get configuration descriptions for all clients @@ -49,10 +56,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,10 +71,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PerClientConfigDescriptionRequestBuilder WithUrl(string rawUrl) { - return new PerClientConfigDescriptionRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionPostRequestBody.cs index a39c7fe4..6792525d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionPostRequestBody.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction { - public class RegisterRequiredActionPostRequestBody : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RegisterRequiredActionPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RegisterRequiredActionPostRequestBody() { + public RegisterRequiredActionPostRequestBody() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RegisterRequiredActionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RegisterRequiredActionPostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionPostRequestBody(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionRequestBuilder.cs index 28a6c20d..2ce4f717 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RegisterRequiredAction/RegisterRequiredActionRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\register-required-action /// - public class RegisterRequiredActionRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RegisterRequiredActionRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RegisterRequiredActionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/register-required-action", pathParameters) { + public RegisterRequiredActionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/register-required-action", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RegisterRequiredActionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/register-required-action", rawUrl) { + public RegisterRequiredActionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/register-required-action", rawUrl) + { } /// /// Register a new required actions @@ -34,10 +39,12 @@ public RegisterRequiredActionRequestBuilder(string rawUrl, IRequestAdapter reque /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RegisterRequiredActionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(RegisterRequiredActionPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -51,10 +58,12 @@ public async Task PostAsync(RegisterRequiredActionPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RegisterRequiredActionPostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionPostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(RegisterRequiredActionPostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionPostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -65,10 +74,11 @@ public RequestInformation ToPostRequestInformation(RegisterRequiredActionPostReq /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RegisterRequiredActionRequestBuilder WithUrl(string rawUrl) { - return new RegisterRequiredActionRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/Config/ConfigRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/Config/ConfigRequestBuilder.cs new file mode 100644 index 00000000..4073d381 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/Config/ConfigRequestBuilder.cs @@ -0,0 +1,157 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.Config +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\required-actions\{alias}\config + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ConfigRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/config", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/config", rawUrl) + { + } + /// + /// Delete RequiredAction configuration + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Get RequiredAction configuration + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Update RequiredAction configuration + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete RequiredAction configuration + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + return requestInfo; + } + /// + /// Get RequiredAction configuration + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update RequiredAction configuration + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.Config.ConfigRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/ConfigDescription/ConfigDescriptionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/ConfigDescription/ConfigDescriptionRequestBuilder.cs new file mode 100644 index 00000000..ce8507db --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/ConfigDescription/ConfigDescriptionRequestBuilder.cs @@ -0,0 +1,82 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.ConfigDescription +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\required-actions\{alias}\config-description + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ConfigDescriptionRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ConfigDescriptionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/config-description", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ConfigDescriptionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/config-description", rawUrl) + { + } + /// + /// Get RequiredAction provider configuration description + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigInfoRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Get RequiredAction provider configuration description + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.ConfigDescription.ConfigDescriptionRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.ConfigDescription.ConfigDescriptionRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/LowerPriority/LowerPriorityRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/LowerPriority/LowerPriorityRequestBuilder.cs index 9073ed9b..2e4957ca 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/LowerPriority/LowerPriorityRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/LowerPriority/LowerPriorityRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\required-actions\{alias}\lower-priority /// - public class LowerPriorityRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class LowerPriorityRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public LowerPriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority", pathParameters) { + public LowerPriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public LowerPriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority", rawUrl) { + public LowerPriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/lower-priority", rawUrl) + { } /// /// Lower required action's priority @@ -33,10 +38,12 @@ public LowerPriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +55,12 @@ public async Task PostAsync(Action> /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,10 +69,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LowerPriorityRequestBuilder WithUrl(string rawUrl) { - return new LowerPriorityRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority.LowerPriorityRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority.LowerPriorityRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/RaisePriority/RaisePriorityRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/RaisePriority/RaisePriorityRequestBuilder.cs index 1cac212d..5d851f49 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/RaisePriority/RaisePriorityRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/RaisePriority/RaisePriorityRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.RaisePriority { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.RaisePriority +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\required-actions\{alias}\raise-priority /// - public class RaisePriorityRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RaisePriorityRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RaisePriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority", pathParameters) { + public RaisePriorityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RaisePriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority", rawUrl) { + public RaisePriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}/raise-priority", rawUrl) + { } /// /// Raise required action's priority @@ -33,10 +38,12 @@ public RaisePriorityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +55,12 @@ public async Task PostAsync(Action> /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,10 +69,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RaisePriorityRequestBuilder WithUrl(string rawUrl) { - return new RaisePriorityRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.RaisePriority.RaisePriorityRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.RaisePriority.RaisePriorityRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/WithAliasItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/WithAliasItemRequestBuilder.cs index e878ef7d..5bb8fae9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/WithAliasItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/Item/WithAliasItemRequestBuilder.cs @@ -1,41 +1,60 @@ // +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.Config; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.ConfigDescription; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.RaisePriority; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\required-actions\{alias} /// - public class WithAliasItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithAliasItemRequestBuilder : BaseRequestBuilder + { + /// The config property + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.Config.ConfigRequestBuilder Config + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.Config.ConfigRequestBuilder(PathParameters, RequestAdapter); + } + /// The configDescription property + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.ConfigDescription.ConfigDescriptionRequestBuilder ConfigDescription + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.ConfigDescription.ConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); + } /// The lowerPriority property - public LowerPriorityRequestBuilder LowerPriority { get => - new LowerPriorityRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority.LowerPriorityRequestBuilder LowerPriority + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority.LowerPriorityRequestBuilder(PathParameters, RequestAdapter); } /// The raisePriority property - public RaisePriorityRequestBuilder RaisePriority { get => - new RaisePriorityRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.RaisePriority.RaisePriorityRequestBuilder RaisePriority + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.RaisePriority.RaisePriorityRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithAliasItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}", pathParameters) { + public WithAliasItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}", rawUrl) { + public WithAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions/{alias}", rawUrl) + { } /// /// Delete required action @@ -44,10 +63,12 @@ public WithAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -55,18 +76,20 @@ public async Task DeleteAsync(Action /// Get required action for alias /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RequiredActionProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update required action @@ -76,10 +99,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RequiredActionProviderRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(RequiredActionProviderRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -92,10 +117,12 @@ public async Task PutAsync(RequiredActionProviderRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -108,10 +135,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -126,10 +155,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RequiredActionProviderRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(RequiredActionProviderRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -140,10 +171,11 @@ public RequestInformation ToPutRequestInformation(RequiredActionProviderRepresen /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithAliasItemRequestBuilder WithUrl(string rawUrl) { - return new WithAliasItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.WithAliasItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.WithAliasItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/RequiredActionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/RequiredActionsRequestBuilder.cs index 745fda30..896778c5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/RequiredActionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/RequiredActions/RequiredActionsRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\required-actions /// - public class RequiredActionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RequiredActionsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.authentication.requiredActions.item collection /// Alias of required action - /// A - public WithAliasItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("alias", position); - return new WithAliasItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.WithAliasItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("alias", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.WithAliasItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RequiredActionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions", pathParameters) { + public RequiredActionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RequiredActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions", rawUrl) { + public RequiredActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/required-actions", rawUrl) + { } /// /// Get required actions Returns a stream of required actions. /// - /// A List<RequiredActionProviderRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RequiredActionProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get required actions Returns a stream of required actions. @@ -60,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -73,10 +86,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RequiredActionsRequestBuilder WithUrl(string rawUrl) { - return new RequiredActionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.RequiredActionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.RequiredActionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActions.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActions.cs index 1fef8b22..7a41ca75 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActions.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActions.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions { - public class UnregisteredRequiredActions : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UnregisteredRequiredActions : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UnregisteredRequiredActions() { + public UnregisteredRequiredActions() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UnregisteredRequiredActions CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActions CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UnregisteredRequiredActions(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActions(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActionsRequestBuilder.cs index 8a52da70..71c468c7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Authentication/UnregisteredRequiredActions/UnregisteredRequiredActionsRequestBuilder.cs @@ -1,47 +1,54 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\unregistered-required-actions /// - public class UnregisteredRequiredActionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UnregisteredRequiredActionsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UnregisteredRequiredActionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/unregistered-required-actions", pathParameters) { + public UnregisteredRequiredActionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/unregistered-required-actions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public UnregisteredRequiredActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/unregistered-required-actions", rawUrl) { + public UnregisteredRequiredActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/authentication/unregistered-required-actions", rawUrl) + { } /// /// Get unregistered required actions Returns a stream of unregistered required actions. /// - /// A List<UnregisteredRequiredActions> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActions> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UnregisteredRequiredActions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActions.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get unregistered required actions Returns a stream of unregistered required actions. @@ -50,10 +57,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UnregisteredRequiredActionsRequestBuilder WithUrl(string rawUrl) { - return new UnregisteredRequiredActionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientDescriptionConverter/ClientDescriptionConverterRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientDescriptionConverter/ClientDescriptionConverterRequestBuilder.cs index d247fa66..4cf5adf6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientDescriptionConverter/ClientDescriptionConverterRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientDescriptionConverter/ClientDescriptionConverterRequestBuilder.cs @@ -1,49 +1,56 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescriptionConverter { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescriptionConverter +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-description-converter /// - public class ClientDescriptionConverterRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientDescriptionConverterRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientDescriptionConverterRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-description-converter", pathParameters) { + public ClientDescriptionConverterRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-description-converter", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientDescriptionConverterRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-description-converter", rawUrl) { + public ClientDescriptionConverterRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-description-converter", rawUrl) + { } /// /// Base path for importing clients under this realm. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ClientRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Base path for importing clients under this realm. @@ -53,10 +60,12 @@ public async Task PostAsync(string body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -68,10 +77,11 @@ public RequestInformation ToPostRequestInformation(string body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClientDescriptionConverterRequestBuilder WithUrl(string rawUrl) { - return new ClientDescriptionConverterRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescriptionConverter.ClientDescriptionConverterRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescriptionConverter.ClientDescriptionConverterRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/ClientPoliciesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/ClientPoliciesRequestBuilder.cs index 962f8c77..f5521755 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/ClientPoliciesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/ClientPoliciesRequestBuilder.cs @@ -1,38 +1,45 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Profiles; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-policies /// - public class ClientPoliciesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientPoliciesRequestBuilder : BaseRequestBuilder + { /// The policies property - public PoliciesRequestBuilder Policies { get => - new PoliciesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies.PoliciesRequestBuilder Policies + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies.PoliciesRequestBuilder(PathParameters, RequestAdapter); } /// The profiles property - public ProfilesRequestBuilder Profiles { get => - new ProfilesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Profiles.ProfilesRequestBuilder Profiles + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Profiles.ProfilesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientPoliciesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies", pathParameters) { + public ClientPoliciesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies", rawUrl) { + public ClientPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Policies/PoliciesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Policies/PoliciesRequestBuilder.cs index 61fe41fb..aa06a62a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Policies/PoliciesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Policies/PoliciesRequestBuilder.cs @@ -1,44 +1,51 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-policies\policies /// - public class PoliciesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PoliciesRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PoliciesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/policies", pathParameters) { + public PoliciesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/policies{?include%2Dglobal%2Dpolicies*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/policies", rawUrl) { + public PoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/policies{?include%2Dglobal%2Dpolicies*}", rawUrl) + { } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ClientPoliciesRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// The request body @@ -46,10 +53,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ClientPoliciesRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ClientPoliciesRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -59,10 +68,12 @@ public async Task PutAsync(ClientPoliciesRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -74,10 +85,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ClientPoliciesRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ClientPoliciesRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -88,10 +101,19 @@ public RequestInformation ToPutRequestInformation(ClientPoliciesRepresentation b /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PoliciesRequestBuilder WithUrl(string rawUrl) { - return new PoliciesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies.PoliciesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies.PoliciesRequestBuilder(rawUrl, RequestAdapter); + } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PoliciesRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { + [QueryParameter("include%2Dglobal%2Dpolicies")] + public bool? IncludeGlobalPolicies { get; set; } } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Profiles/ProfilesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Profiles/ProfilesRequestBuilder.cs index f7fedf5f..5d1c85df 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Profiles/ProfilesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientPolicies/Profiles/ProfilesRequestBuilder.cs @@ -1,44 +1,51 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Profiles { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Profiles +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-policies\profiles /// - public class ProfilesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProfilesRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProfilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/profiles{?include%2Dglobal%2Dprofiles*}", pathParameters) { + public ProfilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/profiles{?include%2Dglobal%2Dprofiles*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProfilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/profiles{?include%2Dglobal%2Dprofiles*}", rawUrl) { + public ProfilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-policies/profiles{?include%2Dglobal%2Dprofiles*}", rawUrl) + { } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ClientProfilesRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// The request body @@ -46,10 +53,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ClientProfilesRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ClientProfilesRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -59,10 +68,12 @@ public async Task PutAsync(ClientProfilesRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -74,13 +85,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ClientProfilesRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ClientProfilesRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, "{+baseurl}/admin/realms/{realm}/client-policies/profiles", PathParameters); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -88,12 +101,17 @@ public RequestInformation ToPutRequestInformation(ClientProfilesRepresentation b /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ProfilesRequestBuilder WithUrl(string rawUrl) { - return new ProfilesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Profiles.ProfilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Profiles.ProfilesRequestBuilder(rawUrl, RequestAdapter); } - public class ProfilesRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ProfilesRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("include%2Dglobal%2Dprofiles")] public bool? IncludeGlobalProfiles { get; set; } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/ClientRegistrationPolicyRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/ClientRegistrationPolicyRequestBuilder.cs index 23b41ac2..a6ef25d1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/ClientRegistrationPolicyRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/ClientRegistrationPolicyRequestBuilder.cs @@ -1,33 +1,39 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.Providers; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-registration-policy /// - public class ClientRegistrationPolicyRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientRegistrationPolicyRequestBuilder : BaseRequestBuilder + { /// The providers property - public ProvidersRequestBuilder Providers { get => - new ProvidersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.Providers.ProvidersRequestBuilder Providers + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.Providers.ProvidersRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientRegistrationPolicyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy", pathParameters) { + public ClientRegistrationPolicyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientRegistrationPolicyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy", rawUrl) { + public ClientRegistrationPolicyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/Providers/ProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/Providers/ProvidersRequestBuilder.cs index aed9c629..861cdae1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/Providers/ProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientRegistrationPolicy/Providers/ProvidersRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.Providers { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.Providers +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-registration-policy\providers /// - public class ProvidersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProvidersRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy/providers", pathParameters) { + public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy/providers", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy/providers", rawUrl) { + public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-registration-policy/providers", rawUrl) + { } /// /// Base path for retrieve providers with the configProperties properly filled /// - /// A List<ComponentTypeRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ComponentTypeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Base path for retrieve providers with the configProperties properly filled @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ProvidersRequestBuilder WithUrl(string rawUrl) { - return new ProvidersRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.Providers.ProvidersRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.Providers.ProvidersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/ClientScopesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/ClientScopesRequestBuilder.cs index 47b307fb..eb22052c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/ClientScopesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/ClientScopesRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes /// - public class ClientScopesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientScopesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientScopes.item collection /// Unique identifier of the item - /// A - public ClientScopeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client%2Dscope%2Did", position); - return new ClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ClientScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client%2Dscope%2Did", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes", pathParameters) { + public ClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes", rawUrl) { + public ClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes", rawUrl) + { } /// /// Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm /// - /// A List<ClientScopeRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a new client scope Client Scope’s name must be unique! @@ -62,10 +73,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +91,12 @@ public async Task PostAsync(ClientScopeRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,10 +111,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ClientScopeRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ClientScopeRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -110,10 +127,11 @@ public RequestInformation ToPostRequestInformation(ClientScopeRepresentation bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClientScopesRequestBuilder WithUrl(string rawUrl) { - return new ClientScopesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.ClientScopesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.ClientScopesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ClientScopeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ClientScopeItemRequestBuilder.cs index 6969bd85..b0a22a18 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ClientScopeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ClientScopeItemRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id} /// - public class ClientScopeItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientScopeItemRequestBuilder : BaseRequestBuilder + { /// The protocolMappers property - public ProtocolMappersRequestBuilder ProtocolMappers { get => - new ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ProtocolMappersRequestBuilder ProtocolMappers + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); } /// The scopeMappings property - public ScopeMappingsRequestBuilder ScopeMappings { get => - new ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.ScopeMappingsRequestBuilder ScopeMappings + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}", pathParameters) { + public ClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}", rawUrl) { + public ClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}", rawUrl) + { } /// /// Delete the client scope @@ -45,10 +52,12 @@ public ClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -56,18 +65,20 @@ public async Task DeleteAsync(Action /// Get representation of the client scope /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update the client scope @@ -78,10 +89,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -94,10 +107,12 @@ public async Task PutAsync(ClientScopeRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -110,10 +125,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -128,10 +145,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -142,10 +161,11 @@ public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClientScopeItemRequestBuilder WithUrl(string rawUrl) { - return new ClientScopeItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ClientScopeItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs index 1d32c378..fb383c44 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs @@ -1,31 +1,36 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\protocol-mappers\add-models /// - public class AddModelsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AddModelsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AddModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/add-models", pathParameters) { + public AddModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/add-models", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/add-models", rawUrl) { + public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/add-models", rawUrl) + { } /// /// Create multiple mappers @@ -35,10 +40,12 @@ public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -52,10 +59,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -66,10 +75,11 @@ public RequestInformation ToPostRequestInformation(List /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AddModelsRequestBuilder WithUrl(string rawUrl) { - return new AddModelsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs index 304275af..67e7ce88 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs @@ -1,31 +1,36 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\protocol-mappers\models\{id} /// - public class ModelsItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ModelsItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ModelsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models/{id}", pathParameters) { + public ModelsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models/{id}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models/{id}", rawUrl) { + public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models/{id}", rawUrl) + { } /// /// Delete the mapper @@ -34,10 +39,12 @@ public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -45,18 +52,20 @@ public async Task DeleteAsync(Action /// Get mapper by id /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update the mapper @@ -66,10 +75,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -82,10 +93,12 @@ public async Task PutAsync(ProtocolMapperRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -98,10 +111,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -116,10 +131,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -130,10 +147,11 @@ public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation b /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ModelsItemRequestBuilder WithUrl(string rawUrl) { - return new ModelsItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs index beaf3f0b..9c6e1d43 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\protocol-mappers\models /// - public class ModelsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ModelsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientScopes.item.protocolMappers.modelsRequests.item collection /// Mapper id - /// A - public ModelsItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ModelsItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models", pathParameters) { + public ModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models", rawUrl) { + public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/models", rawUrl) + { } /// /// Get mappers /// - /// A List<ProtocolMapperRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a mapper @@ -62,10 +73,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +91,12 @@ public async Task PostAsync(ProtocolMapperRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,10 +111,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -110,10 +127,11 @@ public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ModelsRequestBuilder WithUrl(string rawUrl) { - return new ModelsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs index cc6cff0e..d35aa802 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\protocol-mappers\protocol\{protocol} /// - public class WithProtocolItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithProtocolItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithProtocolItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", pathParameters) { + public WithProtocolItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", rawUrl) { + public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", rawUrl) + { } /// /// Get mappers by name for a specific protocol /// - /// A List<ProtocolMapperRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get mappers by name for a specific protocol @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithProtocolItemRequestBuilder WithUrl(string rawUrl) { - return new WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs index 49b71633..cb43dd6a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\protocol-mappers\protocol /// - public class ProtocolRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProtocolRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientScopes.item.protocolMappers.protocol.item collection /// Unique identifier of the item - /// A - public WithProtocolItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("protocol", position); - return new WithProtocolItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("protocol", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProtocolRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol", pathParameters) { + public ProtocolRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol", rawUrl) { + public ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers/protocol", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs index f4fb6617..371f9c6f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs @@ -2,42 +2,50 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\protocol-mappers /// - public class ProtocolMappersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProtocolMappersRequestBuilder : BaseRequestBuilder + { /// The addModels property - public AddModelsRequestBuilder AddModels { get => - new AddModelsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder AddModels + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(PathParameters, RequestAdapter); } /// The models property - public ModelsRequestBuilder Models { get => - new ModelsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder Models + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(PathParameters, RequestAdapter); } /// The protocol property - public ProtocolRequestBuilder Protocol { get => - new ProtocolRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder Protocol + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers", pathParameters) { + public ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers", rawUrl) { + public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/protocol-mappers", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs index 7ff30528..2caf9049 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientScopes.item.scopeMappings.clients.item collection /// Unique identifier of the item - /// A - public WithClientItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client", position); - return new WithClientItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs index 4c6f1481..5cc23695 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings\clients\{client}\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AvailableRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", rawUrl) + { } /// /// The available client-level roles Returns the roles for the client that can be associated with the client's scope /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// The available client-level roles Returns the roles for the client that can be associated with the client's scope @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { - return new AvailableRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs index bf235d25..85e8a737 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Composite { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Composite +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings\clients\{client}\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) + { } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { - return new CompositeRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. /// - public class CompositeRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs index 83d8d43e..9b6ed78b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Composite; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings\clients\{client} /// - public class WithClientItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithClientItemRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder Available + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder Composite + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}", pathParameters) { + public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}", rawUrl) { + public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/clients/{client}", rawUrl) + { } /// /// Remove client-level roles from the client's scope. @@ -45,10 +52,12 @@ public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -57,19 +66,21 @@ public async Task DeleteAsync(List body, Action /// Get the roles associated with a client's scope Returns roles for the client. /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Add client-level roles to the client's scope @@ -79,10 +90,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +109,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +129,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +149,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -146,10 +165,11 @@ public RequestInformation ToPostRequestInformation(List body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithClientItemRequestBuilder WithUrl(string rawUrl) { - return new WithClientItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs index c7c0e5cb..7d916dd4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings\realm\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AvailableRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/available", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/available", rawUrl) + { } /// /// Get realm-level roles that are available to attach to this client's scope /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get realm-level roles that are available to attach to this client's scope @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { - return new AvailableRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs index fb1c1bc0..b4064c9a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Composite { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Composite +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings\realm\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", rawUrl) + { } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { - return new CompositeRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. /// - public class CompositeRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/RealmRequestBuilder.cs index a0fc3211..3c5474d9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/Realm/RealmRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Composite; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RealmRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder Available + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder Composite + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings/realm", rawUrl) + { } /// /// Remove a set of realm-level roles from the client's scope @@ -45,10 +52,12 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -57,19 +66,21 @@ public async Task DeleteAsync(List body, Action /// Get realm-level roles associated with the client's scope /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Add a set of realm-level roles to the client's scope @@ -79,10 +90,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +109,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +129,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +149,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -146,10 +165,11 @@ public RequestInformation ToPostRequestInformation(List body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { - return new RealmRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs index 8971f1a1..afada71b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientScopes/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs @@ -2,59 +2,68 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-scopes\{client-scope-id}\scope-mappings /// - public class ScopeMappingsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ScopeMappingsRequestBuilder : BaseRequestBuilder + { /// The clients property [Obsolete("")] - public ClientsRequestBuilder Clients { get => - new ClientsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.ClientsRequestBuilder Clients + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property [Obsolete("")] - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.RealmRequestBuilder Realm + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings", pathParameters) { + public ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings", rawUrl) { + public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-scopes/{client%2Dscope%2Did}/scope-mappings", rawUrl) + { } /// /// Get all scope mappings for the client /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get all scope mappings for the client @@ -64,10 +73,12 @@ public async Task GetAsync(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -77,11 +88,12 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public ScopeMappingsRequestBuilder WithUrl(string rawUrl) { - return new ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.ScopeMappingsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStats.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStats.cs index c5d5d8af..a439a9fd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStats.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStats.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats { - public class ClientSessionStats : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientSessionStats : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientSessionStats() { + public ClientSessionStats() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientSessionStats CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStats CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientSessionStats(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStats(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStatsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStatsRequestBuilder.cs index 60d8ba7c..c5fe2257 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStatsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientSessionStats/ClientSessionStatsRequestBuilder.cs @@ -1,47 +1,54 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-session-stats /// - public class ClientSessionStatsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientSessionStatsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientSessionStatsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-session-stats", pathParameters) { + public ClientSessionStatsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-session-stats", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientSessionStatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-session-stats", rawUrl) { + public ClientSessionStatsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-session-stats", rawUrl) + { } /// /// 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. /// - /// A List<ClientSessionStats> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStats> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientSessionStats.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStats.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// 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. @@ -50,10 +57,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClientSessionStatsRequestBuilder WithUrl(string rawUrl) { - return new ClientSessionStatsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStatsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStatsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/ClientTemplatesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/ClientTemplatesRequestBuilder.cs index 204bcea3..091e7d10 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/ClientTemplatesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/ClientTemplatesRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates /// - public class ClientTemplatesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientTemplatesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientTemplates.item collection /// Unique identifier of the item - /// A - public ClientScopeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client%2Dscope%2Did", position); - return new ClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ClientScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client%2Dscope%2Did", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientTemplatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates", pathParameters) { + public ClientTemplatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientTemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates", rawUrl) { + public ClientTemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates", rawUrl) + { } /// /// Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm /// - /// A List<ClientScopeRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a new client scope Client Scope’s name must be unique! @@ -62,10 +73,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +91,12 @@ public async Task PostAsync(ClientScopeRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,10 +111,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ClientScopeRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ClientScopeRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -110,10 +127,11 @@ public RequestInformation ToPostRequestInformation(ClientScopeRepresentation bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClientTemplatesRequestBuilder WithUrl(string rawUrl) { - return new ClientTemplatesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.ClientTemplatesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.ClientTemplatesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ClientScopeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ClientScopeItemRequestBuilder.cs index 79d4a31d..20e347fc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ClientScopeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ClientScopeItemRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id} /// - public class ClientScopeItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientScopeItemRequestBuilder : BaseRequestBuilder + { /// The protocolMappers property - public ProtocolMappersRequestBuilder ProtocolMappers { get => - new ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ProtocolMappersRequestBuilder ProtocolMappers + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); } /// The scopeMappings property - public ScopeMappingsRequestBuilder ScopeMappings { get => - new ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.ScopeMappingsRequestBuilder ScopeMappings + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}", pathParameters) { + public ClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}", rawUrl) { + public ClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}", rawUrl) + { } /// /// Delete the client scope @@ -45,10 +52,12 @@ public ClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -56,18 +65,20 @@ public async Task DeleteAsync(Action /// Get representation of the client scope /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update the client scope @@ -78,10 +89,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -94,10 +107,12 @@ public async Task PutAsync(ClientScopeRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -110,10 +125,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -128,10 +145,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -142,10 +161,11 @@ public RequestInformation ToPutRequestInformation(ClientScopeRepresentation body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClientScopeItemRequestBuilder WithUrl(string rawUrl) { - return new ClientScopeItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ClientScopeItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs index 31bb5eee..053cedae 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs @@ -1,31 +1,36 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\protocol-mappers\add-models /// - public class AddModelsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AddModelsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AddModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/add-models", pathParameters) { + public AddModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/add-models", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/add-models", rawUrl) { + public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/add-models", rawUrl) + { } /// /// Create multiple mappers @@ -35,10 +40,12 @@ public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -52,10 +59,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -66,10 +75,11 @@ public RequestInformation ToPostRequestInformation(List /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AddModelsRequestBuilder WithUrl(string rawUrl) { - return new AddModelsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs index de49c9f5..359aee6d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs @@ -1,31 +1,36 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\protocol-mappers\models\{id} /// - public class ModelsItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ModelsItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ModelsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models/{id}", pathParameters) { + public ModelsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models/{id}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models/{id}", rawUrl) { + public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models/{id}", rawUrl) + { } /// /// Delete the mapper @@ -34,10 +39,12 @@ public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -45,18 +52,20 @@ public async Task DeleteAsync(Action /// Get mapper by id /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update the mapper @@ -66,10 +75,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -82,10 +93,12 @@ public async Task PutAsync(ProtocolMapperRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -98,10 +111,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -116,10 +131,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -130,10 +147,11 @@ public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation b /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ModelsItemRequestBuilder WithUrl(string rawUrl) { - return new ModelsItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs index 9d0c055d..84c232f0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\protocol-mappers\models /// - public class ModelsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ModelsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientTemplates.item.protocolMappers.modelsRequests.item collection /// Mapper id - /// A - public ModelsItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ModelsItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models", pathParameters) { + public ModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models", rawUrl) { + public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/models", rawUrl) + { } /// /// Get mappers /// - /// A List<ProtocolMapperRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a mapper @@ -62,10 +73,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +91,12 @@ public async Task PostAsync(ProtocolMapperRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,10 +111,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -110,10 +127,11 @@ public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ModelsRequestBuilder WithUrl(string rawUrl) { - return new ModelsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs index 22831c7f..6dfe8cb0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\protocol-mappers\protocol\{protocol} /// - public class WithProtocolItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithProtocolItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithProtocolItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", pathParameters) { + public WithProtocolItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", rawUrl) { + public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol/{protocol}", rawUrl) + { } /// /// Get mappers by name for a specific protocol /// - /// A List<ProtocolMapperRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get mappers by name for a specific protocol @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithProtocolItemRequestBuilder WithUrl(string rawUrl) { - return new WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs index ed3709d5..4e696add 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\protocol-mappers\protocol /// - public class ProtocolRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProtocolRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientTemplates.item.protocolMappers.protocol.item collection /// Unique identifier of the item - /// A - public WithProtocolItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("protocol", position); - return new WithProtocolItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("protocol", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProtocolRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol", pathParameters) { + public ProtocolRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol", rawUrl) { + public ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers/protocol", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs index cbe7d046..c8c1b8e5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs @@ -2,42 +2,50 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\protocol-mappers /// - public class ProtocolMappersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProtocolMappersRequestBuilder : BaseRequestBuilder + { /// The addModels property - public AddModelsRequestBuilder AddModels { get => - new AddModelsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder AddModels + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(PathParameters, RequestAdapter); } /// The models property - public ModelsRequestBuilder Models { get => - new ModelsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder Models + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(PathParameters, RequestAdapter); } /// The protocol property - public ProtocolRequestBuilder Protocol { get => - new ProtocolRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder Protocol + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers", pathParameters) { + public ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers", rawUrl) { + public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/protocol-mappers", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs index 2175a757..b81845cc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientTemplates.item.scopeMappings.clients.item collection /// Unique identifier of the item - /// A - public WithClientItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client", position); - return new WithClientItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs index ef7318d1..44c8709e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings\clients\{client}\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AvailableRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/available", rawUrl) + { } /// /// The available client-level roles Returns the roles for the client that can be associated with the client's scope /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// The available client-level roles Returns the roles for the client that can be associated with the client's scope @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { - return new AvailableRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs index 34ac2db0..20c462b2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Composite { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Composite +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings\clients\{client}\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) + { } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { - return new CompositeRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. /// - public class CompositeRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs index d0b90580..07e30443 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Composite; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings\clients\{client} /// - public class WithClientItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithClientItemRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder Available + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder Composite + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}", pathParameters) { + public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}", rawUrl) { + public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/clients/{client}", rawUrl) + { } /// /// Remove client-level roles from the client's scope. @@ -45,10 +52,12 @@ public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -57,19 +66,21 @@ public async Task DeleteAsync(List body, Action /// Get the roles associated with a client's scope Returns roles for the client. /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Add client-level roles to the client's scope @@ -79,10 +90,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +109,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +129,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +149,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -146,10 +165,11 @@ public RequestInformation ToPostRequestInformation(List body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithClientItemRequestBuilder WithUrl(string rawUrl) { - return new WithClientItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs index 559e4e1f..3a1bdb7e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings\realm\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AvailableRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/available", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/available", rawUrl) + { } /// /// Get realm-level roles that are available to attach to this client's scope /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get realm-level roles that are available to attach to this client's scope @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { - return new AvailableRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs index 6ee9dfce..e2d347c9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Composite { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Composite +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings\realm\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm/composite{?briefRepresentation*}", rawUrl) + { } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { - return new CompositeRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. /// - public class CompositeRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/RealmRequestBuilder.cs index fc6474fd..450cfea3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/Realm/RealmRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Composite; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RealmRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder Available + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder Composite + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings/realm", rawUrl) + { } /// /// Remove a set of realm-level roles from the client's scope @@ -45,10 +52,12 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -57,19 +66,21 @@ public async Task DeleteAsync(List body, Action /// Get realm-level roles associated with the client's scope /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Add a set of realm-level roles to the client's scope @@ -79,10 +90,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +109,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +129,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +149,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -146,10 +165,11 @@ public RequestInformation ToPostRequestInformation(List body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { - return new RealmRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs index 0385fe96..b73e546e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTemplates/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs @@ -2,59 +2,68 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates\{client-scope-id}\scope-mappings /// - public class ScopeMappingsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ScopeMappingsRequestBuilder : BaseRequestBuilder + { /// The clients property [Obsolete("")] - public ClientsRequestBuilder Clients { get => - new ClientsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.ClientsRequestBuilder Clients + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property [Obsolete("")] - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.RealmRequestBuilder Realm + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings", pathParameters) { + public ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings", rawUrl) { + public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-templates/{client%2Dscope%2Did}/scope-mappings", rawUrl) + { } /// /// Get all scope mappings for the client /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get all scope mappings for the client @@ -64,10 +73,12 @@ public async Task GetAsync(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -77,11 +88,12 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public ScopeMappingsRequestBuilder WithUrl(string rawUrl) { - return new ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.ScopeMappingsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTypes/ClientTypesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTypes/ClientTypesRequestBuilder.cs new file mode 100644 index 00000000..76aa9390 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTypes/ClientTypesRequestBuilder.cs @@ -0,0 +1,122 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\client-types + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientTypesRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ClientTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-types", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ClientTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/client-types", rawUrl) + { + } + /// + /// This endpoint returns a list of both global and realm level client types and the attributes they set + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// + /// This endpoint allows you to update a realm level client type + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// This endpoint returns a list of both global and realm level client types and the attributes they set + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// This endpoint allows you to update a realm level client type + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes.ClientTypesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes.ClientTypesRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/ClientsRequestBuilder.cs index 1c8496e8..96b4b4b4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/ClientsRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item collection /// id of client (not client-id!) - /// A - public ClientUuItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client%2Duuid", position); - return new ClientUuItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientUuItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client%2Duuid", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientUuItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients{?clientId*,first*,max*,q*,search*,viewableOnly*}", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients{?clientId*,first*,max*,q*,search*,viewableOnly*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients{?clientId*,first*,max*,q*,search*,viewableOnly*}", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients{?clientId*,first*,max*,q*,search*,viewableOnly*}", rawUrl) + { } /// /// 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. /// - /// A List<ClientRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a new client Client’s client_id must be unique! @@ -61,10 +72,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ClientRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ClientRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -77,10 +90,12 @@ public async Task PostAsync(ClientRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -95,13 +110,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ClientRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ClientRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/clients", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -109,15 +126,18 @@ public RequestInformation ToPostRequestInformation(ClientRepresentation body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClientsRequestBuilder WithUrl(string rawUrl) { - return new ClientsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.ClientsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.ClientsRequestBuilder(rawUrl, RequestAdapter); } /// /// 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. /// - public class ClientsRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientsRequestBuilderGetQueryParameters + { /// filter by clientId #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/AuthzRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/AuthzRequestBuilder.cs index 6f290727..45395a31 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/AuthzRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/AuthzRequestBuilder.cs @@ -1,33 +1,39 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz /// - public class AuthzRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AuthzRequestBuilder : BaseRequestBuilder + { /// The resourceServer property - public ResourceServerRequestBuilder ResourceServer { get => - new ResourceServerRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.ResourceServerRequestBuilder ResourceServer + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.ResourceServerRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AuthzRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz", pathParameters) { + public AuthzRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AuthzRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz", rawUrl) { + public AuthzRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Import/ImportRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Import/ImportRequestBuilder.cs index fa261302..6ffb3724 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Import/ImportRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Import/ImportRequestBuilder.cs @@ -1,41 +1,48 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\import /// - public class ImportRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ImportRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ImportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/import", pathParameters) { + public ImportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/import", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ImportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/import", rawUrl) { + public ImportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/import", rawUrl) + { } /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ResourceServerRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ResourceServerRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -46,10 +53,12 @@ public async Task PostAsync(ResourceServerRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ResourceServerRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ResourceServerRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -60,10 +69,11 @@ public RequestInformation ToPostRequestInformation(ResourceServerRepresentation /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ImportRequestBuilder WithUrl(string rawUrl) { - return new ImportRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import.ImportRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import.ImportRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Evaluate/EvaluateRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Evaluate/EvaluateRequestBuilder.cs index 774100c0..2603879f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Evaluate/EvaluateRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Evaluate/EvaluateRequestBuilder.cs @@ -1,56 +1,65 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\permission\evaluate /// - public class EvaluateRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class EvaluateRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public EvaluateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/evaluate", pathParameters) { + public EvaluateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/evaluate", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public EvaluateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/evaluate", rawUrl) { + public EvaluateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/evaluate", rawUrl) + { } - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(PolicyEvaluationRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(PolicyEvaluationRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, PolicyEvaluationResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(PolicyEvaluationRequest body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(PolicyEvaluationRequest body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -62,10 +71,11 @@ public RequestInformation ToPostRequestInformation(PolicyEvaluationRequest body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public EvaluateRequestBuilder WithUrl(string rawUrl) { - return new EvaluateRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate.EvaluateRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate.EvaluateRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/PermissionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/PermissionRequestBuilder.cs index c43ab9ec..a740920f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/PermissionRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/PermissionRequestBuilder.cs @@ -3,68 +3,80 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Search; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\permission /// - public class PermissionRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PermissionRequestBuilder : BaseRequestBuilder + { /// The evaluate property - public EvaluateRequestBuilder Evaluate { get => - new EvaluateRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate.EvaluateRequestBuilder Evaluate + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate.EvaluateRequestBuilder(PathParameters, RequestAdapter); } /// The providers property - public ProvidersRequestBuilder Providers { get => - new ProvidersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers.ProvidersRequestBuilder Providers + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers.ProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The search property - public SearchRequestBuilder Search { get => - new SearchRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Search.SearchRequestBuilder Search + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Search.SearchRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", pathParameters) { + public PermissionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PermissionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", rawUrl) { + public PermissionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", rawUrl) + { } - /// A List<AbstractPolicyRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AbstractPolicyRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, AbstractPolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AbstractPolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -74,10 +86,12 @@ public async Task PostAsync(string body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -89,13 +103,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromScalar(RequestAdapter, "application/json", body); return requestInfo; @@ -103,12 +119,17 @@ public RequestInformation ToPostRequestInformation(string body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PermissionRequestBuilder WithUrl(string rawUrl) { - return new PermissionRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.PermissionRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.PermissionRequestBuilder(rawUrl, RequestAdapter); } - public class PermissionRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PermissionRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("fields")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Providers/ProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Providers/ProvidersRequestBuilder.cs index 6b1260cd..1b608e1b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Providers/ProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Providers/ProvidersRequestBuilder.cs @@ -1,54 +1,63 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\permission\providers /// - public class ProvidersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProvidersRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/providers", pathParameters) { + public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/providers", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/providers", rawUrl) { + public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/providers", rawUrl) + { } - /// A List<PolicyProviderRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyProviderRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PolicyProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -58,10 +67,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ProvidersRequestBuilder WithUrl(string rawUrl) { - return new ProvidersRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers.ProvidersRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers.ProvidersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Search/SearchRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Search/SearchRequestBuilder.cs index 072287b2..f6eba5ce 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Search/SearchRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Permission/Search/SearchRequestBuilder.cs @@ -1,53 +1,62 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Search { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Search +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\permission\search /// - public class SearchRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SearchRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/search{?fields*,name*}", pathParameters) { + public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/search{?fields*,name*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/search{?fields*,name*}", rawUrl) { + public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/permission/search{?fields*,name*}", rawUrl) + { } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AbstractPolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AbstractPolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -57,12 +66,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SearchRequestBuilder WithUrl(string rawUrl) { - return new SearchRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Search.SearchRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Search.SearchRequestBuilder(rawUrl, RequestAdapter); } - public class SearchRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SearchRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("fields")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Evaluate/EvaluateRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Evaluate/EvaluateRequestBuilder.cs index ea4a0d1d..1a7fea5a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Evaluate/EvaluateRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Evaluate/EvaluateRequestBuilder.cs @@ -1,56 +1,65 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\policy\evaluate /// - public class EvaluateRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class EvaluateRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public EvaluateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/evaluate", pathParameters) { + public EvaluateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/evaluate", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public EvaluateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/evaluate", rawUrl) { + public EvaluateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/evaluate", rawUrl) + { } - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(PolicyEvaluationRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(PolicyEvaluationRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, PolicyEvaluationResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(PolicyEvaluationRequest body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(PolicyEvaluationRequest body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -62,10 +71,11 @@ public RequestInformation ToPostRequestInformation(PolicyEvaluationRequest body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public EvaluateRequestBuilder WithUrl(string rawUrl) { - return new EvaluateRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate.EvaluateRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate.EvaluateRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/PolicyRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/PolicyRequestBuilder.cs index 3de8b466..d4a8f464 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/PolicyRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/PolicyRequestBuilder.cs @@ -3,68 +3,80 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Search; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\policy /// - public class PolicyRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PolicyRequestBuilder : BaseRequestBuilder + { /// The evaluate property - public EvaluateRequestBuilder Evaluate { get => - new EvaluateRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate.EvaluateRequestBuilder Evaluate + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate.EvaluateRequestBuilder(PathParameters, RequestAdapter); } /// The providers property - public ProvidersRequestBuilder Providers { get => - new ProvidersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers.ProvidersRequestBuilder Providers + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers.ProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The search property - public SearchRequestBuilder Search { get => - new SearchRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Search.SearchRequestBuilder Search + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Search.SearchRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PolicyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", pathParameters) { + public PolicyRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PolicyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", rawUrl) { + public PolicyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy{?fields*,first*,max*,name*,owner*,permission*,policyId*,resource*,scope*,type*}", rawUrl) + { } - /// A List<AbstractPolicyRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AbstractPolicyRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, AbstractPolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AbstractPolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -74,10 +86,12 @@ public async Task PostAsync(string body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -89,13 +103,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromScalar(RequestAdapter, "application/json", body); return requestInfo; @@ -103,12 +119,17 @@ public RequestInformation ToPostRequestInformation(string body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PolicyRequestBuilder WithUrl(string rawUrl) { - return new PolicyRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.PolicyRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.PolicyRequestBuilder(rawUrl, RequestAdapter); } - public class PolicyRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PolicyRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("fields")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Providers/ProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Providers/ProvidersRequestBuilder.cs index 7e15ec2d..75f580a3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Providers/ProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Providers/ProvidersRequestBuilder.cs @@ -1,54 +1,63 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\policy\providers /// - public class ProvidersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProvidersRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/providers", pathParameters) { + public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/providers", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/providers", rawUrl) { + public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/providers", rawUrl) + { } - /// A List<PolicyProviderRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyProviderRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PolicyProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -58,10 +67,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ProvidersRequestBuilder WithUrl(string rawUrl) { - return new ProvidersRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers.ProvidersRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers.ProvidersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Search/SearchRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Search/SearchRequestBuilder.cs index 3537b7a0..6f79f1f0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Search/SearchRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Policy/Search/SearchRequestBuilder.cs @@ -1,53 +1,62 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Search { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Search +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\policy\search /// - public class SearchRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SearchRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/search{?fields*,name*}", pathParameters) { + public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/search{?fields*,name*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/search{?fields*,name*}", rawUrl) { + public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/policy/search{?fields*,name*}", rawUrl) + { } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AbstractPolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AbstractPolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -57,12 +66,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SearchRequestBuilder WithUrl(string rawUrl) { - return new SearchRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Search.SearchRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Search.SearchRequestBuilder(rawUrl, RequestAdapter); } - public class SearchRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SearchRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("fields")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Attributes/AttributesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Attributes/AttributesRequestBuilder.cs index 9ce72fa9..1fef167e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Attributes/AttributesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Attributes/AttributesRequestBuilder.cs @@ -1,40 +1,47 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Attributes { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Attributes +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\resource\{resource-id}\attributes /// - public class AttributesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AttributesRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AttributesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/attributes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) { + public AttributesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/attributes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AttributesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/attributes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) { + public AttributesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/attributes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -43,10 +50,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -55,12 +64,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AttributesRequestBuilder WithUrl(string rawUrl) { - return new AttributesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Attributes.AttributesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Attributes.AttributesRequestBuilder(rawUrl, RequestAdapter); } - public class AttributesRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AttributesRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Permissions/PermissionsRequestBuilder.cs index 669e0047..ec9e64ef 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Permissions/PermissionsRequestBuilder.cs @@ -1,54 +1,63 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Permissions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Permissions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\resource\{resource-id}\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PermissionsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/permissions{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/permissions{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/permissions{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/permissions{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) + { } - /// A List<PolicyRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -58,12 +67,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { - return new PermissionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } - public class PermissionsRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PermissionsRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/ResourceItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/ResourceItemRequestBuilder.cs index 044d41c4..de2c5773 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/ResourceItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/ResourceItemRequestBuilder.cs @@ -3,79 +3,93 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Permissions; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Scopes; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\resource\{resource-id} /// - public class ResourceItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ResourceItemRequestBuilder : BaseRequestBuilder + { /// The attributes property - public AttributesRequestBuilder Attributes { get => - new AttributesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Attributes.AttributesRequestBuilder Attributes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Attributes.AttributesRequestBuilder(PathParameters, RequestAdapter); } /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Permissions.PermissionsRequestBuilder Permissions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); } /// The scopes property - public ScopesRequestBuilder Scopes { get => - new ScopesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Scopes.ScopesRequestBuilder Scopes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ResourceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) { + public ResourceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ResourceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) { + public ResourceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ResourceRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ResourceRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ResourceRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -85,10 +99,12 @@ public async Task PutAsync(ResourceRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -98,10 +114,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -113,10 +131,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ResourceRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ResourceRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -127,12 +147,17 @@ public RequestInformation ToPutRequestInformation(ResourceRepresentation body, A /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ResourceItemRequestBuilder WithUrl(string rawUrl) { - return new ResourceItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.ResourceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.ResourceItemRequestBuilder(rawUrl, RequestAdapter); } - public class ResourceItemRequestBuilderDeleteQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ResourceItemRequestBuilderDeleteQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] @@ -198,7 +223,11 @@ public class ResourceItemRequestBuilderDeleteQueryParameters { public string Uri { get; set; } #endif } - public class ResourceItemRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ResourceItemRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] @@ -264,7 +293,11 @@ public class ResourceItemRequestBuilderGetQueryParameters { public string Uri { get; set; } #endif } - public class ResourceItemRequestBuilderPutQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ResourceItemRequestBuilderPutQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Scopes/ScopesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Scopes/ScopesRequestBuilder.cs index 754ca94c..d02ba60a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Scopes/ScopesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Item/Scopes/ScopesRequestBuilder.cs @@ -1,54 +1,63 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Scopes { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Scopes +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\resource\{resource-id}\scopes /// - public class ScopesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ScopesRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/scopes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) { + public ScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/scopes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/scopes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) { + public ScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/{resource%2Did}/scopes{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) + { } - /// A List<ScopeRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -58,12 +67,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ScopesRequestBuilder WithUrl(string rawUrl) { - return new ScopesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Scopes.ScopesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Scopes.ScopesRequestBuilder(rawUrl, RequestAdapter); } - public class ScopesRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ScopesRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/ResourceRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/ResourceRequestBuilder.cs index b0d54476..b42516ff 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/ResourceRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/ResourceRequestBuilder.cs @@ -2,82 +2,98 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Search; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\resource /// - public class ResourceRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ResourceRequestBuilder : BaseRequestBuilder + { /// The search property - public SearchRequestBuilder Search { get => - new SearchRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Search.SearchRequestBuilder Search + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Search.SearchRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.authz.resourceServer.resource.item collection /// Unique identifier of the item - /// A - public ResourceItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("resource%2Did", position); - return new ResourceItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.ResourceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("resource%2Did", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.ResourceItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ResourceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) { + public ResourceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ResourceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) { + public ResourceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) + { } - /// A List<ResourceRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ResourceRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ResourceRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ResourceRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ResourceRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -89,10 +105,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ResourceRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ResourceRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -104,12 +122,17 @@ public RequestInformation ToPostRequestInformation(ResourceRepresentation body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ResourceRequestBuilder WithUrl(string rawUrl) { - return new ResourceRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.ResourceRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.ResourceRequestBuilder(rawUrl, RequestAdapter); } - public class ResourceRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ResourceRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] @@ -175,7 +198,11 @@ public class ResourceRequestBuilderGetQueryParameters { public string Uri { get; set; } #endif } - public class ResourceRequestBuilderPostQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ResourceRequestBuilderPostQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Search/SearchRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Search/SearchRequestBuilder.cs index 2e5ddee5..44b5cb35 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Search/SearchRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Resource/Search/SearchRequestBuilder.cs @@ -1,53 +1,62 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Search { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Search +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\resource\search /// - public class SearchRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SearchRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/search{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) { + public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/search{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/search{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) { + public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/resource/search{?_id*,deep*,exactName*,first*,matchingUri*,max*,name*,owner*,scope*,type*,uri*}", rawUrl) + { } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ResourceRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -57,12 +66,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SearchRequestBuilder WithUrl(string rawUrl) { - return new SearchRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Search.SearchRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Search.SearchRequestBuilder(rawUrl, RequestAdapter); } - public class SearchRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SearchRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("deep")] public bool? Deep { get; set; } [QueryParameter("exactName")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/ResourceServerRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/ResourceServerRequestBuilder.cs index 4831af19..d43b9490 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/ResourceServerRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/ResourceServerRequestBuilder.cs @@ -6,79 +6,94 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Settings; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server /// - public class ResourceServerRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ResourceServerRequestBuilder : BaseRequestBuilder + { /// The import property - public ImportRequestBuilder Import { get => - new ImportRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import.ImportRequestBuilder Import + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import.ImportRequestBuilder(PathParameters, RequestAdapter); } /// The permission property - public PermissionRequestBuilder Permission { get => - new PermissionRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.PermissionRequestBuilder Permission + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.PermissionRequestBuilder(PathParameters, RequestAdapter); } /// The policy property - public PolicyRequestBuilder Policy { get => - new PolicyRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.PolicyRequestBuilder Policy + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.PolicyRequestBuilder(PathParameters, RequestAdapter); } /// The resource property - public ResourceRequestBuilder Resource { get => - new ResourceRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.ResourceRequestBuilder Resource + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.ResourceRequestBuilder(PathParameters, RequestAdapter); } /// The scope property - public ScopeRequestBuilder Scope { get => - new ScopeRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.ScopeRequestBuilder Scope + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.ScopeRequestBuilder(PathParameters, RequestAdapter); } /// The settings property - public SettingsRequestBuilder Settings { get => - new SettingsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Settings.SettingsRequestBuilder Settings + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Settings.SettingsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ResourceServerRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server", pathParameters) { + public ResourceServerRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ResourceServerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server", rawUrl) { + public ResourceServerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server", rawUrl) + { } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ResourceServerRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ResourceServerRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ResourceServerRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -88,10 +103,12 @@ public async Task PutAsync(ResourceServerRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -103,10 +120,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ResourceServerRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ResourceServerRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -117,10 +136,11 @@ public RequestInformation ToPutRequestInformation(ResourceServerRepresentation b /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ResourceServerRequestBuilder WithUrl(string rawUrl) { - return new ResourceServerRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.ResourceServerRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.ResourceServerRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Permissions/PermissionsRequestBuilder.cs index 4a2df966..91b4a8fa 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Permissions/PermissionsRequestBuilder.cs @@ -1,54 +1,63 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Permissions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Permissions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\scope\{scope-id}\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PermissionsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/permissions", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/permissions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/permissions", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/permissions", rawUrl) + { } - /// A List<PolicyRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, PolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -58,10 +67,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { - return new PermissionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Resources/ResourcesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Resources/ResourcesRequestBuilder.cs index 04d22e15..08cebd8f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/Resources/ResourcesRequestBuilder.cs @@ -1,54 +1,63 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Resources { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Resources +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\scope\{scope-id}\resources /// - public class ResourcesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ResourcesRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ResourcesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/resources", pathParameters) { + public ResourcesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/resources", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/resources", rawUrl) { + public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}/resources", rawUrl) + { } - /// A List<ResourceRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ResourceRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -58,10 +67,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ResourcesRequestBuilder WithUrl(string rawUrl) { - return new ResourcesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Resources.ResourcesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Resources.ResourcesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/ScopeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/ScopeItemRequestBuilder.cs index c45efffe..7dec3525 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/ScopeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Item/ScopeItemRequestBuilder.cs @@ -2,66 +2,77 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Permissions; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Resources; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\scope\{scope-id} /// - public class ScopeItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ScopeItemRequestBuilder : BaseRequestBuilder + { /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Permissions.PermissionsRequestBuilder Permissions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); } /// The resources property - public ResourcesRequestBuilder Resources { get => - new ResourcesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Resources.ResourcesRequestBuilder Resources + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Resources.ResourcesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}", pathParameters) { + public ScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}", rawUrl) { + public ScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/{scope%2Did}", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// The request body @@ -69,10 +80,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -82,10 +95,12 @@ public async Task PutAsync(ScopeRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -95,10 +110,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -110,10 +127,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ScopeRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ScopeRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -124,10 +143,11 @@ public RequestInformation ToPutRequestInformation(ScopeRepresentation body, Acti /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ScopeItemRequestBuilder WithUrl(string rawUrl) { - return new ScopeItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.ScopeItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.ScopeItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/ScopeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/ScopeRequestBuilder.cs index 4ee24d03..9ce5fe95 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/ScopeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/ScopeRequestBuilder.cs @@ -2,58 +2,70 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Search; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\scope /// - public class ScopeRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ScopeRequestBuilder : BaseRequestBuilder + { /// The search property - public SearchRequestBuilder Search { get => - new SearchRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Search.SearchRequestBuilder Search + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Search.SearchRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.authz.resourceServer.scope.item collection /// Unique identifier of the item - /// A - public ScopeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("scope%2Did", position); - return new ScopeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.ScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("scope%2Did", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.ScopeItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ScopeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope{?first*,max*,name*,scopeId*}", pathParameters) { + public ScopeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope{?first*,max*,name*,scopeId*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ScopeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope{?first*,max*,name*,scopeId*}", rawUrl) { + public ScopeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope{?first*,max*,name*,scopeId*}", rawUrl) + { } - /// A List<ScopeRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// A /// The request body @@ -61,10 +73,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -74,10 +88,12 @@ public async Task PostAsync(ScopeRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -89,13 +105,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ScopeRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ScopeRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -103,12 +121,17 @@ public RequestInformation ToPostRequestInformation(ScopeRepresentation body, Act /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ScopeRequestBuilder WithUrl(string rawUrl) { - return new ScopeRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.ScopeRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.ScopeRequestBuilder(rawUrl, RequestAdapter); } - public class ScopeRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ScopeRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("first")] public int? First { get; set; } [QueryParameter("max")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Search/SearchRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Search/SearchRequestBuilder.cs index 2f5e8927..8698fdfc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Search/SearchRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Scope/Search/SearchRequestBuilder.cs @@ -1,54 +1,63 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Search { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Search +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\scope\search /// - public class SearchRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SearchRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/search{?name*}", pathParameters) { + public SearchRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/search{?name*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/search{?name*}", rawUrl) { + public SearchRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/scope/search{?name*}", rawUrl) + { } - /// A List<ScopeRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -58,12 +67,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SearchRequestBuilder WithUrl(string rawUrl) { - return new SearchRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Search.SearchRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Search.SearchRequestBuilder(rawUrl, RequestAdapter); } - public class SearchRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SearchRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("name")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Settings/SettingsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Settings/SettingsRequestBuilder.cs index fd346efa..84c956c6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Settings/SettingsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Authz/ResourceServer/Settings/SettingsRequestBuilder.cs @@ -1,53 +1,62 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Settings { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Settings +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\authz\resource-server\settings /// - public class SettingsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SettingsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/settings", pathParameters) { + public SettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/settings", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/settings", rawUrl) { + public SettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/authz/resource-server/settings", rawUrl) + { } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ResourceServerRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -57,10 +66,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SettingsRequestBuilder WithUrl(string rawUrl) { - return new SettingsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Settings.SettingsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Settings.SettingsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/CertificatesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/CertificatesRequestBuilder.cs index 93c2d898..13a4e63a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/CertificatesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/CertificatesRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\certificates /// - public class CertificatesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CertificatesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.certificates.item collection /// Unique identifier of the item - /// A - public WithAttrItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("attr", position); - return new WithAttrItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.WithAttrItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("attr", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.WithAttrItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CertificatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates", pathParameters) { + public CertificatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CertificatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates", rawUrl) { + public CertificatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Download/DownloadRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Download/DownloadRequestBuilder.cs index 9dad70c0..f3e73728 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Download/DownloadRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Download/DownloadRequestBuilder.cs @@ -1,31 +1,36 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\certificates\{attr}\download /// - public class DownloadRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class DownloadRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public DownloadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/download", pathParameters) { + public DownloadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/download", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public DownloadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/download", rawUrl) { + public DownloadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/download", rawUrl) + { } /// /// Get a keystore file for the client, containing private key and public certificate @@ -36,10 +41,12 @@ public DownloadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(KeyStoreConfig body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyStoreConfig body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(KeyStoreConfig body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyStoreConfig body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -53,10 +60,12 @@ public async Task PostAsync(KeyStoreConfig body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyStoreConfig body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyStoreConfig body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -68,10 +77,11 @@ public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DownloadRequestBuilder WithUrl(string rawUrl) { - return new DownloadRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download.DownloadRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download.DownloadRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Generate/GenerateRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Generate/GenerateRequestBuilder.cs index 68186de1..067a8ffa 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Generate/GenerateRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Generate/GenerateRequestBuilder.cs @@ -1,47 +1,54 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\certificates\{attr}\generate /// - public class GenerateRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GenerateRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GenerateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate", pathParameters) { + public GenerateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GenerateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate", rawUrl) { + public GenerateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate", rawUrl) + { } /// /// Generate a new certificate with new key pair /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CertificateRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CertificateRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Generate a new certificate with new key pair @@ -50,10 +57,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GenerateRequestBuilder WithUrl(string rawUrl) { - return new GenerateRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate.GenerateRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate.GenerateRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/GenerateAndDownload/GenerateAndDownloadRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/GenerateAndDownload/GenerateAndDownloadRequestBuilder.cs index ce96dff1..0e8d0e96 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/GenerateAndDownload/GenerateAndDownloadRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/GenerateAndDownload/GenerateAndDownloadRequestBuilder.cs @@ -1,31 +1,36 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\certificates\{attr}\generate-and-download /// - public class GenerateAndDownloadRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GenerateAndDownloadRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GenerateAndDownloadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate-and-download", pathParameters) { + public GenerateAndDownloadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate-and-download", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GenerateAndDownloadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate-and-download", rawUrl) { + public GenerateAndDownloadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/generate-and-download", rawUrl) + { } /// /// Generate a new keypair and certificate, and get the private key fileGenerates 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. @@ -36,10 +41,12 @@ public GenerateAndDownloadRequestBuilder(string rawUrl, IRequestAdapter requestA /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(KeyStoreConfig body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyStoreConfig body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(KeyStoreConfig body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyStoreConfig body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -53,10 +60,12 @@ public async Task PostAsync(KeyStoreConfig body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyStoreConfig body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyStoreConfig body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -68,10 +77,11 @@ public RequestInformation ToPostRequestInformation(KeyStoreConfig body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GenerateAndDownloadRequestBuilder WithUrl(string rawUrl) { - return new GenerateAndDownloadRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload.GenerateAndDownloadRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload.GenerateAndDownloadRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Upload/UploadRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Upload/UploadRequestBuilder.cs index 98bb6a0b..07dfc934 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Upload/UploadRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/Upload/UploadRequestBuilder.cs @@ -1,47 +1,54 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\certificates\{attr}\upload /// - public class UploadRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UploadRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload", pathParameters) { + public UploadRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public UploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload", rawUrl) { + public UploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload", rawUrl) + { } /// /// Upload certificate and eventually private key /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CertificateRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CertificateRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Upload certificate and eventually private key @@ -50,10 +57,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UploadRequestBuilder WithUrl(string rawUrl) { - return new UploadRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload.UploadRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload.UploadRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/UploadCertificate/UploadCertificateRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/UploadCertificate/UploadCertificateRequestBuilder.cs index b743a255..89a165db 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/UploadCertificate/UploadCertificateRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/UploadCertificate/UploadCertificateRequestBuilder.cs @@ -1,47 +1,54 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.UploadCertificate { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.UploadCertificate +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\certificates\{attr}\upload-certificate /// - public class UploadCertificateRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UploadCertificateRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UploadCertificateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload-certificate", pathParameters) { + public UploadCertificateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload-certificate", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public UploadCertificateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload-certificate", rawUrl) { + public UploadCertificateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}/upload-certificate", rawUrl) + { } /// /// Upload only certificate, not private key /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CertificateRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CertificateRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Upload only certificate, not private key @@ -50,10 +57,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UploadCertificateRequestBuilder WithUrl(string rawUrl) { - return new UploadCertificateRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.UploadCertificate.UploadCertificateRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.UploadCertificate.UploadCertificateRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/WithAttrItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/WithAttrItemRequestBuilder.cs index ff6454ca..2c7bba34 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/WithAttrItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Certificates/Item/WithAttrItemRequestBuilder.cs @@ -5,68 +5,80 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.UploadCertificate; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\certificates\{attr} /// - public class WithAttrItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithAttrItemRequestBuilder : BaseRequestBuilder + { /// The download property - public DownloadRequestBuilder Download { get => - new DownloadRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download.DownloadRequestBuilder Download + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download.DownloadRequestBuilder(PathParameters, RequestAdapter); } /// The generate property - public GenerateRequestBuilder Generate { get => - new GenerateRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate.GenerateRequestBuilder Generate + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate.GenerateRequestBuilder(PathParameters, RequestAdapter); } /// The generateAndDownload property - public GenerateAndDownloadRequestBuilder GenerateAndDownload { get => - new GenerateAndDownloadRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload.GenerateAndDownloadRequestBuilder GenerateAndDownload + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload.GenerateAndDownloadRequestBuilder(PathParameters, RequestAdapter); } /// The upload property - public UploadRequestBuilder Upload { get => - new UploadRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload.UploadRequestBuilder Upload + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload.UploadRequestBuilder(PathParameters, RequestAdapter); } /// The uploadCertificate property - public UploadCertificateRequestBuilder UploadCertificate { get => - new UploadCertificateRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.UploadCertificate.UploadCertificateRequestBuilder UploadCertificate + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.UploadCertificate.UploadCertificateRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithAttrItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}", pathParameters) { + public WithAttrItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithAttrItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}", rawUrl) { + public WithAttrItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/certificates/{attr}", rawUrl) + { } /// /// Get key info /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CertificateRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CertificateRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get key info @@ -75,10 +87,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -88,10 +102,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithAttrItemRequestBuilder WithUrl(string rawUrl) { - return new WithAttrItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.WithAttrItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.WithAttrItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/ClientSecretRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/ClientSecretRequestBuilder.cs index 0b4eb310..16a53e4a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/ClientSecretRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/ClientSecretRequestBuilder.cs @@ -1,68 +1,78 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.Rotated; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\client-secret /// - public class ClientSecretRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientSecretRequestBuilder : BaseRequestBuilder + { /// The rotated property - public RotatedRequestBuilder Rotated { get => - new RotatedRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.Rotated.RotatedRequestBuilder Rotated + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.Rotated.RotatedRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientSecretRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret", pathParameters) { + public ClientSecretRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientSecretRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret", rawUrl) { + public ClientSecretRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret", rawUrl) + { } /// /// Get the client secret /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CredentialRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Generate a new secret for the client /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CredentialRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get the client secret @@ -71,10 +81,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -88,10 +100,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -101,10 +115,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClientSecretRequestBuilder WithUrl(string rawUrl) { - return new ClientSecretRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.ClientSecretRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.ClientSecretRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/Rotated/RotatedRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/Rotated/RotatedRequestBuilder.cs index ce37888b..240d9625 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/Rotated/RotatedRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientSecret/Rotated/RotatedRequestBuilder.cs @@ -1,31 +1,36 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.Rotated { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.Rotated +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\client-secret\rotated /// - public class RotatedRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RotatedRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RotatedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret/rotated", pathParameters) { + public RotatedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret/rotated", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RotatedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret/rotated", rawUrl) { + public RotatedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/client-secret/rotated", rawUrl) + { } /// /// Invalidate the rotated secret for the client @@ -35,10 +40,12 @@ public RotatedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -46,18 +53,20 @@ public async Task DeleteAsync(Action /// Get the rotated client secret /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CredentialRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Invalidate the rotated secret for the client @@ -66,10 +75,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -82,10 +93,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -95,10 +108,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RotatedRequestBuilder WithUrl(string rawUrl) { - return new RotatedRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.Rotated.RotatedRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.Rotated.RotatedRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientUuItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientUuItemRequestBuilder.cs index 0129be30..16c16c13 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientUuItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ClientUuItemRequestBuilder.cs @@ -20,112 +20,137 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.UserSessions; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid} /// - public class ClientUuItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientUuItemRequestBuilder : BaseRequestBuilder + { /// The authz property - public AuthzRequestBuilder Authz { get => - new AuthzRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.AuthzRequestBuilder Authz + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.AuthzRequestBuilder(PathParameters, RequestAdapter); } /// The certificates property - public CertificatesRequestBuilder Certificates { get => - new CertificatesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.CertificatesRequestBuilder Certificates + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.CertificatesRequestBuilder(PathParameters, RequestAdapter); } /// The clientSecret property - public ClientSecretRequestBuilder ClientSecret { get => - new ClientSecretRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.ClientSecretRequestBuilder ClientSecret + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.ClientSecretRequestBuilder(PathParameters, RequestAdapter); } /// The defaultClientScopes property - public DefaultClientScopesRequestBuilder DefaultClientScopes { get => - new DefaultClientScopesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.DefaultClientScopesRequestBuilder DefaultClientScopes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.DefaultClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The evaluateScopes property - public EvaluateScopesRequestBuilder EvaluateScopes { get => - new EvaluateScopesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.EvaluateScopesRequestBuilder EvaluateScopes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.EvaluateScopesRequestBuilder(PathParameters, RequestAdapter); } /// The installation property - public InstallationRequestBuilder Installation { get => - new InstallationRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.InstallationRequestBuilder Installation + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.InstallationRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public ManagementRequestBuilder Management { get => - new ManagementRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.ManagementRequestBuilder Management + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The nodes property - public NodesRequestBuilder Nodes { get => - new NodesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesRequestBuilder Nodes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesRequestBuilder(PathParameters, RequestAdapter); } /// The offlineSessionCount property - public OfflineSessionCountRequestBuilder OfflineSessionCount { get => - new OfflineSessionCountRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountRequestBuilder OfflineSessionCount + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountRequestBuilder(PathParameters, RequestAdapter); } /// The offlineSessions property - public OfflineSessionsRequestBuilder OfflineSessions { get => - new OfflineSessionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessions.OfflineSessionsRequestBuilder OfflineSessions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessions.OfflineSessionsRequestBuilder(PathParameters, RequestAdapter); } /// The optionalClientScopes property - public OptionalClientScopesRequestBuilder OptionalClientScopes { get => - new OptionalClientScopesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.OptionalClientScopesRequestBuilder OptionalClientScopes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.OptionalClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The protocolMappers property - public ProtocolMappersRequestBuilder ProtocolMappers { get => - new ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ProtocolMappersRequestBuilder ProtocolMappers + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); } /// The pushRevocation property - public PushRevocationRequestBuilder PushRevocation { get => - new PushRevocationRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.PushRevocation.PushRevocationRequestBuilder PushRevocation + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.PushRevocation.PushRevocationRequestBuilder(PathParameters, RequestAdapter); } /// The registrationAccessToken property - public RegistrationAccessTokenRequestBuilder RegistrationAccessToken { get => - new RegistrationAccessTokenRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken.RegistrationAccessTokenRequestBuilder RegistrationAccessToken + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken.RegistrationAccessTokenRequestBuilder(PathParameters, RequestAdapter); } /// The roles property - public RolesRequestBuilder Roles { get => - new RolesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.RolesRequestBuilder Roles + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); } /// The scopeMappings property - public ScopeMappingsRequestBuilder ScopeMappings { get => - new ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.ScopeMappingsRequestBuilder ScopeMappings + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); } /// The serviceAccountUser property - public ServiceAccountUserRequestBuilder ServiceAccountUser { get => - new ServiceAccountUserRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ServiceAccountUser.ServiceAccountUserRequestBuilder ServiceAccountUser + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ServiceAccountUser.ServiceAccountUserRequestBuilder(PathParameters, RequestAdapter); } /// The sessionCount property - public SessionCountRequestBuilder SessionCount { get => - new SessionCountRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountRequestBuilder SessionCount + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountRequestBuilder(PathParameters, RequestAdapter); } /// The testNodesAvailable property - public TestNodesAvailableRequestBuilder TestNodesAvailable { get => - new TestNodesAvailableRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable.TestNodesAvailableRequestBuilder TestNodesAvailable + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable.TestNodesAvailableRequestBuilder(PathParameters, RequestAdapter); } /// The userSessions property - public UserSessionsRequestBuilder UserSessions { get => - new UserSessionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.UserSessions.UserSessionsRequestBuilder UserSessions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.UserSessions.UserSessionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}", pathParameters) { + public ClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}", rawUrl) { + public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}", rawUrl) + { } /// /// Delete the client @@ -134,10 +159,12 @@ public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -145,18 +172,20 @@ public async Task DeleteAsync(Action /// Get representation of the client /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ClientRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update the client @@ -167,10 +196,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ClientRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ClientRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -183,10 +214,12 @@ public async Task PutAsync(ClientRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -199,10 +232,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -217,10 +252,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ClientRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ClientRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -231,10 +268,11 @@ public RequestInformation ToPutRequestInformation(ClientRepresentation body, Act /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClientUuItemRequestBuilder WithUrl(string rawUrl) { - return new ClientUuItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientUuItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/DefaultClientScopesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/DefaultClientScopesRequestBuilder.cs index c89b4805..7be876cd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/DefaultClientScopesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/DefaultClientScopesRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\default-client-scopes /// - public class DefaultClientScopesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class DefaultClientScopesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.defaultClientScopes.item collection /// Unique identifier of the item - /// A - public WithClientScopeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("clientScopeId", position); - return new WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.Item.WithClientScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("clientScopeId", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.Item.WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public DefaultClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes", pathParameters) { + public DefaultClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public DefaultClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes", rawUrl) { + public DefaultClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes", rawUrl) + { } /// /// Get default client scopes. Only name and ids are returned. /// - /// A List<ClientScopeRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get default client scopes. Only name and ids are returned. @@ -60,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -73,10 +86,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DefaultClientScopesRequestBuilder WithUrl(string rawUrl) { - return new DefaultClientScopesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.DefaultClientScopesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.DefaultClientScopesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs index 4db64c9e..4fc81491 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/DefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs @@ -1,39 +1,46 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\default-client-scopes\{clientScopeId} /// - public class WithClientScopeItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithClientScopeItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes/{clientScopeId}", pathParameters) { + public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes/{clientScopeId}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes/{clientScopeId}", rawUrl) { + public WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/default-client-scopes/{clientScopeId}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -42,10 +49,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -54,10 +63,12 @@ public async Task PutAsync(Action> /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -67,10 +78,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -79,10 +92,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithClientScopeItemRequestBuilder WithUrl(string rawUrl) { - return new WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.Item.WithClientScopeItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.Item.WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/EvaluateScopesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/EvaluateScopesRequestBuilder.cs index 895408f4..d29881d5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/EvaluateScopesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/EvaluateScopesRequestBuilder.cs @@ -4,50 +4,60 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ProtocolMappers; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes /// - public class EvaluateScopesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class EvaluateScopesRequestBuilder : BaseRequestBuilder + { /// The generateExampleAccessToken property - public GenerateExampleAccessTokenRequestBuilder GenerateExampleAccessToken { get => - new GenerateExampleAccessTokenRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleAccessToken.GenerateExampleAccessTokenRequestBuilder GenerateExampleAccessToken + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleAccessToken.GenerateExampleAccessTokenRequestBuilder(PathParameters, RequestAdapter); } /// The generateExampleIdToken property - public GenerateExampleIdTokenRequestBuilder GenerateExampleIdToken { get => - new GenerateExampleIdTokenRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleIdToken.GenerateExampleIdTokenRequestBuilder GenerateExampleIdToken + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleIdToken.GenerateExampleIdTokenRequestBuilder(PathParameters, RequestAdapter); } /// The generateExampleUserinfo property - public GenerateExampleUserinfoRequestBuilder GenerateExampleUserinfo { get => - new GenerateExampleUserinfoRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoRequestBuilder GenerateExampleUserinfo + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoRequestBuilder(PathParameters, RequestAdapter); } /// The protocolMappers property - public ProtocolMappersRequestBuilder ProtocolMappers { get => - new ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ProtocolMappers.ProtocolMappersRequestBuilder ProtocolMappers + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ProtocolMappers.ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); } /// The scopeMappings property - public ScopeMappingsRequestBuilder ScopeMappings { get => - new ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.ScopeMappingsRequestBuilder ScopeMappings + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public EvaluateScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes", pathParameters) { + public EvaluateScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public EvaluateScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes", rawUrl) { + public EvaluateScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleAccessToken/GenerateExampleAccessTokenRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleAccessToken/GenerateExampleAccessTokenRequestBuilder.cs index 6ce63d0c..4c703408 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleAccessToken/GenerateExampleAccessTokenRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleAccessToken/GenerateExampleAccessTokenRequestBuilder.cs @@ -1,47 +1,54 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleAccessToken { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleAccessToken +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\generate-example-access-token /// - public class GenerateExampleAccessTokenRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GenerateExampleAccessTokenRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GenerateExampleAccessTokenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-access-token{?scope*,userId*}", pathParameters) { + public GenerateExampleAccessTokenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-access-token{?scope*,userId*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GenerateExampleAccessTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-access-token{?scope*,userId*}", rawUrl) { + public GenerateExampleAccessTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-access-token{?scope*,userId*}", rawUrl) + { } /// /// Create JSON with payload of example access token /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, AccessToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Create JSON with payload of example access token @@ -50,10 +57,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,15 +72,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GenerateExampleAccessTokenRequestBuilder WithUrl(string rawUrl) { - return new GenerateExampleAccessTokenRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleAccessToken.GenerateExampleAccessTokenRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleAccessToken.GenerateExampleAccessTokenRequestBuilder(rawUrl, RequestAdapter); } /// /// Create JSON with payload of example access token /// - public class GenerateExampleAccessTokenRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GenerateExampleAccessTokenRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("scope")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleIdToken/GenerateExampleIdTokenRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleIdToken/GenerateExampleIdTokenRequestBuilder.cs index 4ae20212..7c5f0047 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleIdToken/GenerateExampleIdTokenRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleIdToken/GenerateExampleIdTokenRequestBuilder.cs @@ -1,47 +1,54 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleIdToken { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleIdToken +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\generate-example-id-token /// - public class GenerateExampleIdTokenRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GenerateExampleIdTokenRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GenerateExampleIdTokenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-id-token{?scope*,userId*}", pathParameters) { + public GenerateExampleIdTokenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-id-token{?scope*,userId*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GenerateExampleIdTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-id-token{?scope*,userId*}", rawUrl) { + public GenerateExampleIdTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-id-token{?scope*,userId*}", rawUrl) + { } /// /// Create JSON with payload of example id token /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, IDToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Create JSON with payload of example id token @@ -50,10 +57,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,15 +72,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GenerateExampleIdTokenRequestBuilder WithUrl(string rawUrl) { - return new GenerateExampleIdTokenRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleIdToken.GenerateExampleIdTokenRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleIdToken.GenerateExampleIdTokenRequestBuilder(rawUrl, RequestAdapter); } /// /// Create JSON with payload of example id token /// - public class GenerateExampleIdTokenRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GenerateExampleIdTokenRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("scope")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoGetResponse.cs index 99654249..c913b781 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoGetResponse.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo { - public class GenerateExampleUserinfoGetResponse : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class GenerateExampleUserinfoGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public GenerateExampleUserinfoGetResponse() { + public GenerateExampleUserinfoGetResponse() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GenerateExampleUserinfoGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GenerateExampleUserinfoGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoGetResponse(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoRequestBuilder.cs index 5701f438..2dc44aee 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/GenerateExampleUserinfo/GenerateExampleUserinfoRequestBuilder.cs @@ -1,46 +1,53 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\generate-example-userinfo /// - public class GenerateExampleUserinfoRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GenerateExampleUserinfoRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GenerateExampleUserinfoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-userinfo{?scope*,userId*}", pathParameters) { + public GenerateExampleUserinfoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-userinfo{?scope*,userId*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GenerateExampleUserinfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-userinfo{?scope*,userId*}", rawUrl) { + public GenerateExampleUserinfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/generate-example-userinfo{?scope*,userId*}", rawUrl) + { } /// /// Create JSON with payload of example user info /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GenerateExampleUserinfoGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Create JSON with payload of example user info @@ -49,10 +56,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,15 +71,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GenerateExampleUserinfoRequestBuilder WithUrl(string rawUrl) { - return new GenerateExampleUserinfoRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoRequestBuilder(rawUrl, RequestAdapter); } /// /// Create JSON with payload of example user info /// - public class GenerateExampleUserinfoRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GenerateExampleUserinfoRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("scope")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ProtocolMappers/ProtocolMappersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ProtocolMappers/ProtocolMappersRequestBuilder.cs index 881800a7..2ebee368 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ProtocolMappers/ProtocolMappersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ProtocolMappers/ProtocolMappersRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ProtocolMappers { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ProtocolMappers +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\protocol-mappers /// - public class ProtocolMappersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProtocolMappersRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/protocol-mappers{?scope*}", pathParameters) { + public ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/protocol-mappers{?scope*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/protocol-mappers{?scope*}", rawUrl) { + public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/protocol-mappers{?scope*}", rawUrl) + { } /// /// This means protocol mappers assigned to this client directly and protocol mappers assigned to all client scopes of this client. /// - /// A List<ProtocolMapperEvaluationRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperEvaluationRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProtocolMapperEvaluationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperEvaluationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// This means protocol mappers assigned to this client directly and protocol mappers assigned to all client scopes of this client. @@ -51,10 +58,12 @@ public async Task> GetAsync(Action< /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ProtocolMappersRequestBuilder WithUrl(string rawUrl) { - return new ProtocolMappersRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ProtocolMappers.ProtocolMappersRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ProtocolMappers.ProtocolMappersRequestBuilder(rawUrl, RequestAdapter); } /// /// This means protocol mappers assigned to this client directly and protocol mappers assigned to all client scopes of this client. /// - public class ProtocolMappersRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProtocolMappersRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("scope")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/Granted/GrantedRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/Granted/GrantedRequestBuilder.cs index 4ce9fac5..3f38e2a1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/Granted/GrantedRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/Granted/GrantedRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\scope-mappings\{roleContainerId}\granted /// - public class GrantedRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GrantedRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GrantedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted{?scope*}", pathParameters) { + public GrantedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted{?scope*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GrantedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted{?scope*}", rawUrl) { + public GrantedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/granted{?scope*}", rawUrl) + { } /// /// 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. /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// 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. @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GrantedRequestBuilder WithUrl(string rawUrl) { - return new GrantedRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted.GrantedRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted.GrantedRequestBuilder(rawUrl, RequestAdapter); } /// /// 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. /// - public class GrantedRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GrantedRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("scope")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/NotGranted/NotGrantedRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/NotGranted/NotGrantedRequestBuilder.cs index 841a6d92..8d9125e0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/NotGranted/NotGrantedRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/NotGranted/NotGrantedRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.NotGranted { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.NotGranted +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\scope-mappings\{roleContainerId}\not-granted /// - public class NotGrantedRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class NotGrantedRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public NotGrantedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted{?scope*}", pathParameters) { + public NotGrantedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted{?scope*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public NotGrantedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted{?scope*}", rawUrl) { + public NotGrantedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}/not-granted{?scope*}", rawUrl) + { } /// /// Defacto all the other roles of particular role container, which are not in {@link #getGrantedScopeMappings()} /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Defacto all the other roles of particular role container, which are not in {@link #getGrantedScopeMappings()} @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public NotGrantedRequestBuilder WithUrl(string rawUrl) { - return new NotGrantedRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.NotGranted.NotGrantedRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.NotGranted.NotGrantedRequestBuilder(rawUrl, RequestAdapter); } /// /// Defacto all the other roles of particular role container, which are not in {@link #getGrantedScopeMappings()} /// - public class NotGrantedRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class NotGrantedRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("scope")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/WithRoleContainerItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/WithRoleContainerItemRequestBuilder.cs index 9b3312a9..c122281d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/WithRoleContainerItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/Item/WithRoleContainerItemRequestBuilder.cs @@ -1,38 +1,45 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.NotGranted; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\scope-mappings\{roleContainerId} /// - public class WithRoleContainerItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithRoleContainerItemRequestBuilder : BaseRequestBuilder + { /// The granted property - public GrantedRequestBuilder Granted { get => - new GrantedRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted.GrantedRequestBuilder Granted + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted.GrantedRequestBuilder(PathParameters, RequestAdapter); } /// The notGranted property - public NotGrantedRequestBuilder NotGranted { get => - new NotGrantedRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.NotGranted.NotGrantedRequestBuilder NotGranted + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.NotGranted.NotGrantedRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithRoleContainerItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}", pathParameters) { + public WithRoleContainerItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithRoleContainerItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}", rawUrl) { + public WithRoleContainerItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings/{roleContainerId}", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/ScopeMappingsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/ScopeMappingsRequestBuilder.cs index a9ebdd15..96302df9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/ScopeMappingsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/EvaluateScopes/ScopeMappings/ScopeMappingsRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\evaluate-scopes\scope-mappings /// - public class ScopeMappingsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ScopeMappingsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.evaluateScopes.scopeMappings.item collection /// either realm name OR client UUID - /// A - public WithRoleContainerItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("roleContainerId", position); - return new WithRoleContainerItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.WithRoleContainerItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("roleContainerId", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.WithRoleContainerItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings", pathParameters) { + public ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings", rawUrl) { + public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/evaluate-scopes/scope-mappings", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/InstallationRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/InstallationRequestBuilder.cs index 9a4fce51..b8a1299f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/InstallationRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/InstallationRequestBuilder.cs @@ -1,33 +1,39 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\installation /// - public class InstallationRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class InstallationRequestBuilder : BaseRequestBuilder + { /// The providers property - public ProvidersRequestBuilder Providers { get => - new ProvidersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.ProvidersRequestBuilder Providers + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.ProvidersRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public InstallationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation", pathParameters) { + public InstallationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public InstallationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation", rawUrl) { + public InstallationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/Item/WithProviderItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/Item/WithProviderItemRequestBuilder.cs index 55cb6fed..104384a4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/Item/WithProviderItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/Item/WithProviderItemRequestBuilder.cs @@ -1,40 +1,47 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\installation\providers\{providerId} /// - public class WithProviderItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithProviderItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithProviderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers/{providerId}", pathParameters) { + public WithProviderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers/{providerId}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers/{providerId}", rawUrl) { + public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers/{providerId}", rawUrl) + { } /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -43,10 +50,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -55,10 +64,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithProviderItemRequestBuilder WithUrl(string rawUrl) { - return new WithProviderItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.Item.WithProviderItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.Item.WithProviderItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/ProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/ProvidersRequestBuilder.cs index 262a61c0..b4fc25e5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/ProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Installation/Providers/ProvidersRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\installation\providers /// - public class ProvidersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProvidersRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.installation.providers.item collection /// Unique identifier of the item - /// A - public WithProviderItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("providerId", position); - return new WithProviderItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.Item.WithProviderItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("providerId", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.Item.WithProviderItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers", pathParameters) { + public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers", rawUrl) { + public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/installation/providers", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/ManagementRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/ManagementRequestBuilder.cs index dd5ff9e8..da47bae4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/ManagementRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/ManagementRequestBuilder.cs @@ -1,33 +1,39 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.Permissions; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\management /// - public class ManagementRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ManagementRequestBuilder : BaseRequestBuilder + { /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.Permissions.PermissionsRequestBuilder Permissions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management", pathParameters) { + public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management", rawUrl) { + public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/Permissions/PermissionsRequestBuilder.cs index 8c1e2387..f23651c1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Management/Permissions/PermissionsRequestBuilder.cs @@ -1,65 +1,74 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.Permissions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.Permissions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\management\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PermissionsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management/permissions", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management/permissions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management/permissions", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/management/permissions", rawUrl) + { } /// /// Return object stating whether client Authorization permissions have been initialized or not and a reference /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Return object stating whether client Authorization permissions have been initialized or not and a reference /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Return object stating whether client Authorization permissions have been initialized or not and a reference @@ -68,10 +77,12 @@ public async Task PutAsync(ManagementPermissionRe /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -86,10 +97,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -101,10 +114,11 @@ public RequestInformation ToPutRequestInformation(ManagementPermissionReference /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { - return new PermissionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/Item/WithNodeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/Item/WithNodeItemRequestBuilder.cs index 4787fd25..c9003e63 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/Item/WithNodeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/Item/WithNodeItemRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\nodes\{node} /// - public class WithNodeItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithNodeItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithNodeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes/{node}", pathParameters) { + public WithNodeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes/{node}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithNodeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes/{node}", rawUrl) { + public WithNodeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes/{node}", rawUrl) + { } /// /// Unregister a cluster node from the client @@ -33,10 +38,12 @@ public WithNodeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +55,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,10 +69,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithNodeItemRequestBuilder WithUrl(string rawUrl) { - return new WithNodeItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.Item.WithNodeItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.Item.WithNodeItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesPostRequestBody.cs index 27ba84d6..53ecd430 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesPostRequestBody.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes { - public class NodesPostRequestBody : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class NodesPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public NodesPostRequestBody() { + public NodesPostRequestBody() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static NodesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new NodesPostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesPostRequestBody(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesRequestBuilder.cs index 27c543dc..34755468 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Nodes/NodesRequestBuilder.cs @@ -1,39 +1,48 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\nodes /// - public class NodesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class NodesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.nodes.item collection /// Unique identifier of the item - /// A - public WithNodeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("node", position); - return new WithNodeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.Item.WithNodeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("node", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.Item.WithNodeItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public NodesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes", pathParameters) { + public NodesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public NodesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes", rawUrl) { + public NodesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/nodes", rawUrl) + { } /// /// 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 @@ -43,10 +52,12 @@ public NodesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(NodesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(NodesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -60,10 +71,12 @@ public async Task PostAsync(NodesPostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(NodesPostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesPostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(NodesPostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesPostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -74,10 +87,11 @@ public RequestInformation ToPostRequestInformation(NodesPostRequestBody body, Ac /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public NodesRequestBuilder WithUrl(string rawUrl) { - return new NodesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountGetResponse.cs index 5d72f8b5..a46abf72 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountGetResponse.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount { - public class OfflineSessionCountGetResponse : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OfflineSessionCountGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public OfflineSessionCountGetResponse() { + public OfflineSessionCountGetResponse() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OfflineSessionCountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OfflineSessionCountGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountGetResponse(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountRequestBuilder.cs index d5cc58a6..076ec4d3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessionCount/OfflineSessionCountRequestBuilder.cs @@ -1,46 +1,53 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\offline-session-count /// - public class OfflineSessionCountRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class OfflineSessionCountRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public OfflineSessionCountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-session-count", pathParameters) { + public OfflineSessionCountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-session-count", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public OfflineSessionCountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-session-count", rawUrl) { + public OfflineSessionCountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-session-count", rawUrl) + { } /// /// Get application offline session count Returns a number of offline user sessions associated with this client { "count": number } /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, OfflineSessionCountGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get application offline session count Returns a number of offline user sessions associated with this client { "count": number } @@ -49,10 +56,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,10 +71,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public OfflineSessionCountRequestBuilder WithUrl(string rawUrl) { - return new OfflineSessionCountRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs index a8ffb5d5..b3e224dd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\offline-sessions /// - public class OfflineSessionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class OfflineSessionsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public OfflineSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-sessions{?first*,max*}", pathParameters) { + public OfflineSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-sessions{?first*,max*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public OfflineSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-sessions{?first*,max*}", rawUrl) { + public OfflineSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/offline-sessions{?first*,max*}", rawUrl) + { } /// /// Get offline sessions for client Returns a list of offline user sessions associated with this client /// - /// A List<UserSessionRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserSessionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get offline sessions for client Returns a list of offline user sessions associated with this client @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public OfflineSessionsRequestBuilder WithUrl(string rawUrl) { - return new OfflineSessionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessions.OfflineSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessions.OfflineSessionsRequestBuilder(rawUrl, RequestAdapter); } /// /// Get offline sessions for client Returns a list of offline user sessions associated with this client /// - public class OfflineSessionsRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class OfflineSessionsRequestBuilderGetQueryParameters + { /// Paging offset [QueryParameter("first")] public int? First { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs index c809e900..55e1d967 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs @@ -1,39 +1,46 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\optional-client-scopes\{clientScopeId} /// - public class WithClientScopeItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithClientScopeItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes/{clientScopeId}", pathParameters) { + public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes/{clientScopeId}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes/{clientScopeId}", rawUrl) { + public WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes/{clientScopeId}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -42,10 +49,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -54,10 +63,12 @@ public async Task PutAsync(Action> /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -67,10 +78,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -79,10 +92,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithClientScopeItemRequestBuilder WithUrl(string rawUrl) { - return new WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.Item.WithClientScopeItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.Item.WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/OptionalClientScopesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/OptionalClientScopesRequestBuilder.cs index 662926f2..89d54d81 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/OptionalClientScopesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/OptionalClientScopes/OptionalClientScopesRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\optional-client-scopes /// - public class OptionalClientScopesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class OptionalClientScopesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.optionalClientScopes.item collection /// Unique identifier of the item - /// A - public WithClientScopeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("clientScopeId", position); - return new WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.Item.WithClientScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("clientScopeId", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.Item.WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public OptionalClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes", pathParameters) { + public OptionalClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public OptionalClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes", rawUrl) { + public OptionalClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/optional-client-scopes", rawUrl) + { } /// /// Get optional client scopes. Only name and ids are returned. /// - /// A List<ClientScopeRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get optional client scopes. Only name and ids are returned. @@ -60,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -73,10 +86,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public OptionalClientScopesRequestBuilder WithUrl(string rawUrl) { - return new OptionalClientScopesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.OptionalClientScopesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.OptionalClientScopesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs index ba54a563..2202406c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/AddModels/AddModelsRequestBuilder.cs @@ -1,31 +1,36 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\protocol-mappers\add-models /// - public class AddModelsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AddModelsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AddModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/add-models", pathParameters) { + public AddModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/add-models", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/add-models", rawUrl) { + public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/add-models", rawUrl) + { } /// /// Create multiple mappers @@ -35,10 +40,12 @@ public AddModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -52,10 +59,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -66,10 +75,11 @@ public RequestInformation ToPostRequestInformation(List /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AddModelsRequestBuilder WithUrl(string rawUrl) { - return new AddModelsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs index 1efd48f0..aad33cd7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/Item/ModelsItemRequestBuilder.cs @@ -1,31 +1,36 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\protocol-mappers\models\{id} /// - public class ModelsItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ModelsItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ModelsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models/{id}", pathParameters) { + public ModelsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models/{id}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models/{id}", rawUrl) { + public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models/{id}", rawUrl) + { } /// /// Delete the mapper @@ -34,10 +39,12 @@ public ModelsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -45,18 +52,20 @@ public async Task DeleteAsync(Action /// Get mapper by id /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update the mapper @@ -66,10 +75,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -82,10 +93,12 @@ public async Task PutAsync(ProtocolMapperRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -98,10 +111,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -116,10 +131,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -130,10 +147,11 @@ public RequestInformation ToPutRequestInformation(ProtocolMapperRepresentation b /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ModelsItemRequestBuilder WithUrl(string rawUrl) { - return new ModelsItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs index efd15a34..8bfc1263 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ModelsRequests/ModelsRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\protocol-mappers\models /// - public class ModelsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ModelsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.protocolMappers.modelsRequests.item collection /// Mapper id - /// A - public ModelsItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ModelsItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models", pathParameters) { + public ModelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models", rawUrl) { + public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/models", rawUrl) + { } /// /// Get mappers /// - /// A List<ProtocolMapperRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a mapper @@ -62,10 +73,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +91,12 @@ public async Task PostAsync(ProtocolMapperRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,10 +111,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -110,10 +127,11 @@ public RequestInformation ToPostRequestInformation(ProtocolMapperRepresentation /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ModelsRequestBuilder WithUrl(string rawUrl) { - return new ModelsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs index b5ff15fe..21d442f2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/Item/WithProtocolItemRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\protocol-mappers\protocol\{protocol} /// - public class WithProtocolItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithProtocolItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithProtocolItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol/{protocol}", pathParameters) { + public WithProtocolItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol/{protocol}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol/{protocol}", rawUrl) { + public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol/{protocol}", rawUrl) + { } /// /// Get mappers by name for a specific protocol /// - /// A List<ProtocolMapperRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get mappers by name for a specific protocol @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithProtocolItemRequestBuilder WithUrl(string rawUrl) { - return new WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs index ab9c3c6b..5b2c06aa 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/Protocol/ProtocolRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\protocol-mappers\protocol /// - public class ProtocolRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProtocolRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.protocolMappers.protocol.item collection /// Unique identifier of the item - /// A - public WithProtocolItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("protocol", position); - return new WithProtocolItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("protocol", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProtocolRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol", pathParameters) { + public ProtocolRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol", rawUrl) { + public ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers/protocol", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs index dd82a339..2e453f54 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ProtocolMappers/ProtocolMappersRequestBuilder.cs @@ -2,42 +2,50 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\protocol-mappers /// - public class ProtocolMappersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProtocolMappersRequestBuilder : BaseRequestBuilder + { /// The addModels property - public AddModelsRequestBuilder AddModels { get => - new AddModelsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder AddModels + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(PathParameters, RequestAdapter); } /// The models property - public ModelsRequestBuilder Models { get => - new ModelsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder Models + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(PathParameters, RequestAdapter); } /// The protocol property - public ProtocolRequestBuilder Protocol { get => - new ProtocolRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder Protocol + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers", pathParameters) { + public ProtocolMappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers", rawUrl) { + public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/protocol-mappers", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/PushRevocation/PushRevocationRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/PushRevocation/PushRevocationRequestBuilder.cs index bf0e80f3..a2093587 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/PushRevocation/PushRevocationRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/PushRevocation/PushRevocationRequestBuilder.cs @@ -1,47 +1,54 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.PushRevocation { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.PushRevocation +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\push-revocation /// - public class PushRevocationRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PushRevocationRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PushRevocationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/push-revocation", pathParameters) { + public PushRevocationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/push-revocation", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PushRevocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/push-revocation", rawUrl) { + public PushRevocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/push-revocation", rawUrl) + { } /// /// Push the client's revocation policy to its admin URL If the client has an admin URL, push revocation policy to it. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GlobalRequestResult.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GlobalRequestResult.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Push the client's revocation policy to its admin URL If the client has an admin URL, push revocation policy to it. @@ -50,10 +57,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PushRevocationRequestBuilder WithUrl(string rawUrl) { - return new PushRevocationRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.PushRevocation.PushRevocationRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.PushRevocation.PushRevocationRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/RegistrationAccessToken/RegistrationAccessTokenRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/RegistrationAccessToken/RegistrationAccessTokenRequestBuilder.cs index a4127a57..206c5615 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/RegistrationAccessToken/RegistrationAccessTokenRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/RegistrationAccessToken/RegistrationAccessTokenRequestBuilder.cs @@ -1,47 +1,54 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\registration-access-token /// - public class RegistrationAccessTokenRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RegistrationAccessTokenRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RegistrationAccessTokenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/registration-access-token", pathParameters) { + public RegistrationAccessTokenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/registration-access-token", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RegistrationAccessTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/registration-access-token", rawUrl) { + public RegistrationAccessTokenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/registration-access-token", rawUrl) + { } /// /// Generate a new registration access token for the client /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ClientRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Generate a new registration access token for the client @@ -50,10 +57,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RegistrationAccessTokenRequestBuilder WithUrl(string rawUrl) { - return new RegistrationAccessTokenRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken.RegistrationAccessTokenRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken.RegistrationAccessTokenRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs index e6a7d7bb..ffbf81fd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\composites\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.roles.item.composites.clients.item collection /// Unique identifier of the item - /// A - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client%2Duuid", position); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client%2Duuid", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs index 9b903256..f2771fcb 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\composites\clients\{client-uuid} /// - public class ClientUuItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientUuItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", pathParameters) { + public ClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", rawUrl) { + public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", rawUrl) + { } /// /// Get client-level roles for the client that are in the role's composite /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get client-level roles for the client that are in the role's composite @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClientUuItemRequestBuilder WithUrl(string rawUrl) { - return new ClientUuItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/CompositesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/CompositesRequestBuilder.cs index 519f5417..caed7a93 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/CompositesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/CompositesRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Realm; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\composites /// - public class CompositesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositesRequestBuilder : BaseRequestBuilder + { /// The clients property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder Clients { get => - new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder Clients + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Realm.RealmRequestBuilder Realm + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites", pathParameters) { + public CompositesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites", rawUrl) { + public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites", rawUrl) + { } /// /// Remove roles from the role's composite @@ -45,10 +52,12 @@ public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -57,19 +66,21 @@ public async Task DeleteAsync(List body, Action /// Get composites of the role /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Add a composite to the role @@ -79,10 +90,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +109,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +129,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +149,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -146,10 +165,11 @@ public RequestInformation ToPostRequestInformation(List body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CompositesRequestBuilder WithUrl(string rawUrl) { - return new CompositesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.CompositesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.CompositesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs index b807c503..56f2cac5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Realm { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Realm +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\composites\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RealmRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/realm", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/composites/realm", rawUrl) + { } /// /// Get realm-level roles of the role's composite /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get realm-level roles of the role's composite @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { - return new RealmRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Realm.RealmRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Groups/GroupsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Groups/GroupsRequestBuilder.cs index fb7984f2..f1a60e43 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Groups/GroupsRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Groups { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Groups +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\groups /// - public class GroupsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GroupsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", pathParameters) { + public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", rawUrl) { + public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", rawUrl) + { } /// /// Returns a stream of groups that have the specified role name /// - /// A List<GroupRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns a stream of groups that have the specified role name @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GroupsRequestBuilder WithUrl(string rawUrl) { - return new GroupsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Groups.GroupsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Groups.GroupsRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a stream of groups that have the specified role name /// - public class GroupsRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GroupsRequestBuilderGetQueryParameters + { /// if false, return a full representation of the {@code GroupRepresentation} objects. [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/ManagementRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/ManagementRequestBuilder.cs index f2c9ad0d..dc016fa2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/ManagementRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/ManagementRequestBuilder.cs @@ -1,33 +1,39 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.Permissions; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\management /// - public class ManagementRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ManagementRequestBuilder : BaseRequestBuilder + { /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder Permissions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management", pathParameters) { + public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management", rawUrl) { + public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs index 7facddee..7713358b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs @@ -1,65 +1,74 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.Permissions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.Permissions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\management\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PermissionsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management/permissions", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management/permissions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management/permissions", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/management/permissions", rawUrl) + { } /// /// Return object stating whether role Authorization permissions have been initialized or not and a reference /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Return object stating whether role Authorization permissions have been initialized or not and a reference /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Return object stating whether role Authorization permissions have been initialized or not and a reference @@ -68,10 +77,12 @@ public async Task PutAsync(ManagementPermissionRe /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -86,10 +97,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -101,10 +114,11 @@ public RequestInformation ToPutRequestInformation(ManagementPermissionReference /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { - return new PermissionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/RoleNameItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/RoleNameItemRequestBuilder.cs index 7b6532a8..2d4d0f72 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/RoleNameItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/RoleNameItemRequestBuilder.cs @@ -4,48 +4,57 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Users; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name} /// - public class RoleNameItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RoleNameItemRequestBuilder : BaseRequestBuilder + { /// The composites property - public CompositesRequestBuilder Composites { get => - new CompositesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.CompositesRequestBuilder Composites + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.CompositesRequestBuilder(PathParameters, RequestAdapter); } /// The groups property - public GroupsRequestBuilder Groups { get => - new GroupsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Groups.GroupsRequestBuilder Groups + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public ManagementRequestBuilder Management { get => - new ManagementRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.ManagementRequestBuilder Management + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The users property - public UsersRequestBuilder Users { get => - new UsersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Users.UsersRequestBuilder Users + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Users.UsersRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RoleNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}", pathParameters) { + public RoleNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RoleNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}", rawUrl) { + public RoleNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}", rawUrl) + { } /// /// Delete a role by name @@ -54,10 +63,12 @@ public RoleNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -65,18 +76,20 @@ public async Task DeleteAsync(Action /// Get a role by name /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update a role by name @@ -87,10 +100,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -103,10 +118,12 @@ public async Task PutAsync(RoleRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -119,10 +136,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -137,10 +156,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -151,10 +172,11 @@ public RequestInformation ToPutRequestInformation(RoleRepresentation body, Actio /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RoleNameItemRequestBuilder WithUrl(string rawUrl) { - return new RoleNameItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.RoleNameItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.RoleNameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Users/UsersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Users/UsersRequestBuilder.cs index f872f9d1..045275c4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Users/UsersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/Item/Users/UsersRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Users { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Users +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles\{role-name}\users /// - public class UsersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UsersRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/users{?first*,max*}", pathParameters) { + public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/users{?first*,max*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/users{?first*,max*}", rawUrl) { + public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles/{role%2Dname}/users{?first*,max*}", rawUrl) + { } /// /// Returns a stream of users that have the specified role name. /// - /// A List<UserRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns a stream of users that have the specified role name. @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsersRequestBuilder WithUrl(string rawUrl) { - return new UsersRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Users.UsersRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Users.UsersRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a stream of users that have the specified role name. /// - public class UsersRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UsersRequestBuilderGetQueryParameters + { /// first result to return. Ignored if negative or {@code null}. [QueryParameter("first")] public int? First { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/RolesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/RolesRequestBuilder.cs index 950b295b..2aadbee1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/RolesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/Roles/RolesRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\roles /// - public class RolesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RolesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.roles.item collection /// role's name (not id!) - /// A - public RoleNameItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("role%2Dname", position); - return new RoleNameItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.RoleNameItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("role%2Dname", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.RoleNameItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles{?briefRepresentation*,first*,max*,search*}", pathParameters) { + public RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles{?briefRepresentation*,first*,max*,search*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles{?briefRepresentation*,first*,max*,search*}", rawUrl) { + public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles{?briefRepresentation*,first*,max*,search*}", rawUrl) + { } /// /// Get all roles for the realm or client /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a new role for the realm or client @@ -62,10 +73,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +91,12 @@ public async Task PostAsync(RoleRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,13 +111,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/roles", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -110,15 +127,18 @@ public RequestInformation ToPostRequestInformation(RoleRepresentation body, Acti /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RolesRequestBuilder WithUrl(string rawUrl) { - return new RolesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.RolesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.RolesRequestBuilder(rawUrl, RequestAdapter); } /// /// Get all roles for the realm or client /// - public class RolesRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RolesRequestBuilderGetQueryParameters + { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } [QueryParameter("first")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs index 1b2d39d1..a2b6d4dd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/ClientsRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clients.item.scopeMappings.clients.item collection /// Unique identifier of the item - /// A - public WithClientItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client", position); - return new WithClientItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs index 44e15774..adaeded3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Available/AvailableRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings\clients\{client}\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AvailableRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/available", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/available", rawUrl) + { } /// /// The available client-level roles Returns the roles for the client that can be associated with the client's scope /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// The available client-level roles Returns the roles for the client that can be associated with the client's scope @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { - return new AvailableRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs index 9b958156..c2e979b0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/Composite/CompositeRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Composite { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Composite +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings\clients\{client}\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) + { } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { - return new CompositeRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. /// - public class CompositeRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs index c455072d..27accfe5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Clients/Item/WithClientItemRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Composite; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings\clients\{client} /// - public class WithClientItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithClientItemRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder Available + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder Composite + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}", pathParameters) { + public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}", rawUrl) { + public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/clients/{client}", rawUrl) + { } /// /// Remove client-level roles from the client's scope. @@ -45,10 +52,12 @@ public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -57,19 +66,21 @@ public async Task DeleteAsync(List body, Action /// Get the roles associated with a client's scope Returns roles for the client. /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Add client-level roles to the client's scope @@ -79,10 +90,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +109,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +129,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +149,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -146,10 +165,11 @@ public RequestInformation ToPostRequestInformation(List body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithClientItemRequestBuilder WithUrl(string rawUrl) { - return new WithClientItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs index 4753f11e..248f4711 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Available/AvailableRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings\realm\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AvailableRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/available", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/available", rawUrl) + { } /// /// Get realm-level roles that are available to attach to this client's scope /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get realm-level roles that are available to attach to this client's scope @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { - return new AvailableRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs index dd7b4fde..e42424e4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/Composite/CompositeRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Composite { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Composite +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings\realm\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/composite{?briefRepresentation*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm/composite{?briefRepresentation*}", rawUrl) + { } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { - return new CompositeRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. /// - public class CompositeRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/RealmRequestBuilder.cs index 80b5ae7c..78ab7c96 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/Realm/RealmRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Composite; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RealmRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder Available + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder Composite + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings/realm", rawUrl) + { } /// /// Remove a set of realm-level roles from the client's scope @@ -45,10 +52,12 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -57,19 +66,21 @@ public async Task DeleteAsync(List body, Action /// Get realm-level roles associated with the client's scope /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Add a set of realm-level roles to the client's scope @@ -79,10 +90,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +109,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +129,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +149,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -146,10 +165,11 @@ public RequestInformation ToPostRequestInformation(List body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { - return new RealmRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs index 633aaa35..545ef144 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ScopeMappings/ScopeMappingsRequestBuilder.cs @@ -2,59 +2,68 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\scope-mappings /// - public class ScopeMappingsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ScopeMappingsRequestBuilder : BaseRequestBuilder + { /// The clients property [Obsolete("")] - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.ClientsRequestBuilder Clients { get => - new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.ClientsRequestBuilder Clients + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property [Obsolete("")] - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.RealmRequestBuilder Realm + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings", pathParameters) { + public ScopeMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings", rawUrl) { + public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/scope-mappings", rawUrl) + { } /// /// Get all scope mappings for the client /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get all scope mappings for the client @@ -64,10 +73,12 @@ public async Task GetAsync(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -77,11 +88,12 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public ScopeMappingsRequestBuilder WithUrl(string rawUrl) { - return new ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.ScopeMappingsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ServiceAccountUser/ServiceAccountUserRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ServiceAccountUser/ServiceAccountUserRequestBuilder.cs index 81a3c00d..c955cbd6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ServiceAccountUser/ServiceAccountUserRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/ServiceAccountUser/ServiceAccountUserRequestBuilder.cs @@ -1,47 +1,54 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ServiceAccountUser { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ServiceAccountUser +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\service-account-user /// - public class ServiceAccountUserRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ServiceAccountUserRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ServiceAccountUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/service-account-user", pathParameters) { + public ServiceAccountUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/service-account-user", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ServiceAccountUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/service-account-user", rawUrl) { + public ServiceAccountUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/service-account-user", rawUrl) + { } /// /// Get a user dedicated to the service account /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get a user dedicated to the service account @@ -50,10 +57,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ServiceAccountUserRequestBuilder WithUrl(string rawUrl) { - return new ServiceAccountUserRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ServiceAccountUser.ServiceAccountUserRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ServiceAccountUser.ServiceAccountUserRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountGetResponse.cs index 9c1bdf88..b12d083f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountGetResponse.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount { - public class SessionCountGetResponse : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SessionCountGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public SessionCountGetResponse() { + public SessionCountGetResponse() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SessionCountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SessionCountGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountGetResponse(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountRequestBuilder.cs index 35be0faa..e3b1f3aa 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/SessionCount/SessionCountRequestBuilder.cs @@ -1,46 +1,53 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\session-count /// - public class SessionCountRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SessionCountRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SessionCountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/session-count", pathParameters) { + public SessionCountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/session-count", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SessionCountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/session-count", rawUrl) { + public SessionCountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/session-count", rawUrl) + { } /// /// Get application session count Returns a number of user sessions associated with this client { "count": number } /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, SessionCountGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get application session count Returns a number of user sessions associated with this client { "count": number } @@ -49,10 +56,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,10 +71,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SessionCountRequestBuilder WithUrl(string rawUrl) { - return new SessionCountRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/TestNodesAvailable/TestNodesAvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/TestNodesAvailable/TestNodesAvailableRequestBuilder.cs index db25a07a..ef22d1ba 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/TestNodesAvailable/TestNodesAvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/TestNodesAvailable/TestNodesAvailableRequestBuilder.cs @@ -1,47 +1,54 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\test-nodes-available /// - public class TestNodesAvailableRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class TestNodesAvailableRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public TestNodesAvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/test-nodes-available", pathParameters) { + public TestNodesAvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/test-nodes-available", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public TestNodesAvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/test-nodes-available", rawUrl) { + public TestNodesAvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/test-nodes-available", rawUrl) + { } /// /// Test if registered cluster nodes are available Tests availability by sending 'ping' request to all cluster nodes. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GlobalRequestResult.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GlobalRequestResult.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Test if registered cluster nodes are available Tests availability by sending 'ping' request to all cluster nodes. @@ -50,10 +57,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public TestNodesAvailableRequestBuilder WithUrl(string rawUrl) { - return new TestNodesAvailableRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable.TestNodesAvailableRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable.TestNodesAvailableRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/UserSessions/UserSessionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/UserSessions/UserSessionsRequestBuilder.cs index 5de95948..94f7ce9a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/UserSessions/UserSessionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Clients/Item/UserSessions/UserSessionsRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.UserSessions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.UserSessions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients\{client-uuid}\user-sessions /// - public class UserSessionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UserSessionsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UserSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/user-sessions{?first*,max*}", pathParameters) { + public UserSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/user-sessions{?first*,max*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public UserSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/user-sessions{?first*,max*}", rawUrl) { + public UserSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients/{client%2Duuid}/user-sessions{?first*,max*}", rawUrl) + { } /// /// Get user sessions for client Returns a list of user sessions associated with this client /// - /// A List<UserSessionRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserSessionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get user sessions for client Returns a list of user sessions associated with this client @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UserSessionsRequestBuilder WithUrl(string rawUrl) { - return new UserSessionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.UserSessions.UserSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.UserSessions.UserSessionsRequestBuilder(rawUrl, RequestAdapter); } /// /// Get user sessions for client Returns a list of user sessions associated with this client /// - public class UserSessionsRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UserSessionsRequestBuilderGetQueryParameters + { /// Paging offset [QueryParameter("first")] public int? First { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/ClientsInitialAccessRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/ClientsInitialAccessRequestBuilder.cs index 032622bb..cd2c5b20 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/ClientsInitialAccessRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/ClientsInitialAccessRequestBuilder.cs @@ -1,81 +1,96 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients-initial-access /// - public class ClientsInitialAccessRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientsInitialAccessRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.clientsInitialAccess.item collection /// Unique identifier of the item - /// A - public ClientsInitialAccessItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ClientsInitialAccessItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.Item.ClientsInitialAccessItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.Item.ClientsInitialAccessItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientsInitialAccessRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access", pathParameters) { + public ClientsInitialAccessRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientsInitialAccessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access", rawUrl) { + public ClientsInitialAccessRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access", rawUrl) + { } - /// A List<ClientInitialAccessPresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessPresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientInitialAccessPresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessPresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a new initial access token. /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ClientInitialAccessCreatePresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessCreatePresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ClientInitialAccessCreatePresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessCreatePresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ClientInitialAccessCreatePresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessCreatePresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -90,10 +105,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ClientInitialAccessCreatePresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessCreatePresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ClientInitialAccessCreatePresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessCreatePresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -105,10 +122,11 @@ public RequestInformation ToPostRequestInformation(ClientInitialAccessCreatePres /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClientsInitialAccessRequestBuilder WithUrl(string rawUrl) { - return new ClientsInitialAccessRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.ClientsInitialAccessRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.ClientsInitialAccessRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/Item/ClientsInitialAccessItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/Item/ClientsInitialAccessItemRequestBuilder.cs index 978f8d1b..84831741 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/Item/ClientsInitialAccessItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientsInitialAccess/Item/ClientsInitialAccessItemRequestBuilder.cs @@ -1,39 +1,46 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients-initial-access\{id} /// - public class ClientsInitialAccessItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientsInitialAccessItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientsInitialAccessItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access/{id}", pathParameters) { + public ClientsInitialAccessItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access/{id}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientsInitialAccessItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access/{id}", rawUrl) { + public ClientsInitialAccessItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/clients-initial-access/{id}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -42,10 +49,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -54,10 +63,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClientsInitialAccessItemRequestBuilder WithUrl(string rawUrl) { - return new ClientsInitialAccessItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.Item.ClientsInitialAccessItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.Item.ClientsInitialAccessItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/ComponentsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/ComponentsRequestBuilder.cs index 051f1c38..98b6fdbc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/ComponentsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/ComponentsRequestBuilder.cs @@ -1,54 +1,65 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\components /// - public class ComponentsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ComponentsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.components.item collection /// Unique identifier of the item - /// A - public ComponentsItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ComponentsItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.ComponentsItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.ComponentsItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ComponentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components{?name*,parent*,type*}", pathParameters) { + public ComponentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components{?name*,parent*,type*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ComponentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components{?name*,parent*,type*}", rawUrl) { + public ComponentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components{?name*,parent*,type*}", rawUrl) + { } - /// A List<ComponentRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ComponentRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// A /// The request body @@ -56,10 +67,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ComponentRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ComponentRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -69,10 +82,12 @@ public async Task PostAsync(ComponentRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -84,13 +99,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ComponentRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ComponentRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/components", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -98,12 +115,17 @@ public RequestInformation ToPostRequestInformation(ComponentRepresentation body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ComponentsRequestBuilder WithUrl(string rawUrl) { - return new ComponentsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.ComponentsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.ComponentsRequestBuilder(rawUrl, RequestAdapter); } - public class ComponentsRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ComponentsRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("name")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/ComponentsItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/ComponentsItemRequestBuilder.cs index c533176c..36b074ec 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/ComponentsItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/ComponentsItemRequestBuilder.cs @@ -1,61 +1,71 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.SubComponentTypes; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\components\{id} /// - public class ComponentsItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ComponentsItemRequestBuilder : BaseRequestBuilder + { /// The subComponentTypes property - public SubComponentTypesRequestBuilder SubComponentTypes { get => - new SubComponentTypesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.SubComponentTypes.SubComponentTypesRequestBuilder SubComponentTypes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.SubComponentTypes.SubComponentTypesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ComponentsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}", pathParameters) { + public ComponentsItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ComponentsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}", rawUrl) { + public ComponentsItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ComponentRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// The request body @@ -63,10 +73,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ComponentRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ComponentRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -76,10 +88,12 @@ public async Task PutAsync(ComponentRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -89,10 +103,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -104,10 +120,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ComponentRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ComponentRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -118,10 +136,11 @@ public RequestInformation ToPutRequestInformation(ComponentRepresentation body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ComponentsItemRequestBuilder WithUrl(string rawUrl) { - return new ComponentsItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.ComponentsItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.ComponentsItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/SubComponentTypes/SubComponentTypesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/SubComponentTypes/SubComponentTypesRequestBuilder.cs index 1d123b0d..12129d63 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/SubComponentTypes/SubComponentTypesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Components/Item/SubComponentTypes/SubComponentTypesRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.SubComponentTypes { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.SubComponentTypes +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\components\{id}\sub-component-types /// - public class SubComponentTypesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SubComponentTypesRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SubComponentTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}/sub-component-types{?type*}", pathParameters) { + public SubComponentTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}/sub-component-types{?type*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SubComponentTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}/sub-component-types{?type*}", rawUrl) { + public SubComponentTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/components/{id}/sub-component-types{?type*}", rawUrl) + { } /// /// List of subcomponent types that are available to configure for a particular parent component. /// - /// A List<ComponentTypeRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ComponentTypeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// List of subcomponent types that are available to configure for a particular parent component. @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SubComponentTypesRequestBuilder WithUrl(string rawUrl) { - return new SubComponentTypesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.SubComponentTypes.SubComponentTypesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.SubComponentTypes.SubComponentTypesRequestBuilder(rawUrl, RequestAdapter); } /// /// List of subcomponent types that are available to configure for a particular parent component. /// - public class SubComponentTypesRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SubComponentTypesRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("type")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/CredentialRegistrators/CredentialRegistratorsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/CredentialRegistrators/CredentialRegistratorsRequestBuilder.cs index 51a8720e..cedce926 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/CredentialRegistrators/CredentialRegistratorsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/CredentialRegistrators/CredentialRegistratorsRequestBuilder.cs @@ -1,53 +1,62 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegistrators { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegistrators +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\credential-registrators /// - public class CredentialRegistratorsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CredentialRegistratorsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CredentialRegistratorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/credential-registrators", pathParameters) { + public CredentialRegistratorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/credential-registrators", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CredentialRegistratorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/credential-registrators", rawUrl) { + public CredentialRegistratorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/credential-registrators", rawUrl) + { } /// A List<string> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendPrimitiveCollectionAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -57,10 +66,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CredentialRegistratorsRequestBuilder WithUrl(string rawUrl) { - return new CredentialRegistratorsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegistrators.CredentialRegistratorsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegistrators.CredentialRegistratorsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/DefaultDefaultClientScopesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/DefaultDefaultClientScopesRequestBuilder.cs index 1989dad9..5af07bcc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/DefaultDefaultClientScopesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/DefaultDefaultClientScopesRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\default-default-client-scopes /// - public class DefaultDefaultClientScopesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class DefaultDefaultClientScopesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.defaultDefaultClientScopes.item collection /// Unique identifier of the item - /// A - public WithClientScopeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("clientScopeId", position); - return new WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.Item.WithClientScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("clientScopeId", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.Item.WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public DefaultDefaultClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes", pathParameters) { + public DefaultDefaultClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public DefaultDefaultClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes", rawUrl) { + public DefaultDefaultClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes", rawUrl) + { } /// /// Get realm default client scopes. Only name and ids are returned. /// - /// A List<ClientScopeRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get realm default client scopes. Only name and ids are returned. @@ -60,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -73,10 +86,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DefaultDefaultClientScopesRequestBuilder WithUrl(string rawUrl) { - return new DefaultDefaultClientScopesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.DefaultDefaultClientScopesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.DefaultDefaultClientScopesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs index 3e25e7bd..1753d2c4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultDefaultClientScopes/Item/WithClientScopeItemRequestBuilder.cs @@ -1,39 +1,46 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\default-default-client-scopes\{clientScopeId} /// - public class WithClientScopeItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithClientScopeItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes/{clientScopeId}", pathParameters) { + public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes/{clientScopeId}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes/{clientScopeId}", rawUrl) { + public WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-default-client-scopes/{clientScopeId}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -42,10 +49,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -54,10 +63,12 @@ public async Task PutAsync(Action> /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -67,10 +78,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -79,10 +92,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithClientScopeItemRequestBuilder WithUrl(string rawUrl) { - return new WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.Item.WithClientScopeItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.Item.WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/DefaultGroupsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/DefaultGroupsRequestBuilder.cs index 42e60cd4..83ce3576 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/DefaultGroupsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/DefaultGroupsRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\default-groups /// - public class DefaultGroupsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class DefaultGroupsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.defaultGroups.item collection /// Unique identifier of the item - /// A - public WithGroupItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("groupId", position); - return new WithGroupItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.Item.WithGroupItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("groupId", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.Item.WithGroupItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public DefaultGroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups", pathParameters) { + public DefaultGroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public DefaultGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups", rawUrl) { + public DefaultGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups", rawUrl) + { } /// /// Get group hierarchy. Only name and ids are returned. /// - /// A List<GroupRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get group hierarchy. Only name and ids are returned. @@ -60,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -73,10 +86,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DefaultGroupsRequestBuilder WithUrl(string rawUrl) { - return new DefaultGroupsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.DefaultGroupsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.DefaultGroupsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/Item/WithGroupItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/Item/WithGroupItemRequestBuilder.cs index da29b729..dd26ced9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/Item/WithGroupItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultGroups/Item/WithGroupItemRequestBuilder.cs @@ -1,39 +1,46 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\default-groups\{groupId} /// - public class WithGroupItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithGroupItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithGroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups/{groupId}", pathParameters) { + public WithGroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups/{groupId}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups/{groupId}", rawUrl) { + public WithGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-groups/{groupId}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -42,10 +49,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -54,10 +63,12 @@ public async Task PutAsync(Action> /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -67,10 +78,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -79,10 +92,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithGroupItemRequestBuilder WithUrl(string rawUrl) { - return new WithGroupItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.Item.WithGroupItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.Item.WithGroupItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/DefaultOptionalClientScopesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/DefaultOptionalClientScopesRequestBuilder.cs index 83950407..8348f938 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/DefaultOptionalClientScopesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/DefaultOptionalClientScopesRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\default-optional-client-scopes /// - public class DefaultOptionalClientScopesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class DefaultOptionalClientScopesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.defaultOptionalClientScopes.item collection /// Unique identifier of the item - /// A - public WithClientScopeItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("clientScopeId", position); - return new WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.Item.WithClientScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("clientScopeId", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.Item.WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public DefaultOptionalClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes", pathParameters) { + public DefaultOptionalClientScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public DefaultOptionalClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes", rawUrl) { + public DefaultOptionalClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes", rawUrl) + { } /// /// Get realm optional client scopes. Only name and ids are returned. /// - /// A List<ClientScopeRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get realm optional client scopes. Only name and ids are returned. @@ -60,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -73,10 +86,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DefaultOptionalClientScopesRequestBuilder WithUrl(string rawUrl) { - return new DefaultOptionalClientScopesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.DefaultOptionalClientScopesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.DefaultOptionalClientScopesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs index 2ad384f8..5e3dfb96 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/DefaultOptionalClientScopes/Item/WithClientScopeItemRequestBuilder.cs @@ -1,39 +1,46 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\default-optional-client-scopes\{clientScopeId} /// - public class WithClientScopeItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithClientScopeItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}", pathParameters) { + public WithClientScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}", rawUrl) { + public WithClientScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/default-optional-client-scopes/{clientScopeId}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -42,10 +49,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -54,10 +63,12 @@ public async Task PutAsync(Action> /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -67,10 +78,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -79,10 +92,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithClientScopeItemRequestBuilder WithUrl(string rawUrl) { - return new WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.Item.WithClientScopeItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.Item.WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/Config/ConfigRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/Config/ConfigRequestBuilder.cs index e2d42ef5..c10e657d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/Config/ConfigRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/Config/ConfigRequestBuilder.cs @@ -1,47 +1,54 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\events\config /// - public class ConfigRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ConfigRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events/config", pathParameters) { + public ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events/config", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events/config", rawUrl) { + public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events/config", rawUrl) + { } /// /// Get the events provider configuration Returns JSON object with events provider configuration /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RealmEventsConfigRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmEventsConfigRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update the events provider Change the events provider and/or its configuration @@ -51,10 +58,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RealmEventsConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmEventsConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(RealmEventsConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmEventsConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -67,10 +76,12 @@ public async Task PutAsync(RealmEventsConfigRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -85,10 +96,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RealmEventsConfigRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmEventsConfigRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(RealmEventsConfigRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmEventsConfigRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -99,10 +112,11 @@ public RequestInformation ToPutRequestInformation(RealmEventsConfigRepresentatio /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ConfigRequestBuilder WithUrl(string rawUrl) { - return new ConfigRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config.ConfigRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/EventsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/EventsRequestBuilder.cs index 837def89..2dc4319c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/EventsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Events/EventsRequestBuilder.cs @@ -1,36 +1,42 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\events /// - public class EventsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class EventsRequestBuilder : BaseRequestBuilder + { /// The config property - public ConfigRequestBuilder Config { get => - new ConfigRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config.ConfigRequestBuilder Config + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config.ConfigRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public EventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events{?client*,dateFrom*,dateTo*,first*,ipAddress*,max*,type*,user*}", pathParameters) { + public EventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events{?client*,dateFrom*,dateTo*,first*,ipAddress*,max*,type*,user*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events{?client*,dateFrom*,dateTo*,first*,ipAddress*,max*,type*,user*}", rawUrl) { + public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/events{?client*,dateFrom*,dateTo*,first*,ipAddress*,max*,type*,user*}", rawUrl) + { } /// /// Delete all events @@ -39,10 +45,12 @@ public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -50,19 +58,21 @@ public async Task DeleteAsync(Action /// Get events Returns all events, or filters them based on URL query parameters listed here /// - /// A List<EventRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, EventRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Delete all events @@ -71,12 +81,14 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/realms/{realm}/events", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); return requestInfo; } @@ -87,10 +99,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -100,15 +114,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public EventsRequestBuilder WithUrl(string rawUrl) { - return new EventsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.EventsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.EventsRequestBuilder(rawUrl, RequestAdapter); } /// /// Get events Returns all events, or filters them based on URL query parameters listed here /// - public class EventsRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class EventsRequestBuilderGetQueryParameters + { /// App or oauth client name #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/GroupByPathRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/GroupByPathRequestBuilder.cs index d58b65a9..8efcd968 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/GroupByPathRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/GroupByPathRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\group-by-path /// - public class GroupByPathRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GroupByPathRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.groupByPath.item collection /// Unique identifier of the item - /// A - public WithPathItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("path", position); - return new WithPathItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.Item.WithPathItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("path", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.Item.WithPathItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GroupByPathRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path", pathParameters) { + public GroupByPathRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GroupByPathRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path", rawUrl) { + public GroupByPathRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/Item/WithPathItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/Item/WithPathItemRequestBuilder.cs index 633b27c0..ad64b1f1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/Item/WithPathItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/GroupByPath/Item/WithPathItemRequestBuilder.cs @@ -1,53 +1,62 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\group-by-path\{path} /// - public class WithPathItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithPathItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithPathItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path/{path}", pathParameters) { + public WithPathItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path/{path}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithPathItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path/{path}", rawUrl) { + public WithPathItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/group-by-path/{path}", rawUrl) + { } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -57,10 +66,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithPathItemRequestBuilder WithUrl(string rawUrl) { - return new WithPathItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.Item.WithPathItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.Item.WithPathItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountGetResponse.cs index b8c045ed..cc4ffdfa 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountGetResponse.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count { - public class CountGetResponse : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class CountGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public CountGetResponse() { + public CountGetResponse() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountGetResponse(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountRequestBuilder.cs index acbc1199..1c266003 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Count/CountRequestBuilder.cs @@ -1,46 +1,53 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\count /// - public class CountRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/count{?search*,top*}", pathParameters) { + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/count{?search*,top*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/count{?search*,top*}", rawUrl) { + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/count{?search*,top*}", rawUrl) + { } /// /// Returns the groups counts. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CountGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Returns the groups counts. @@ -49,10 +56,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,15 +71,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns the groups counts. /// - public class CountRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CountRequestBuilderGetQueryParameters + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("search")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/GroupsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/GroupsRequestBuilder.cs index 633ecf57..2c81e111 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/GroupsRequestBuilder.cs @@ -2,61 +2,73 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups /// - public class GroupsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GroupsRequestBuilder : BaseRequestBuilder + { /// The count property - public CountRequestBuilder Count { get => - new CountRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountRequestBuilder Count + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.groups.item collection /// Unique identifier of the item - /// A - public GroupItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("group%2Did", position); - return new GroupItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.GroupItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("group%2Did", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.GroupItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups{?briefRepresentation*,exact*,first*,max*,populateHierarchy*,q*,search*}", pathParameters) { + public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups{?briefRepresentation*,exact*,first*,max*,populateHierarchy*,q*,search*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups{?briefRepresentation*,exact*,first*,max*,populateHierarchy*,q*,search*}", rawUrl) { + public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups{?briefRepresentation*,exact*,first*,max*,populateHierarchy*,q*,search*}", rawUrl) + { } /// /// Get group hierarchy. Only name and ids are returned. /// - /// A List<GroupRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// This will update the group and set the parent if it exists. Create it and set the parent if the group doesn’t exist. @@ -67,10 +79,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(GroupRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(GroupRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -83,10 +97,12 @@ public async Task PostAsync(GroupRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -101,13 +117,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(GroupRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(GroupRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/groups", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -115,15 +133,18 @@ public RequestInformation ToPostRequestInformation(GroupRepresentation body, Act /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GroupsRequestBuilder WithUrl(string rawUrl) { - return new GroupsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.GroupsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.GroupsRequestBuilder(rawUrl, RequestAdapter); } /// /// Get group hierarchy. Only name and ids are returned. /// - public class GroupsRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GroupsRequestBuilderGetQueryParameters + { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } [QueryParameter("exact")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Children/ChildrenRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Children/ChildrenRequestBuilder.cs index f7725057..f94d2062 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Children/ChildrenRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Children/ChildrenRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\children /// - public class ChildrenRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ChildrenRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ChildrenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/children{?briefRepresentation*,first*,max*}", pathParameters) { + public ChildrenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/children{?briefRepresentation*,exact*,first*,max*,search*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/children{?briefRepresentation*,first*,max*}", rawUrl) { + public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/children{?briefRepresentation*,exact*,first*,max*,search*}", rawUrl) + { } /// /// Return a paginated list of subgroups that have a parent group corresponding to the group on the URL /// - /// A List<GroupRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// This will just set the parent if it exists. Create it and set the parent if the group doesn’t exist. @@ -53,10 +60,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(GroupRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(GroupRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -69,10 +78,12 @@ public async Task PostAsync(GroupRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -87,13 +98,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(GroupRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(GroupRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/children", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -101,21 +114,40 @@ public RequestInformation ToPostRequestInformation(GroupRepresentation body, Act /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ChildrenRequestBuilder WithUrl(string rawUrl) { - return new ChildrenRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children.ChildrenRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children.ChildrenRequestBuilder(rawUrl, RequestAdapter); } /// /// Return a paginated list of subgroups that have a parent group corresponding to the group on the URL /// - public class ChildrenRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ChildrenRequestBuilderGetQueryParameters + { + /// Boolean which defines whether brief groups representations are returned or not (default: false) [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } + /// Boolean which defines whether the params "search" must match exactly or not + [QueryParameter("exact")] + public bool? Exact { get; set; } + /// The position of the first result to be returned (pagination offset). [QueryParameter("first")] public int? First { get; set; } + /// The maximum number of results that are to be returned. Defaults to 10 [QueryParameter("max")] public int? Max { get; set; } + /// A String representing either an exact group name or a partial name +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("search")] + public string Search { get; set; } +#endif } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/GroupItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/GroupItemRequestBuilder.cs index 75b83de8..c11a602c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/GroupItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/GroupItemRequestBuilder.cs @@ -4,73 +4,86 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Members; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id} /// - public class GroupItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GroupItemRequestBuilder : BaseRequestBuilder + { /// The children property - public ChildrenRequestBuilder Children { get => - new ChildrenRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children.ChildrenRequestBuilder Children + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children.ChildrenRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public ManagementRequestBuilder Management { get => - new ManagementRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.ManagementRequestBuilder Management + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The members property - public MembersRequestBuilder Members { get => - new MembersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Members.MembersRequestBuilder Members + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Members.MembersRequestBuilder(PathParameters, RequestAdapter); } /// The roleMappings property - public RoleMappingsRequestBuilder RoleMappings { get => - new RoleMappingsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.RoleMappingsRequestBuilder RoleMappings + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.RoleMappingsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}", pathParameters) { + public GroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}", rawUrl) { + public GroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update group, ignores subgroups. @@ -81,10 +94,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(GroupRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(GroupRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -94,10 +109,12 @@ public async Task PutAsync(GroupRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -107,10 +124,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -125,10 +144,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(GroupRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(GroupRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -139,10 +160,11 @@ public RequestInformation ToPutRequestInformation(GroupRepresentation body, Acti /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GroupItemRequestBuilder WithUrl(string rawUrl) { - return new GroupItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.GroupItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.GroupItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/ManagementRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/ManagementRequestBuilder.cs index d92233fe..a4952ec9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/ManagementRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/ManagementRequestBuilder.cs @@ -1,33 +1,39 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.Permissions; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\management /// - public class ManagementRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ManagementRequestBuilder : BaseRequestBuilder + { /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.Permissions.PermissionsRequestBuilder Permissions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management", pathParameters) { + public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management", rawUrl) { + public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/Permissions/PermissionsRequestBuilder.cs index a2417ca2..96fb8aff 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Management/Permissions/PermissionsRequestBuilder.cs @@ -1,65 +1,74 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.Permissions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.Permissions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\management\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PermissionsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management/permissions", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management/permissions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management/permissions", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/management/permissions", rawUrl) + { } /// /// Return object stating whether client Authorization permissions have been initialized or not and a reference /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Return object stating whether client Authorization permissions have been initialized or not and a reference /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Return object stating whether client Authorization permissions have been initialized or not and a reference @@ -68,10 +77,12 @@ public async Task PutAsync(ManagementPermissionRe /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -86,10 +97,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -101,10 +114,11 @@ public RequestInformation ToPutRequestInformation(ManagementPermissionReference /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { - return new PermissionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Members/MembersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Members/MembersRequestBuilder.cs index 21a3c1e7..7e68dc6c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Members/MembersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/Members/MembersRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Members { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Members +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\members /// - public class MembersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MembersRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MembersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/members{?briefRepresentation*,first*,max*}", pathParameters) { + public MembersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/members{?briefRepresentation*,first*,max*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/members{?briefRepresentation*,first*,max*}", rawUrl) { + public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/members{?briefRepresentation*,first*,max*}", rawUrl) + { } /// /// Get users Returns a stream of users, filtered according to query parameters /// - /// A List<UserRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get users Returns a stream of users, filtered according to query parameters @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MembersRequestBuilder WithUrl(string rawUrl) { - return new MembersRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Members.MembersRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Members.MembersRequestBuilder(rawUrl, RequestAdapter); } /// /// Get users Returns a stream of users, filtered according to query parameters /// - public class MembersRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MembersRequestBuilderGetQueryParameters + { /// 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.) [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/ClientsRequestBuilder.cs index 5ac9acb4..c9ad7fe9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/ClientsRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.groups.item.roleMappings.clients.item collection - /// Unique identifier of the item - /// A - public WithClientItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client", position); - return new WithClientItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// client id (not clientId!) + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client%2Did", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs index d1d1ae5f..d4151869 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs @@ -1,60 +1,69 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available +{ /// - /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\clients\{client}\available + /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\clients\{client-id}\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AvailableRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client%2Did}/available", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client%2Did}/available", rawUrl) + { } /// - /// Get available client-level roles that can be mapped to the user + /// Get available client-level roles that can be mapped to the user or group /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// - /// Get available client-level roles that can be mapped to the user + /// Get available client-level roles that can be mapped to the user or group /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { - return new AvailableRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/ClientItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/ClientItemRequestBuilder.cs new file mode 100644 index 00000000..c1d11f6a --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/ClientItemRequestBuilder.cs @@ -0,0 +1,175 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Composite; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\clients\{client-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientItemRequestBuilder : BaseRequestBuilder + { + /// The available property + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder Available + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); + } + /// The composite property + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder Composite + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client%2Did}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client%2Did}", rawUrl) + { + } + /// + /// Delete client-level roles from user or group role mapping + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Get client-level role mappings for the user or group, and the app + /// + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); + } + /// + /// Add client-level roles to the user or group role mapping + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete client-level roles from user or group role mapping + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Get client-level role mappings for the user or group, and the app + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Add client-level roles to the user or group role mapping + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs index b49a76cd..0de8d559 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Composite { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Composite +{ /// - /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\clients\{client}\composite + /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\clients\{client-id}\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client%2Did}/composite{?briefRepresentation*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/clients/{client%2Did}/composite{?briefRepresentation*}", rawUrl) + { } /// /// Get effective client-level role mappings This recurses any composite roles /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get effective client-level role mappings This recurses any composite roles @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { - return new CompositeRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// Get effective client-level role mappings This recurses any composite roles /// - public class CompositeRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs index ef678567..08abeda2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\realm\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AvailableRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/available", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/available", rawUrl) + { } /// /// Get realm-level roles that can be mapped /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get realm-level roles that can be mapped @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { - return new AvailableRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs index 113e3245..1dadb373 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Composite { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Composite +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\realm\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/composite{?briefRepresentation*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm/composite{?briefRepresentation*}", rawUrl) + { } /// /// Get effective realm-level role mappings This will recurse all composite roles to get the result. /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get effective realm-level role mappings This will recurse all composite roles to get the result. @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { - return new CompositeRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// Get effective realm-level role mappings This will recurse all composite roles to get the result. /// - public class CompositeRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/RealmRequestBuilder.cs index d8e46a13..dac20a07 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/Realm/RealmRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Composite; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RealmRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available.AvailableRequestBuilder Available + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder Composite + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings/realm", rawUrl) + { } /// /// Delete realm-level role mappings @@ -45,10 +52,12 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -57,19 +66,21 @@ public async Task DeleteAsync(List body, Action /// Get realm-level role mappings /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Add realm-level role mappings to the user @@ -79,10 +90,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +109,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +129,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +149,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -146,10 +165,11 @@ public RequestInformation ToPostRequestInformation(List body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { - return new RealmRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/RoleMappingsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/RoleMappingsRequestBuilder.cs index fc966ec4..f3a61290 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/RoleMappingsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Groups/Item/RoleMappings/RoleMappingsRequestBuilder.cs @@ -2,56 +2,65 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings /// - public class RoleMappingsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RoleMappingsRequestBuilder : BaseRequestBuilder + { /// The clients property - public ClientsRequestBuilder Clients { get => - new ClientsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.ClientsRequestBuilder Clients + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.RealmRequestBuilder Realm + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RoleMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings", pathParameters) { + public RoleMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RoleMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings", rawUrl) { + public RoleMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/groups/{group%2Did}/role-mappings", rawUrl) + { } /// /// Get role mappings /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get role mappings @@ -60,10 +69,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -73,10 +84,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RoleMappingsRequestBuilder WithUrl(string rawUrl) { - return new RoleMappingsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.RoleMappingsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.RoleMappingsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/IdentityProviderRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/IdentityProviderRequestBuilder.cs index 61fc1253..2ac61074 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/IdentityProviderRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/IdentityProviderRequestBuilder.cs @@ -2,42 +2,50 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider /// - public class IdentityProviderRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class IdentityProviderRequestBuilder : BaseRequestBuilder + { /// The importConfig property - public ImportConfigRequestBuilder ImportConfig { get => - new ImportConfigRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigRequestBuilder ImportConfig + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigRequestBuilder(PathParameters, RequestAdapter); } /// The instances property - public InstancesRequestBuilder Instances { get => - new InstancesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.InstancesRequestBuilder Instances + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.InstancesRequestBuilder(PathParameters, RequestAdapter); } /// The providers property - public ProvidersRequestBuilder Providers { get => - new ProvidersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.ProvidersRequestBuilder Providers + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.ProvidersRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public IdentityProviderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider", pathParameters) { + public IdentityProviderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public IdentityProviderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider", rawUrl) { + public IdentityProviderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostRequestBody.cs index 67d80cca..6a3cf1ad 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostRequestBody.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig { - public class ImportConfigPostRequestBody : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ImportConfigPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ImportConfigPostRequestBody() { + public ImportConfigPostRequestBody() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ImportConfigPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImportConfigPostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigPostRequestBody(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostResponse.cs index bbd4f3ac..deb54d9e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigPostResponse.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig { - public class ImportConfigPostResponse : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ImportConfigPostResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ImportConfigPostResponse() { + public ImportConfigPostResponse() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ImportConfigPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImportConfigPostResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigPostResponse(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigRequestBuilder.cs index bcfbfddb..2062da28 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/ImportConfig/ImportConfigRequestBuilder.cs @@ -1,48 +1,55 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\import-config /// - public class ImportConfigRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ImportConfigRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ImportConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/import-config", pathParameters) { + public ImportConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/import-config", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ImportConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/import-config", rawUrl) { + public ImportConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/import-config", rawUrl) + { } /// /// Import identity provider from uploaded JSON file /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(ImportConfigPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(ImportConfigPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ImportConfigPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Import identity provider from uploaded JSON file @@ -52,10 +59,12 @@ public async Task PostAsync(ImportConfigPostRequestBod /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(ImportConfigPostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigPostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(ImportConfigPostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigPostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -67,10 +76,11 @@ public RequestInformation ToPostRequestInformation(ImportConfigPostRequestBody b /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ImportConfigRequestBuilder WithUrl(string rawUrl) { - return new ImportConfigRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/InstancesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/InstancesRequestBuilder.cs index 1e1f79d6..262cbd48 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/InstancesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/InstancesRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances /// - public class InstancesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class InstancesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.identityProvider.instances.item collection /// Unique identifier of the item - /// A - public WithAliasItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("alias", position); - return new WithAliasItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.WithAliasItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("alias", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.WithAliasItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public InstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances{?briefRepresentation*,first*,max*,search*}", pathParameters) { + public InstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances{?briefRepresentation*,first*,max*,search*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public InstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances{?briefRepresentation*,first*,max*,search*}", rawUrl) { + public InstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances{?briefRepresentation*,first*,max*,search*}", rawUrl) + { } /// /// List identity providers /// - /// A List<IdentityProviderRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, IdentityProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a new identity provider @@ -62,10 +73,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(IdentityProviderRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(IdentityProviderRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +91,12 @@ public async Task PostAsync(IdentityProviderRepresentation body, Action< /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,13 +111,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(IdentityProviderRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(IdentityProviderRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/identity-provider/instances", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -110,15 +127,18 @@ public RequestInformation ToPostRequestInformation(IdentityProviderRepresentatio /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InstancesRequestBuilder WithUrl(string rawUrl) { - return new InstancesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.InstancesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.InstancesRequestBuilder(rawUrl, RequestAdapter); } /// /// List identity providers /// - public class InstancesRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class InstancesRequestBuilderGetQueryParameters + { /// Boolean which defines whether brief representations are returned (default: false) [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Export/ExportRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Export/ExportRequestBuilder.cs index 4695a1e2..eefcc88a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Export/ExportRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Export/ExportRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Export { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Export +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias}\export /// - public class ExportRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ExportRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ExportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/export{?format*}", pathParameters) { + public ExportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/export{?format*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/export{?format*}", rawUrl) { + public ExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/export{?format*}", rawUrl) + { } /// /// Export public broker configuration for identity provider @@ -34,10 +39,12 @@ public ExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +56,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -61,15 +70,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ExportRequestBuilder WithUrl(string rawUrl) { - return new ExportRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Export.ExportRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Export.ExportRequestBuilder(rawUrl, RequestAdapter); } /// /// Export public broker configuration for identity provider /// - public class ExportRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ExportRequestBuilderGetQueryParameters + { /// Format to use #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/ManagementRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/ManagementRequestBuilder.cs index 1ba67fef..4c99d497 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/ManagementRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/ManagementRequestBuilder.cs @@ -1,33 +1,39 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.Permissions; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias}\management /// - public class ManagementRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ManagementRequestBuilder : BaseRequestBuilder + { /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.Permissions.PermissionsRequestBuilder Permissions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management", pathParameters) { + public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management", rawUrl) { + public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/Permissions/PermissionsRequestBuilder.cs index c75b66f9..d88d06cb 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Management/Permissions/PermissionsRequestBuilder.cs @@ -1,65 +1,74 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.Permissions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.Permissions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias}\management\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PermissionsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/management/permissions", rawUrl) + { } /// /// Return object stating whether client Authorization permissions have been initialized or not and a reference /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Return object stating whether client Authorization permissions have been initialized or not and a reference /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Return object stating whether client Authorization permissions have been initialized or not and a reference @@ -68,10 +77,12 @@ public async Task PutAsync(ManagementPermissionRe /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -86,10 +97,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -101,10 +114,11 @@ public RequestInformation ToPutRequestInformation(ManagementPermissionReference /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { - return new PermissionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/MapperTypes/MapperTypesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/MapperTypes/MapperTypesRequestBuilder.cs index b867f020..eef81af1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/MapperTypes/MapperTypesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/MapperTypes/MapperTypesRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias}\mapper-types /// - public class MapperTypesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MapperTypesRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MapperTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types", pathParameters) { + public MapperTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MapperTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types", rawUrl) { + public MapperTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mapper-types", rawUrl) + { } /// /// Get mapper types for identity provider @@ -34,10 +39,12 @@ public MapperTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +56,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,10 +71,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MapperTypesRequestBuilder WithUrl(string rawUrl) { - return new MapperTypesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes.MapperTypesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes.MapperTypesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/Item/MappersItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/Item/MappersItemRequestBuilder.cs index 2540fb1b..47256f15 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/Item/MappersItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/Item/MappersItemRequestBuilder.cs @@ -1,31 +1,36 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias}\mappers\{id} /// - public class MappersItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MappersItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MappersItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}", pathParameters) { + public MappersItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MappersItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}", rawUrl) { + public MappersItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers/{id}", rawUrl) + { } /// /// Delete a mapper for the identity provider @@ -34,10 +39,12 @@ public MappersItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -45,18 +52,20 @@ public async Task DeleteAsync(Action /// Get mapper by id for the identity provider /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, IdentityProviderMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update a mapper for the identity provider @@ -66,10 +75,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(IdentityProviderMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -82,10 +93,12 @@ public async Task PutAsync(IdentityProviderMapperRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -98,10 +111,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -116,10 +131,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(IdentityProviderMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -130,10 +147,11 @@ public RequestInformation ToPutRequestInformation(IdentityProviderMapperRepresen /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MappersItemRequestBuilder WithUrl(string rawUrl) { - return new MappersItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.Item.MappersItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.Item.MappersItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/MappersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/MappersRequestBuilder.cs index 77bf3561..8c9dcd87 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/MappersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/Mappers/MappersRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias}\mappers /// - public class MappersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MappersRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.identityProvider.instances.item.mappers.item collection /// Unique identifier of the item - /// A - public MappersItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new MappersItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.Item.MappersItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("id", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.Item.MappersItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers", pathParameters) { + public MappersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers", rawUrl) { + public MappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/mappers", rawUrl) + { } /// /// Get mappers for identity provider /// - /// A List<IdentityProviderMapperRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, IdentityProviderMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Add a mapper to identity provider @@ -62,10 +73,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(IdentityProviderMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +91,12 @@ public async Task PostAsync(IdentityProviderMapperRepresentation body, A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,10 +111,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(IdentityProviderMapperRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -110,10 +127,11 @@ public RequestInformation ToPostRequestInformation(IdentityProviderMapperReprese /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MappersRequestBuilder WithUrl(string rawUrl) { - return new MappersRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.MappersRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.MappersRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/ReloadKeys/ReloadKeysRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/ReloadKeys/ReloadKeysRequestBuilder.cs index e010176f..36609d2a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/ReloadKeys/ReloadKeysRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/ReloadKeys/ReloadKeysRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.ReloadKeys { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.ReloadKeys +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias}\reload-keys /// - public class ReloadKeysRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ReloadKeysRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ReloadKeysRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/reload-keys", pathParameters) { + public ReloadKeysRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/reload-keys", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ReloadKeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/reload-keys", rawUrl) { + public ReloadKeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}/reload-keys", rawUrl) + { } /// /// Reaload keys for the identity provider if the provider supports it, "true" is returned if reload was performed, "false" if not. @@ -34,10 +39,12 @@ public ReloadKeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +56,12 @@ public ReloadKeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,10 +71,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ReloadKeysRequestBuilder WithUrl(string rawUrl) { - return new ReloadKeysRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.ReloadKeys.ReloadKeysRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.ReloadKeys.ReloadKeysRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/WithAliasItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/WithAliasItemRequestBuilder.cs index 248b53a5..8e4d29a4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/WithAliasItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Instances/Item/WithAliasItemRequestBuilder.cs @@ -5,52 +5,62 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.ReloadKeys; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances\{alias} /// - public class WithAliasItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithAliasItemRequestBuilder : BaseRequestBuilder + { /// The export property - public ExportRequestBuilder Export { get => - new ExportRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Export.ExportRequestBuilder Export + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Export.ExportRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public ManagementRequestBuilder Management { get => - new ManagementRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.ManagementRequestBuilder Management + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The mappers property - public MappersRequestBuilder Mappers { get => - new MappersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.MappersRequestBuilder Mappers + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.MappersRequestBuilder(PathParameters, RequestAdapter); } /// The mapperTypes property - public MapperTypesRequestBuilder MapperTypes { get => - new MapperTypesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes.MapperTypesRequestBuilder MapperTypes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes.MapperTypesRequestBuilder(PathParameters, RequestAdapter); } /// The reloadKeys property - public ReloadKeysRequestBuilder ReloadKeys { get => - new ReloadKeysRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.ReloadKeys.ReloadKeysRequestBuilder ReloadKeys + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.ReloadKeys.ReloadKeysRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithAliasItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}", pathParameters) { + public WithAliasItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}", rawUrl) { + public WithAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/instances/{alias}", rawUrl) + { } /// /// Delete the identity provider @@ -60,10 +70,12 @@ public WithAliasItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -71,18 +83,20 @@ public async Task DeleteAsync(Action /// Get the identity provider /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, IdentityProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update the identity provider @@ -93,10 +107,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(IdentityProviderRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(IdentityProviderRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -109,10 +125,12 @@ public async Task PutAsync(IdentityProviderRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -125,10 +143,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -143,10 +163,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(IdentityProviderRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(IdentityProviderRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -157,10 +179,11 @@ public RequestInformation ToPutRequestInformation(IdentityProviderRepresentation /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithAliasItemRequestBuilder WithUrl(string rawUrl) { - return new WithAliasItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.WithAliasItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.WithAliasItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_GetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_GetResponse.cs index 79916320..941d810b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_GetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_GetResponse.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item { - public class WithProvider_GetResponse : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class WithProvider_GetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public WithProvider_GetResponse() { + public WithProvider_GetResponse() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithProvider_GetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.WithProvider_GetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithProvider_GetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.WithProvider_GetResponse(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_ItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_ItemRequestBuilder.cs index 9feb1d6a..331ed056 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_ItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/Item/WithProvider_ItemRequestBuilder.cs @@ -1,46 +1,53 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\providers\{provider_id} /// - public class WithProvider_ItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithProvider_ItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithProvider_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers/{provider_id}", pathParameters) { + public WithProvider_ItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers/{provider_id}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithProvider_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers/{provider_id}", rawUrl) { + public WithProvider_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers/{provider_id}", rawUrl) + { } /// /// Get the identity provider factory for that provider id /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WithProvider_GetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.WithProvider_GetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get the identity provider factory for that provider id @@ -49,10 +56,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,10 +71,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithProvider_ItemRequestBuilder WithUrl(string rawUrl) { - return new WithProvider_ItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.WithProvider_ItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.WithProvider_ItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/ProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/ProvidersRequestBuilder.cs index d03b4107..456f5ce3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/ProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/IdentityProvider/Providers/ProvidersRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\providers /// - public class ProvidersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProvidersRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.identityProvider.providers.item collection /// The provider id to get the factory - /// A - public WithProvider_ItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("provider_id", position); - return new WithProvider_ItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.WithProvider_ItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("provider_id", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.WithProvider_ItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers", pathParameters) { + public ProvidersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers", rawUrl) { + public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/identity-provider/providers", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Keys/KeysRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Keys/KeysRequestBuilder.cs index 4925d911..ebe53af1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Keys/KeysRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Keys/KeysRequestBuilder.cs @@ -1,53 +1,62 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\keys /// - public class KeysRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class KeysRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public KeysRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/keys", pathParameters) { + public KeysRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/keys", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public KeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/keys", rawUrl) { + public KeysRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/keys", rawUrl) + { } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, KeysMetadataRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -57,10 +66,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public KeysRequestBuilder WithUrl(string rawUrl) { - return new KeysRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys.KeysRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys.KeysRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/Item/WithKeyItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/Item/WithKeyItemRequestBuilder.cs index 010f272d..c402cee7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/Item/WithKeyItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/Item/WithKeyItemRequestBuilder.cs @@ -1,39 +1,46 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\localization\{locale}\{key} /// - public class WithKeyItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithKeyItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithKeyItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}/{key}", pathParameters) { + public WithKeyItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}/{key}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithKeyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}/{key}", rawUrl) { + public WithKeyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}/{key}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -43,10 +50,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -56,10 +65,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -69,10 +80,12 @@ public async Task PutAsync(string body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -82,10 +95,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -97,10 +112,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(string body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(string body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(string body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(string body, Action> requestConfiguration = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -111,10 +128,11 @@ public RequestInformation ToPutRequestInformation(string body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithKeyItemRequestBuilder WithUrl(string rawUrl) { - return new WithKeyItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.Item.WithKeyItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.Item.WithKeyItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleGetResponse.cs index 37497cfa..6da8deb1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleGetResponse.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item { - public class WithLocaleGetResponse : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class WithLocaleGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public WithLocaleGetResponse() { + public WithLocaleGetResponse() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithLocaleGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithLocaleGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleGetResponse(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleItemRequestBuilder.cs index 782322b1..638e3a7d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocaleItemRequestBuilder.cs @@ -1,64 +1,77 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\localization\{locale} /// - public class WithLocaleItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithLocaleItemRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.localization.item.item collection /// Unique identifier of the item - /// A - public WithKeyItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("key", position); - return new WithKeyItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.Item.WithKeyItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("key", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.Item.WithKeyItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithLocaleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}{?useRealmDefaultLocaleFallback*}", pathParameters) { + public WithLocaleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}{?useRealmDefaultLocaleFallback*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithLocaleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}{?useRealmDefaultLocaleFallback*}", rawUrl) { + public WithLocaleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization/{locale}{?useRealmDefaultLocaleFallback*}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, WithLocaleGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Import localization from uploaded JSON file @@ -68,10 +81,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(WithLocalePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocalePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(WithLocalePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocalePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -81,12 +96,14 @@ public async Task PostAsync(WithLocalePostRequestBody body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/realms/{realm}/localization/{locale}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); return requestInfo; } @@ -94,10 +111,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -112,13 +131,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(WithLocalePostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocalePostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(WithLocalePostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocalePostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/localization/{locale}", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -126,12 +147,17 @@ public RequestInformation ToPostRequestInformation(WithLocalePostRequestBody bod /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithLocaleItemRequestBuilder WithUrl(string rawUrl) { - return new WithLocaleItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleItemRequestBuilder(rawUrl, RequestAdapter); } - public class WithLocaleItemRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class WithLocaleItemRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [Obsolete("")] [QueryParameter("useRealmDefaultLocaleFallback")] public bool? UseRealmDefaultLocaleFallback { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocalePostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocalePostRequestBody.cs index 6768ad1d..c275a803 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocalePostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/Item/WithLocalePostRequestBody.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item { - public class WithLocalePostRequestBody : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class WithLocalePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public WithLocalePostRequestBody() { + public WithLocalePostRequestBody() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static WithLocalePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocalePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WithLocalePostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocalePostRequestBody(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/LocalizationRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/LocalizationRequestBuilder.cs index 5d6b617a..a08bea02 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/LocalizationRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Localization/LocalizationRequestBuilder.cs @@ -1,62 +1,75 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\localization /// - public class LocalizationRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class LocalizationRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.localization.item collection /// Unique identifier of the item - /// A - public WithLocaleItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("locale", position); - return new WithLocaleItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("locale", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public LocalizationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization", pathParameters) { + public LocalizationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public LocalizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization", rawUrl) { + public LocalizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/localization", rawUrl) + { } /// A List<string> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendPrimitiveCollectionAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -66,10 +79,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LocalizationRequestBuilder WithUrl(string rawUrl) { - return new LocalizationRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.LocalizationRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.LocalizationRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/LogoutAll/LogoutAllRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/LogoutAll/LogoutAllRequestBuilder.cs index 9f3314a8..61e26e55 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/LogoutAll/LogoutAllRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/LogoutAll/LogoutAllRequestBuilder.cs @@ -1,47 +1,54 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\logout-all /// - public class LogoutAllRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class LogoutAllRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public LogoutAllRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/logout-all", pathParameters) { + public LogoutAllRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/logout-all", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public LogoutAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/logout-all", rawUrl) { + public LogoutAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/logout-all", rawUrl) + { } /// /// Any client that has an admin url will also be told to invalidate any sessions they have. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GlobalRequestResult.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GlobalRequestResult.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Any client that has an admin url will also be told to invalidate any sessions they have. @@ -50,10 +57,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LogoutAllRequestBuilder WithUrl(string rawUrl) { - return new LogoutAllRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll.LogoutAllRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll.LogoutAllRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialExport/PartialExportRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialExport/PartialExportRequestBuilder.cs index f9f7a398..5f6991f2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialExport/PartialExportRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialExport/PartialExportRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\partial-export /// - public class PartialExportRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PartialExportRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PartialExportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partial-export{?exportClients*,exportGroupsAndRoles*}", pathParameters) { + public PartialExportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partial-export{?exportClients*,exportGroupsAndRoles*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PartialExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partial-export{?exportClients*,exportGroupsAndRoles*}", rawUrl) { + public PartialExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partial-export{?exportClients*,exportGroupsAndRoles*}", rawUrl) + { } /// /// Partial export of existing realm into a JSON file. @@ -34,10 +39,12 @@ public PartialExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +56,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -61,15 +70,18 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PartialExportRequestBuilder WithUrl(string rawUrl) { - return new PartialExportRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport.PartialExportRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport.PartialExportRequestBuilder(rawUrl, RequestAdapter); } /// /// Partial export of existing realm into a JSON file. /// - public class PartialExportRequestBuilderPostQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PartialExportRequestBuilderPostQueryParameters + { [QueryParameter("exportClients")] public bool? ExportClients { get; set; } [QueryParameter("exportGroupsAndRoles")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialImport/PartialImportRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialImport/PartialImportRequestBuilder.cs index 7e4354fb..03731f80 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialImport/PartialImportRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PartialImport/PartialImportRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\partialImport /// - public class PartialImportRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PartialImportRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PartialImportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partialImport", pathParameters) { + public PartialImportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partialImport", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PartialImportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partialImport", rawUrl) { + public PartialImportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/partialImport", rawUrl) + { } /// /// Partial import from a JSON file to an existing realm. @@ -35,10 +40,12 @@ public PartialImportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -52,10 +59,12 @@ public async Task PostAsync(string body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -66,10 +75,11 @@ public RequestInformation ToPostRequestInformation(string body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PartialImportRequestBuilder WithUrl(string rawUrl) { - return new PartialImportRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport.PartialImportRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport.PartialImportRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PushRevocation/PushRevocationRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PushRevocation/PushRevocationRequestBuilder.cs index 5c8163b3..67be3d4e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PushRevocation/PushRevocationRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/PushRevocation/PushRevocationRequestBuilder.cs @@ -1,47 +1,54 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\push-revocation /// - public class PushRevocationRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PushRevocationRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PushRevocationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/push-revocation", pathParameters) { + public PushRevocationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/push-revocation", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PushRevocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/push-revocation", rawUrl) { + public PushRevocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/push-revocation", rawUrl) + { } /// /// Push the realm's revocation policy to any client that has an admin url associated with it. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, GlobalRequestResult.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GlobalRequestResult.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Push the realm's revocation policy to any client that has an admin url associated with it. @@ -50,10 +57,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PushRevocationRequestBuilder WithUrl(string rawUrl) { - return new PushRevocationRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation.PushRevocationRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation.PushRevocationRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs index 54ab4285..c620d842 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/ClientsRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\composites\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.roles.item.composites.clients.item collection /// Unique identifier of the item - /// A - public ClientUuItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client%2Duuid", position); - return new ClientUuItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client%2Duuid", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs index e4725cfc..9d716158 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Clients/Item/ClientUuItemRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\composites\clients\{client-uuid} /// - public class ClientUuItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientUuItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", pathParameters) { + public ClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", rawUrl) { + public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/clients/{client%2Duuid}", rawUrl) + { } /// /// Get client-level roles for the client that are in the role's composite /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get client-level roles for the client that are in the role's composite @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ClientUuItemRequestBuilder WithUrl(string rawUrl) { - return new ClientUuItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/CompositesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/CompositesRequestBuilder.cs index d3879fbe..13adf7a8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/CompositesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/CompositesRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Realm; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\composites /// - public class CompositesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositesRequestBuilder : BaseRequestBuilder + { /// The clients property - public ClientsRequestBuilder Clients { get => - new ClientsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder Clients + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Realm.RealmRequestBuilder Realm + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites", pathParameters) { + public CompositesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites", rawUrl) { + public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites", rawUrl) + { } /// /// Remove roles from the role's composite @@ -45,10 +52,12 @@ public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -57,19 +66,21 @@ public async Task DeleteAsync(List body, Action /// Get composites of the role /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Add a composite to the role @@ -79,10 +90,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +109,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +129,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +149,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -146,10 +165,11 @@ public RequestInformation ToPostRequestInformation(List body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CompositesRequestBuilder WithUrl(string rawUrl) { - return new CompositesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.CompositesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.CompositesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs index adf9c322..895e017c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Composites/Realm/RealmRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Realm { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Realm +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\composites\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RealmRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/realm", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/composites/realm", rawUrl) + { } /// /// Get realm-level roles of the role's composite /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get realm-level roles of the role's composite @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { - return new RealmRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Realm.RealmRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Groups/GroupsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Groups/GroupsRequestBuilder.cs index ca048a5a..3bbfcb45 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Groups/GroupsRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Groups { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Groups +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\groups /// - public class GroupsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GroupsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", pathParameters) { + public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", rawUrl) { + public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/groups{?briefRepresentation*,first*,max*}", rawUrl) + { } /// /// Returns a stream of groups that have the specified role name /// - /// A List<GroupRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns a stream of groups that have the specified role name @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GroupsRequestBuilder WithUrl(string rawUrl) { - return new GroupsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Groups.GroupsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Groups.GroupsRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a stream of groups that have the specified role name /// - public class GroupsRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GroupsRequestBuilderGetQueryParameters + { /// if false, return a full representation of the {@code GroupRepresentation} objects. [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/ManagementRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/ManagementRequestBuilder.cs index 4c01a8f5..870016ba 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/ManagementRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/ManagementRequestBuilder.cs @@ -1,33 +1,39 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.Permissions; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\management /// - public class ManagementRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ManagementRequestBuilder : BaseRequestBuilder + { /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder Permissions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management", pathParameters) { + public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management", rawUrl) { + public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs index 7e401aab..5e53d99a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Management/Permissions/PermissionsRequestBuilder.cs @@ -1,65 +1,74 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.Permissions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.Permissions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\management\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PermissionsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management/permissions", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management/permissions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management/permissions", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/management/permissions", rawUrl) + { } /// /// Return object stating whether role Authorization permissions have been initialized or not and a reference /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Return object stating whether role Authorization permissions have been initialized or not and a reference /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Return object stating whether role Authorization permissions have been initialized or not and a reference @@ -68,10 +77,12 @@ public async Task PutAsync(ManagementPermissionRe /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -86,10 +97,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -101,10 +114,11 @@ public RequestInformation ToPutRequestInformation(ManagementPermissionReference /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { - return new PermissionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/RoleNameItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/RoleNameItemRequestBuilder.cs index f3838846..7341a466 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/RoleNameItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/RoleNameItemRequestBuilder.cs @@ -4,48 +4,57 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Users; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name} /// - public class RoleNameItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RoleNameItemRequestBuilder : BaseRequestBuilder + { /// The composites property - public CompositesRequestBuilder Composites { get => - new CompositesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.CompositesRequestBuilder Composites + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.CompositesRequestBuilder(PathParameters, RequestAdapter); } /// The groups property - public GroupsRequestBuilder Groups { get => - new GroupsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Groups.GroupsRequestBuilder Groups + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public ManagementRequestBuilder Management { get => - new ManagementRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.ManagementRequestBuilder Management + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The users property - public UsersRequestBuilder Users { get => - new UsersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Users.UsersRequestBuilder Users + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Users.UsersRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RoleNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}", pathParameters) { + public RoleNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RoleNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}", rawUrl) { + public RoleNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}", rawUrl) + { } /// /// Delete a role by name @@ -54,10 +63,12 @@ public RoleNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -65,18 +76,20 @@ public async Task DeleteAsync(Action /// Get a role by name /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update a role by name @@ -87,10 +100,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -103,10 +118,12 @@ public async Task PutAsync(RoleRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -119,10 +136,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -137,10 +156,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -151,10 +172,11 @@ public RequestInformation ToPutRequestInformation(RoleRepresentation body, Actio /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RoleNameItemRequestBuilder WithUrl(string rawUrl) { - return new RoleNameItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.RoleNameItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.RoleNameItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Users/UsersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Users/UsersRequestBuilder.cs index c64e4e1b..076504a3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Users/UsersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/Item/Users/UsersRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Users { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Users +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles\{role-name}\users /// - public class UsersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UsersRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/users{?first*,max*}", pathParameters) { + public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/users{?first*,max*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/users{?first*,max*}", rawUrl) { + public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles/{role%2Dname}/users{?first*,max*}", rawUrl) + { } /// /// Returns a stream of users that have the specified role name. /// - /// A List<UserRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns a stream of users that have the specified role name. @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsersRequestBuilder WithUrl(string rawUrl) { - return new UsersRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Users.UsersRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Users.UsersRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a stream of users that have the specified role name. /// - public class UsersRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UsersRequestBuilderGetQueryParameters + { /// first result to return. Ignored if negative or {@code null}. [QueryParameter("first")] public int? First { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/RolesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/RolesRequestBuilder.cs index a98cbd94..e344336e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/RolesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Roles/RolesRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles /// - public class RolesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RolesRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.roles.item collection /// role's name (not id!) - /// A - public RoleNameItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("role%2Dname", position); - return new RoleNameItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.RoleNameItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("role%2Dname", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.RoleNameItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles{?briefRepresentation*,first*,max*,search*}", pathParameters) { + public RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles{?briefRepresentation*,first*,max*,search*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles{?briefRepresentation*,first*,max*,search*}", rawUrl) { + public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles{?briefRepresentation*,first*,max*,search*}", rawUrl) + { } /// /// Get all roles for the realm or client /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a new role for the realm or client @@ -62,10 +73,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -78,10 +91,12 @@ public async Task PostAsync(RoleRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -96,13 +111,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/roles", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -110,15 +127,18 @@ public RequestInformation ToPostRequestInformation(RoleRepresentation body, Acti /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RolesRequestBuilder WithUrl(string rawUrl) { - return new RolesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.RolesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.RolesRequestBuilder(rawUrl, RequestAdapter); } /// /// Get all roles for the realm or client /// - public class RolesRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RolesRequestBuilderGetQueryParameters + { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } [QueryParameter("first")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/ClientsRequestBuilder.cs index f68e6c2b..fcd6410e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/ClientsRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id\{role-id}\composites\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.rolesById.item.composites.clients.item collection /// Unique identifier of the item - /// A - public WithClientUuItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("clientUuid", position); - return new WithClientUuItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.Item.WithClientUuItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("clientUuid", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.Item.WithClientUuItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/Item/WithClientUuItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/Item/WithClientUuItemRequestBuilder.cs index fa95d1c3..5d28397e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/Item/WithClientUuItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Clients/Item/WithClientUuItemRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id\{role-id}\composites\clients\{clientUuid} /// - public class WithClientUuItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithClientUuItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients/{clientUuid}", pathParameters) { + public WithClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients/{clientUuid}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients/{clientUuid}", rawUrl) { + public WithClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/clients/{clientUuid}", rawUrl) + { } /// /// Get client-level roles for the client that are in the role's composite /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get client-level roles for the client that are in the role's composite @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithClientUuItemRequestBuilder WithUrl(string rawUrl) { - return new WithClientUuItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.Item.WithClientUuItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.Item.WithClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/CompositesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/CompositesRequestBuilder.cs index 0cef59af..bb026cfd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/CompositesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/CompositesRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Realm; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id\{role-id}\composites /// - public class CompositesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositesRequestBuilder : BaseRequestBuilder + { /// The clients property - public ClientsRequestBuilder Clients { get => - new ClientsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.ClientsRequestBuilder Clients + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Realm.RealmRequestBuilder Realm + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites{?first*,max*,search*}", pathParameters) { + public CompositesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites{?first*,max*,search*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites{?first*,max*,search*}", rawUrl) { + public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites{?first*,max*,search*}", rawUrl) + { } /// /// Remove a set of roles from the role's composite @@ -45,10 +52,12 @@ public CompositesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -57,19 +66,21 @@ public async Task DeleteAsync(List body, Action /// Get role's children Returns a set of role's children provided the role is a composite. /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Make the role a composite role by associating some child roles @@ -79,10 +90,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,13 +109,15 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -114,10 +129,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,13 +149,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -146,15 +165,18 @@ public RequestInformation ToPostRequestInformation(List body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CompositesRequestBuilder WithUrl(string rawUrl) { - return new CompositesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.CompositesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.CompositesRequestBuilder(rawUrl, RequestAdapter); } /// /// Get role's children Returns a set of role's children provided the role is a composite. /// - public class CompositesRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositesRequestBuilderGetQueryParameters + { [QueryParameter("first")] public int? First { get; set; } [QueryParameter("max")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Realm/RealmRequestBuilder.cs index 6cf5013b..42292424 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Composites/Realm/RealmRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Realm { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Realm +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id\{role-id}\composites\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RealmRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/realm", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/composites/realm", rawUrl) + { } /// /// Get realm-level roles that are in the role's composite /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get realm-level roles that are in the role's composite @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { - return new RealmRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Realm.RealmRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/ManagementRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/ManagementRequestBuilder.cs index 61b53e3c..6662c5cf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/ManagementRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/ManagementRequestBuilder.cs @@ -1,33 +1,39 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.Permissions; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id\{role-id}\management /// - public class ManagementRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ManagementRequestBuilder : BaseRequestBuilder + { /// The permissions property - public PermissionsRequestBuilder Permissions { get => - new PermissionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.Permissions.PermissionsRequestBuilder Permissions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management", pathParameters) { + public ManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management", rawUrl) { + public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/Permissions/PermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/Permissions/PermissionsRequestBuilder.cs index beef1556..0168ba9b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/Permissions/PermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/Management/Permissions/PermissionsRequestBuilder.cs @@ -1,65 +1,74 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.Permissions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.Permissions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id\{role-id}\management\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class PermissionsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management/permissions", pathParameters) { + public PermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management/permissions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management/permissions", rawUrl) { + public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}/management/permissions", rawUrl) + { } /// /// Return object stating whether role Authorization permissions have been initialized or not and a reference /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Return object stating whether role Authorization permissions have been initialized or not and a reference /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Return object stating whether role Authorization permissions have been initialized or not and a reference @@ -68,10 +77,12 @@ public async Task PutAsync(ManagementPermissionRe /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -86,10 +97,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -101,10 +114,11 @@ public RequestInformation ToPutRequestInformation(ManagementPermissionReference /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public PermissionsRequestBuilder WithUrl(string rawUrl) { - return new PermissionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/RoleItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/RoleItemRequestBuilder.cs index 1c6eb0bf..0027de32 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/RoleItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/Item/RoleItemRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id\{role-id} /// - public class RoleItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RoleItemRequestBuilder : BaseRequestBuilder + { /// The composites property - public CompositesRequestBuilder Composites { get => - new CompositesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.CompositesRequestBuilder Composites + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.CompositesRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public ManagementRequestBuilder Management { get => - new ManagementRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.ManagementRequestBuilder Management + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}", pathParameters) { + public RoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}", rawUrl) { + public RoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id/{role%2Did}", rawUrl) + { } /// /// Delete the role @@ -44,10 +51,12 @@ public RoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -55,18 +64,20 @@ public async Task DeleteAsync(Action /// Get a specific role's representation /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update the role @@ -76,10 +87,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -92,10 +105,12 @@ public async Task PutAsync(RoleRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -108,10 +123,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -126,10 +143,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(RoleRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -140,10 +159,11 @@ public RequestInformation ToPutRequestInformation(RoleRepresentation body, Actio /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RoleItemRequestBuilder WithUrl(string rawUrl) { - return new RoleItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.RoleItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.RoleItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/RolesByIdRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/RolesByIdRequestBuilder.cs index 3c08ae33..45b72b4e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/RolesByIdRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/RolesById/RolesByIdRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\roles-by-id /// - public class RolesByIdRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RolesByIdRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.rolesById.item collection /// id of role - /// A - public RoleItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("role%2Did", position); - return new RoleItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.RoleItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("role%2Did", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.RoleItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RolesByIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id", pathParameters) { + public RolesByIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RolesByIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id", rawUrl) { + public RolesByIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/roles-by-id", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/Item/WithSessionItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/Item/WithSessionItemRequestBuilder.cs index 7e5d9705..0dedd1f6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/Item/WithSessionItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/Item/WithSessionItemRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\sessions\{session} /// - public class WithSessionItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithSessionItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions/{session}", pathParameters) { + public WithSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions/{session}{?isOffline*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions/{session}", rawUrl) { + public WithSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions/{session}{?isOffline*}", rawUrl) + { } /// /// Any client that has an admin url will also be told to invalidate this particular session. @@ -33,10 +38,12 @@ public WithSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +55,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,10 +69,20 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithSessionItemRequestBuilder WithUrl(string rawUrl) { - return new WithSessionItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.Item.WithSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.Item.WithSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Any client that has an admin url will also be told to invalidate this particular session. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithSessionItemRequestBuilderDeleteQueryParameters + { + [QueryParameter("isOffline")] + public bool? IsOffline { get; set; } } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/SessionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/SessionsRequestBuilder.cs index 3c98ff6e..237dabc3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/SessionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Sessions/SessionsRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\sessions /// - public class SessionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SessionsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.sessions.item collection /// Unique identifier of the item - /// A - public WithSessionItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("session", position); - return new WithSessionItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.Item.WithSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("session", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.Item.WithSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions", pathParameters) { + public SessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions", rawUrl) { + public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/sessions", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionPostRequestBody.cs index 2606ada9..2ef2ad3f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionPostRequestBody.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection { - public class TestSMTPConnectionPostRequestBody : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class TestSMTPConnectionPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public TestSMTPConnectionPostRequestBody() { + public TestSMTPConnectionPostRequestBody() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static TestSMTPConnectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TestSMTPConnectionPostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionPostRequestBody(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionRequestBuilder.cs index d56829d2..da4e13f6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/TestSMTPConnection/TestSMTPConnectionRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\testSMTPConnection /// - public class TestSMTPConnectionRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class TestSMTPConnectionRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public TestSMTPConnectionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/testSMTPConnection", pathParameters) { + public TestSMTPConnectionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/testSMTPConnection", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public TestSMTPConnectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/testSMTPConnection", rawUrl) { + public TestSMTPConnectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/testSMTPConnection", rawUrl) + { } /// /// Test SMTP connection with current logged in user @@ -36,10 +41,12 @@ public TestSMTPConnectionRequestBuilder(string rawUrl, IRequestAdapter requestAd [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(TestSMTPConnectionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(TestSMTPConnectionPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -54,10 +61,12 @@ public async Task PostAsync(TestSMTPConnectionPostRequestBody body, Acti [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(TestSMTPConnectionPostRequestBody body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionPostRequestBody body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(TestSMTPConnectionPostRequestBody body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionPostRequestBody body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -68,11 +77,12 @@ public RequestInformation ToPostRequestInformation(TestSMTPConnectionPostRequest /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public TestSMTPConnectionRequestBuilder WithUrl(string rawUrl) { - return new TestSMTPConnectionRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Count/CountRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Count/CountRequestBuilder.cs index dfbf777e..ccf44958 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Count/CountRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Count/CountRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\count /// - public class CountRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/count{?email*,emailVerified*,enabled*,firstName*,lastName*,q*,search*,username*}", pathParameters) { + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/count{?email*,emailVerified*,enabled*,firstName*,lastName*,q*,search*,username*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/count{?email*,emailVerified*,enabled*,firstName*,lastName*,q*,search*,username*}", rawUrl) { + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/count{?email*,emailVerified*,enabled*,firstName*,lastName*,q*,search*,username*}", rawUrl) + { } /// /// 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. <p> 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. <p> 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. @@ -34,10 +39,12 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +56,12 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,15 +71,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// 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. <p> 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. <p> 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. /// - public class CountRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CountRequestBuilderGetQueryParameters + { /// email filter #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ConfiguredUserStorageCredentialTypes/ConfiguredUserStorageCredentialTypesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ConfiguredUserStorageCredentialTypes/ConfiguredUserStorageCredentialTypesRequestBuilder.cs index 2566efef..3b4beee6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ConfiguredUserStorageCredentialTypes/ConfiguredUserStorageCredentialTypesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ConfiguredUserStorageCredentialTypes/ConfiguredUserStorageCredentialTypesRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\configured-user-storage-credential-types /// - public class ConfiguredUserStorageCredentialTypesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ConfiguredUserStorageCredentialTypesRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ConfiguredUserStorageCredentialTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/configured-user-storage-credential-types", pathParameters) { + public ConfiguredUserStorageCredentialTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/configured-user-storage-credential-types", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ConfiguredUserStorageCredentialTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/configured-user-storage-credential-types", rawUrl) { + public ConfiguredUserStorageCredentialTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/configured-user-storage-credential-types", rawUrl) + { } /// /// 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 @@ -34,14 +39,16 @@ public ConfiguredUserStorageCredentialTypesRequestBuilder(string rawUrl, IReques /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var collectionResult = await RequestAdapter.SendPrimitiveCollectionAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + return collectionResult?.AsList(); } /// /// 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 @@ -50,10 +57,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ConfiguredUserStorageCredentialTypesRequestBuilder WithUrl(string rawUrl) { - return new ConfiguredUserStorageCredentialTypesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes.ConfiguredUserStorageCredentialTypesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes.ConfiguredUserStorageCredentialTypesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Consents.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Consents.cs index f26ecc1d..640a2c1f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Consents.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Consents.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents { - public class Consents : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Consents : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public Consents() { + public Consents() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Consents CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Consents CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Consents(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Consents(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/ConsentsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/ConsentsRequestBuilder.cs index e53c6122..23a446ed 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/ConsentsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/ConsentsRequestBuilder.cs @@ -1,56 +1,67 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\consents /// - public class ConsentsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ConsentsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item.consents.item collection /// Client id - /// A - public WithClientItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client", position); - return new WithClientItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Item.WithClientItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Item.WithClientItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ConsentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents", pathParameters) { + public ConsentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ConsentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents", rawUrl) { + public ConsentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents", rawUrl) + { } /// /// Get consents granted by the user /// - /// A List<Consents> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Consents> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Consents.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Consents.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get consents granted by the user @@ -59,10 +70,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -72,10 +85,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ConsentsRequestBuilder WithUrl(string rawUrl) { - return new ConsentsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.ConsentsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.ConsentsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Item/WithClientItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Item/WithClientItemRequestBuilder.cs index ee479a52..adc43b87 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Item/WithClientItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Consents/Item/WithClientItemRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\consents\{client} /// - public class WithClientItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithClientItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents/{client}", pathParameters) { + public WithClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents/{client}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents/{client}", rawUrl) { + public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/consents/{client}", rawUrl) + { } /// /// Revoke consent and offline tokens for particular client from user @@ -33,10 +38,12 @@ public WithClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +55,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,10 +69,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithClientItemRequestBuilder WithUrl(string rawUrl) { - return new WithClientItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Item.WithClientItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Item.WithClientItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/CredentialsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/CredentialsRequestBuilder.cs index 777f526d..fd4ba8f9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/CredentialsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/CredentialsRequestBuilder.cs @@ -1,63 +1,76 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\credentials /// - public class CredentialsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CredentialsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item.credentials.item collection /// Unique identifier of the item - /// A - public WithCredentialItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("credentialId", position); - return new WithCredentialItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.WithCredentialItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("credentialId", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.WithCredentialItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CredentialsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials", pathParameters) { + public CredentialsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CredentialsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials", rawUrl) { + public CredentialsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials", rawUrl) + { } - /// A List<CredentialRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, CredentialRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -67,10 +80,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CredentialsRequestBuilder WithUrl(string rawUrl) { - return new CredentialsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.CredentialsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.CredentialsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/Item/WithNewPreviousCredentialItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/Item/WithNewPreviousCredentialItemRequestBuilder.cs index 3d10049b..561e796c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/Item/WithNewPreviousCredentialItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/Item/WithNewPreviousCredentialItemRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\credentials\{credentialId}\moveAfter\{newPreviousCredentialId} /// - public class WithNewPreviousCredentialItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithNewPreviousCredentialItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithNewPreviousCredentialItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}", pathParameters) { + public WithNewPreviousCredentialItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithNewPreviousCredentialItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}", rawUrl) { + public WithNewPreviousCredentialItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter/{newPreviousCredentialId}", rawUrl) + { } /// /// Move a credential to a position behind another credential @@ -33,10 +38,12 @@ public WithNewPreviousCredentialItemRequestBuilder(string rawUrl, IRequestAdapte /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +55,12 @@ public async Task PostAsync(Action> /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,10 +69,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithNewPreviousCredentialItemRequestBuilder WithUrl(string rawUrl) { - return new WithNewPreviousCredentialItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.Item.WithNewPreviousCredentialItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.Item.WithNewPreviousCredentialItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/MoveAfterRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/MoveAfterRequestBuilder.cs index fea65ad2..fcd55270 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/MoveAfterRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveAfter/MoveAfterRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\credentials\{credentialId}\moveAfter /// - public class MoveAfterRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MoveAfterRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item.credentials.item.moveAfter.item collection /// 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. - /// A - public WithNewPreviousCredentialItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("newPreviousCredentialId", position); - return new WithNewPreviousCredentialItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.Item.WithNewPreviousCredentialItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("newPreviousCredentialId", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.Item.WithNewPreviousCredentialItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MoveAfterRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter", pathParameters) { + public MoveAfterRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MoveAfterRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter", rawUrl) { + public MoveAfterRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveAfter", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveToFirst/MoveToFirstRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveToFirst/MoveToFirstRequestBuilder.cs index adb3eeac..97776225 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveToFirst/MoveToFirstRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/MoveToFirst/MoveToFirstRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\credentials\{credentialId}\moveToFirst /// - public class MoveToFirstRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MoveToFirstRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MoveToFirstRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveToFirst", pathParameters) { + public MoveToFirstRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveToFirst", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MoveToFirstRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveToFirst", rawUrl) { + public MoveToFirstRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/moveToFirst", rawUrl) + { } /// /// Move a credential to a first position in the credentials list of the user @@ -33,10 +38,12 @@ public MoveToFirstRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +55,12 @@ public async Task PostAsync(Action> /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,10 +69,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MoveToFirstRequestBuilder WithUrl(string rawUrl) { - return new MoveToFirstRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst.MoveToFirstRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst.MoveToFirstRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/UserLabel/UserLabelRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/UserLabel/UserLabelRequestBuilder.cs index 5e136a14..1a137952 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/UserLabel/UserLabelRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/UserLabel/UserLabelRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.UserLabel { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.UserLabel +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\credentials\{credentialId}\userLabel /// - public class UserLabelRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UserLabelRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UserLabelRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/userLabel", pathParameters) { + public UserLabelRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/userLabel", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public UserLabelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/userLabel", rawUrl) { + public UserLabelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}/userLabel", rawUrl) + { } /// /// Update a credential label for a user @@ -34,10 +39,12 @@ public UserLabelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -51,10 +58,12 @@ public async Task PutAsync(string body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(string body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(string body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(string body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(string body, Action> requestConfiguration = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -65,10 +74,11 @@ public RequestInformation ToPutRequestInformation(string body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UserLabelRequestBuilder WithUrl(string rawUrl) { - return new UserLabelRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.UserLabel.UserLabelRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.UserLabel.UserLabelRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/WithCredentialItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/WithCredentialItemRequestBuilder.cs index 95b60ff6..27868ab2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/WithCredentialItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Credentials/Item/WithCredentialItemRequestBuilder.cs @@ -2,44 +2,52 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.UserLabel; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\credentials\{credentialId} /// - public class WithCredentialItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithCredentialItemRequestBuilder : BaseRequestBuilder + { /// The moveAfter property - public MoveAfterRequestBuilder MoveAfter { get => - new MoveAfterRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.MoveAfterRequestBuilder MoveAfter + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.MoveAfterRequestBuilder(PathParameters, RequestAdapter); } /// The moveToFirst property - public MoveToFirstRequestBuilder MoveToFirst { get => - new MoveToFirstRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst.MoveToFirstRequestBuilder MoveToFirst + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst.MoveToFirstRequestBuilder(PathParameters, RequestAdapter); } /// The userLabel property - public UserLabelRequestBuilder UserLabel { get => - new UserLabelRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.UserLabel.UserLabelRequestBuilder UserLabel + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.UserLabel.UserLabelRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithCredentialItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}", pathParameters) { + public WithCredentialItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithCredentialItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}", rawUrl) { + public WithCredentialItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/credentials/{credentialId}", rawUrl) + { } /// /// Remove a credential for a user @@ -48,10 +56,12 @@ public WithCredentialItemRequestBuilder(string rawUrl, IRequestAdapter requestAd /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -63,10 +73,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -75,10 +87,11 @@ public RequestInformation ToDeleteRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithCredentialItemRequestBuilder WithUrl(string rawUrl) { - return new WithCredentialItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.WithCredentialItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.WithCredentialItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/DisableCredentialTypes/DisableCredentialTypesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/DisableCredentialTypes/DisableCredentialTypesRequestBuilder.cs index 2ae1bf54..7e722ddc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/DisableCredentialTypes/DisableCredentialTypesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/DisableCredentialTypes/DisableCredentialTypesRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.DisableCredentialTypes { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.DisableCredentialTypes +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\disable-credential-types /// - public class DisableCredentialTypesRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class DisableCredentialTypesRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public DisableCredentialTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/disable-credential-types", pathParameters) { + public DisableCredentialTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/disable-credential-types", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public DisableCredentialTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/disable-credential-types", rawUrl) { + public DisableCredentialTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/disable-credential-types", rawUrl) + { } /// /// Disable all credentials for a user of a specific type @@ -34,10 +39,12 @@ public DisableCredentialTypesRequestBuilder(string rawUrl, IRequestAdapter reque /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -51,10 +58,12 @@ public async Task PutAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -65,10 +74,11 @@ public RequestInformation ToPutRequestInformation(List body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public DisableCredentialTypesRequestBuilder WithUrl(string rawUrl) { - return new DisableCredentialTypesRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.DisableCredentialTypes.DisableCredentialTypesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.DisableCredentialTypes.DisableCredentialTypesRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ExecuteActionsEmail/ExecuteActionsEmailRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ExecuteActionsEmail/ExecuteActionsEmailRequestBuilder.cs index 3ea17bcc..c078059a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ExecuteActionsEmail/ExecuteActionsEmailRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ExecuteActionsEmail/ExecuteActionsEmailRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ExecuteActionsEmail { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ExecuteActionsEmail +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\execute-actions-email /// - public class ExecuteActionsEmailRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ExecuteActionsEmailRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ExecuteActionsEmailRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/execute-actions-email{?client_id*,lifespan*,redirect_uri*}", pathParameters) { + public ExecuteActionsEmailRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/execute-actions-email{?client_id*,lifespan*,redirect_uri*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ExecuteActionsEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/execute-actions-email{?client_id*,lifespan*,redirect_uri*}", rawUrl) { + public ExecuteActionsEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/execute-actions-email{?client_id*,lifespan*,redirect_uri*}", rawUrl) + { } /// /// 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. @@ -35,10 +40,12 @@ public ExecuteActionsEmailRequestBuilder(string rawUrl, IRequestAdapter requestA /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -52,10 +59,12 @@ public async Task PutAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -66,15 +75,18 @@ public RequestInformation ToPutRequestInformation(List body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ExecuteActionsEmailRequestBuilder WithUrl(string rawUrl) { - return new ExecuteActionsEmailRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ExecuteActionsEmail.ExecuteActionsEmailRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ExecuteActionsEmail.ExecuteActionsEmailRequestBuilder(rawUrl, RequestAdapter); } /// /// 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. /// - public class ExecuteActionsEmailRequestBuilderPutQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ExecuteActionsEmailRequestBuilderPutQueryParameters + { /// Client id #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/FederatedIdentityRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/FederatedIdentityRequestBuilder.cs index f53260ab..2c746273 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/FederatedIdentityRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/FederatedIdentityRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\federated-identity /// - public class FederatedIdentityRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class FederatedIdentityRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item.federatedIdentity.item collection /// Social login provider id - /// A - public WithProviderItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("provider", position); - return new WithProviderItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.Item.WithProviderItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("provider", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.Item.WithProviderItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public FederatedIdentityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity", pathParameters) { + public FederatedIdentityRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public FederatedIdentityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity", rawUrl) { + public FederatedIdentityRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity", rawUrl) + { } /// /// Get social logins associated with the user /// - /// A List<FederatedIdentityRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.FederatedIdentityRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, FederatedIdentityRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.FederatedIdentityRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get social logins associated with the user @@ -60,10 +71,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -73,10 +86,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public FederatedIdentityRequestBuilder WithUrl(string rawUrl) { - return new FederatedIdentityRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.FederatedIdentityRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.FederatedIdentityRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/Item/WithProviderItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/Item/WithProviderItemRequestBuilder.cs index 07abe02b..99224f29 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/Item/WithProviderItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/FederatedIdentity/Item/WithProviderItemRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\federated-identity\{provider} /// - public class WithProviderItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithProviderItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithProviderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity/{provider}", pathParameters) { + public WithProviderItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity/{provider}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity/{provider}", rawUrl) { + public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/federated-identity/{provider}", rawUrl) + { } /// /// Remove a social login provider from user @@ -33,10 +38,12 @@ public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +56,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -64,10 +73,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -80,10 +91,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -92,10 +105,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithProviderItemRequestBuilder WithUrl(string rawUrl) { - return new WithProviderItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.Item.WithProviderItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.Item.WithProviderItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountGetResponse.cs index c73e708e..9c4a0a5c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountGetResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountGetResponse.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count { - public class CountGetResponse : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class CountGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public CountGetResponse() { + public CountGetResponse() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CountGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountGetResponse(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountRequestBuilder.cs index 72355044..4798c619 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Count/CountRequestBuilder.cs @@ -1,52 +1,61 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\groups\count /// - public class CountRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/count{?search*}", pathParameters) { + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/count{?search*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/count{?search*}", rawUrl) { + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/count{?search*}", rawUrl) + { } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, CountGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -56,12 +65,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountRequestBuilder(rawUrl, RequestAdapter); } - public class CountRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class CountRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable [QueryParameter("search")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/GroupsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/GroupsRequestBuilder.cs index 718a39a3..046a36f8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/GroupsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/GroupsRequestBuilder.cs @@ -2,67 +2,81 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\groups /// - public class GroupsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class GroupsRequestBuilder : BaseRequestBuilder + { /// The count property - public CountRequestBuilder Count { get => - new CountRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountRequestBuilder Count + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item.groups.item collection /// Unique identifier of the item - /// A - public WithGroupItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("groupId", position); - return new WithGroupItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Item.WithGroupItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("groupId", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Item.WithGroupItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups{?briefRepresentation*,first*,max*,search*}", pathParameters) { + public GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups{?briefRepresentation*,first*,max*,search*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups{?briefRepresentation*,first*,max*,search*}", rawUrl) { + public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups{?briefRepresentation*,first*,max*,search*}", rawUrl) + { } - /// A List<GroupRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -72,12 +86,17 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public GroupsRequestBuilder WithUrl(string rawUrl) { - return new GroupsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.GroupsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.GroupsRequestBuilder(rawUrl, RequestAdapter); } - public class GroupsRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class GroupsRequestBuilderGetQueryParameters + #pragma warning restore CS1591 + { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } [QueryParameter("first")] diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Item/WithGroupItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Item/WithGroupItemRequestBuilder.cs index c5f8a9cf..9f56fb04 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Item/WithGroupItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Groups/Item/WithGroupItemRequestBuilder.cs @@ -1,39 +1,46 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\groups\{groupId} /// - public class WithGroupItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithGroupItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithGroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/{groupId}", pathParameters) { + public WithGroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/{groupId}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/{groupId}", rawUrl) { + public WithGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/groups/{groupId}", rawUrl) + { } /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -42,10 +49,12 @@ public async Task DeleteAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -54,10 +63,12 @@ public async Task PutAsync(Action> /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -67,10 +78,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -79,10 +92,11 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithGroupItemRequestBuilder WithUrl(string rawUrl) { - return new WithGroupItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Item.WithGroupItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Item.WithGroupItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationPostResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationPostResponse.cs index 4e0f1f8b..40326d9d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationPostResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationPostResponse.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation { - public class ImpersonationPostResponse : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ImpersonationPostResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ImpersonationPostResponse() { + public ImpersonationPostResponse() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ImpersonationPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationPostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ImpersonationPostResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationPostResponse(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationRequestBuilder.cs index c947bdea..da34d32b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Impersonation/ImpersonationRequestBuilder.cs @@ -1,46 +1,53 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\impersonation /// - public class ImpersonationRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ImpersonationRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ImpersonationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/impersonation", pathParameters) { + public ImpersonationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/impersonation", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ImpersonationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/impersonation", rawUrl) { + public ImpersonationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/impersonation", rawUrl) + { } /// /// Impersonate the user /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ImpersonationPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationPostResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Impersonate the user @@ -49,10 +56,12 @@ public async Task PostAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -62,10 +71,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ImpersonationRequestBuilder WithUrl(string rawUrl) { - return new ImpersonationRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Logout/LogoutRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Logout/LogoutRequestBuilder.cs index a87e30d3..49ac76b1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Logout/LogoutRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Logout/LogoutRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Logout { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Logout +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\logout /// - public class LogoutRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class LogoutRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public LogoutRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/logout", pathParameters) { + public LogoutRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/logout", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public LogoutRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/logout", rawUrl) { + public LogoutRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/logout", rawUrl) + { } /// /// 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. @@ -33,10 +38,12 @@ public LogoutRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPostRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -48,10 +55,12 @@ public async Task PostAsync(Action> /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -60,10 +69,11 @@ public RequestInformation ToPostRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public LogoutRequestBuilder WithUrl(string rawUrl) { - return new LogoutRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Logout.LogoutRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Logout.LogoutRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/Item/WithClientUuItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/Item/WithClientUuItemRequestBuilder.cs index a73a69fc..ee52e796 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/Item/WithClientUuItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/Item/WithClientUuItemRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\offline-sessions\{clientUuid} /// - public class WithClientUuItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithClientUuItemRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions/{clientUuid}", pathParameters) { + public WithClientUuItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions/{clientUuid}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions/{clientUuid}", rawUrl) { + public WithClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions/{clientUuid}", rawUrl) + { } /// /// Get offline sessions associated with the user and client /// - /// A List<UserSessionRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserSessionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get offline sessions associated with the user and client @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithClientUuItemRequestBuilder WithUrl(string rawUrl) { - return new WithClientUuItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.Item.WithClientUuItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.Item.WithClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs index 1a60fc2f..e982f982 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/OfflineSessions/OfflineSessionsRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\offline-sessions /// - public class OfflineSessionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class OfflineSessionsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item.offlineSessions.item collection /// Unique identifier of the item - /// A - public WithClientUuItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("clientUuid", position); - return new WithClientUuItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.Item.WithClientUuItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("clientUuid", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.Item.WithClientUuItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public OfflineSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions", pathParameters) { + public OfflineSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public OfflineSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions", rawUrl) { + public OfflineSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/offline-sessions", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPassword/ResetPasswordRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPassword/ResetPasswordRequestBuilder.cs index e8c93582..f5346ddb 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPassword/ResetPasswordRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPassword/ResetPasswordRequestBuilder.cs @@ -1,31 +1,36 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPassword { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPassword +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\reset-password /// - public class ResetPasswordRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ResetPasswordRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ResetPasswordRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password", pathParameters) { + public ResetPasswordRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ResetPasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password", rawUrl) { + public ResetPasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password", rawUrl) + { } /// /// Set up a new password for the user. @@ -35,10 +40,12 @@ public ResetPasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(CredentialRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(CredentialRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -52,10 +59,12 @@ public async Task PutAsync(CredentialRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(CredentialRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(CredentialRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -66,10 +75,11 @@ public RequestInformation ToPutRequestInformation(CredentialRepresentation body, /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ResetPasswordRequestBuilder WithUrl(string rawUrl) { - return new ResetPasswordRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPassword.ResetPasswordRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPassword.ResetPasswordRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPasswordEmail/ResetPasswordEmailRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPasswordEmail/ResetPasswordEmailRequestBuilder.cs index cfc29488..14503497 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPasswordEmail/ResetPasswordEmailRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/ResetPasswordEmail/ResetPasswordEmailRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPasswordEmail { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPasswordEmail +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\reset-password-email /// - public class ResetPasswordEmailRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ResetPasswordEmailRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ResetPasswordEmailRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password-email{?client_id*,redirect_uri*}", pathParameters) { + public ResetPasswordEmailRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password-email{?client_id*,redirect_uri*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ResetPasswordEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password-email{?client_id*,redirect_uri*}", rawUrl) { + public ResetPasswordEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/reset-password-email{?client_id*,redirect_uri*}", rawUrl) + { } /// /// 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. @@ -35,10 +40,12 @@ public ResetPasswordEmailRequestBuilder(string rawUrl, IRequestAdapter requestAd [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -51,10 +58,12 @@ public async Task PutAsync(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,16 +72,19 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. [Obsolete("")] - public ResetPasswordEmailRequestBuilder WithUrl(string rawUrl) { - return new ResetPasswordEmailRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPasswordEmail.ResetPasswordEmailRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPasswordEmail.ResetPasswordEmailRequestBuilder(rawUrl, RequestAdapter); } /// /// 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. /// - public class ResetPasswordEmailRequestBuilderPutQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ResetPasswordEmailRequestBuilderPutQueryParameters + { /// client id #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/ClientsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/ClientsRequestBuilder.cs index d3ea3204..0497398e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/ClientsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/ClientsRequestBuilder.cs @@ -1,37 +1,46 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item.roleMappings.clients.item collection - /// Unique identifier of the item - /// A - public WithClientItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("client", position); - return new WithClientItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// client id (not clientId!) + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("client%2Did", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients", pathParameters) { + public ClientsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients", rawUrl) { + public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients", rawUrl) + { } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs index cf55a45a..3495771a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Available/AvailableRequestBuilder.cs @@ -1,60 +1,69 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available +{ /// - /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\clients\{client}\available + /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\clients\{client-id}\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AvailableRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client%2Did}/available", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client%2Did}/available", rawUrl) + { } /// - /// Get available client-level roles that can be mapped to the user + /// Get available client-level roles that can be mapped to the user or group /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// - /// Get available client-level roles that can be mapped to the user + /// Get available client-level roles that can be mapped to the user or group /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { - return new AvailableRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/ClientItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/ClientItemRequestBuilder.cs new file mode 100644 index 00000000..61c55ebf --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/ClientItemRequestBuilder.cs @@ -0,0 +1,175 @@ +// +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Composite; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\clients\{client-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ClientItemRequestBuilder : BaseRequestBuilder + { + /// The available property + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder Available + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); + } + /// The composite property + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder Composite + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ClientItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client%2Did}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ClientItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client%2Did}", rawUrl) + { + } + /// + /// Delete client-level roles from user or group role mapping + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Get client-level role mappings for the user or group, and the app + /// + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); + } + /// + /// Add client-level roles to the user or group role mapping + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete client-level roles from user or group role mapping + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Get client-level role mappings for the user or group, and the app + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Add client-level roles to the user or group role mapping + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs index 4f853c1e..d34ad465 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Clients/Item/Composite/CompositeRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Composite { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Composite +{ /// - /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\clients\{client}\composite + /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\clients\{client-id}\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client%2Did}/composite{?briefRepresentation*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client}/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/clients/{client%2Did}/composite{?briefRepresentation*}", rawUrl) + { } /// /// Get effective client-level role mappings This recurses any composite roles /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get effective client-level role mappings This recurses any composite roles @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { - return new CompositeRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// Get effective client-level role mappings This recurses any composite roles /// - public class CompositeRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs index 40a6ba41..ef636d15 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Available/AvailableRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\realm\available /// - public class AvailableRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class AvailableRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/available", pathParameters) { + public AvailableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/available", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/available", rawUrl) { + public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/available", rawUrl) + { } /// /// Get realm-level roles that can be mapped /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get realm-level roles that can be mapped @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AvailableRequestBuilder WithUrl(string rawUrl) { - return new AvailableRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs index d0baa362..411bfd18 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/Composite/CompositeRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Composite { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Composite +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\realm\composite /// - public class CompositeRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/composite{?briefRepresentation*}", pathParameters) { + public CompositeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/composite{?briefRepresentation*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/composite{?briefRepresentation*}", rawUrl) { + public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm/composite{?briefRepresentation*}", rawUrl) + { } /// /// Get effective realm-level role mappings This will recurse all composite roles to get the result. /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get effective realm-level role mappings This will recurse all composite roles to get the result. @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,15 +73,18 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CompositeRequestBuilder WithUrl(string rawUrl) { - return new CompositeRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); } /// /// Get effective realm-level role mappings This will recurse all composite roles to get the result. /// - public class CompositeRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class CompositeRequestBuilderGetQueryParameters + { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/RealmRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/RealmRequestBuilder.cs index 39ad85c8..b49dfa56 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/RealmRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/Realm/RealmRequestBuilder.cs @@ -2,40 +2,47 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Composite; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\realm /// - public class RealmRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RealmRequestBuilder : BaseRequestBuilder + { /// The available property - public AvailableRequestBuilder Available { get => - new AvailableRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available.AvailableRequestBuilder Available + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public CompositeRequestBuilder Composite { get => - new CompositeRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder Composite + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm", pathParameters) { + public RealmRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm", rawUrl) { + public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings/realm", rawUrl) + { } /// /// Delete realm-level role mappings @@ -45,10 +52,12 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToDeleteRequestInformation(body, requestConfiguration); @@ -57,19 +66,21 @@ public async Task DeleteAsync(List body, Action /// Get realm-level role mappings /// - /// A List<RoleRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Add realm-level role mappings to the user @@ -79,10 +90,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -96,10 +109,12 @@ public async Task PostAsync(List body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); @@ -114,10 +129,12 @@ public RequestInformation ToDeleteRequestInformation(List bo /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -132,10 +149,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); @@ -146,10 +165,11 @@ public RequestInformation ToPostRequestInformation(List body /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RealmRequestBuilder WithUrl(string rawUrl) { - return new RealmRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/RoleMappingsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/RoleMappingsRequestBuilder.cs index 7ed5ffb7..3838e00b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/RoleMappingsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/RoleMappings/RoleMappingsRequestBuilder.cs @@ -2,56 +2,65 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings /// - public class RoleMappingsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RoleMappingsRequestBuilder : BaseRequestBuilder + { /// The clients property - public ClientsRequestBuilder Clients { get => - new ClientsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.ClientsRequestBuilder Clients + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public RealmRequestBuilder Realm { get => - new RealmRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.RealmRequestBuilder Realm + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RoleMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings", pathParameters) { + public RoleMappingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RoleMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings", rawUrl) { + public RoleMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/role-mappings", rawUrl) + { } /// /// Get role mappings /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get role mappings @@ -60,10 +69,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -73,10 +84,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RoleMappingsRequestBuilder WithUrl(string rawUrl) { - return new RoleMappingsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.RoleMappingsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.RoleMappingsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/SendVerifyEmail/SendVerifyEmailRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/SendVerifyEmail/SendVerifyEmailRequestBuilder.cs index ea6d2afe..c3d5641b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/SendVerifyEmail/SendVerifyEmailRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/SendVerifyEmail/SendVerifyEmailRequestBuilder.cs @@ -1,30 +1,35 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.SendVerifyEmail { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.SendVerifyEmail +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\send-verify-email /// - public class SendVerifyEmailRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SendVerifyEmailRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SendVerifyEmailRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/send-verify-email{?client_id*,lifespan*,redirect_uri*}", pathParameters) { + public SendVerifyEmailRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/send-verify-email{?client_id*,lifespan*,redirect_uri*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SendVerifyEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/send-verify-email{?client_id*,lifespan*,redirect_uri*}", rawUrl) { + public SendVerifyEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/send-verify-email{?client_id*,lifespan*,redirect_uri*}", rawUrl) + { } /// /// 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 @@ -34,10 +39,12 @@ public SendVerifyEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToPutRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -49,10 +56,12 @@ public async Task PutAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -61,15 +70,18 @@ public RequestInformation ToPutRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SendVerifyEmailRequestBuilder WithUrl(string rawUrl) { - return new SendVerifyEmailRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.SendVerifyEmail.SendVerifyEmailRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.SendVerifyEmail.SendVerifyEmailRequestBuilder(rawUrl, RequestAdapter); } /// /// 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 /// - public class SendVerifyEmailRequestBuilderPutQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SendVerifyEmailRequestBuilderPutQueryParameters + { /// Client id #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Sessions/SessionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Sessions/SessionsRequestBuilder.cs index 43160532..77e277a3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Sessions/SessionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/Sessions/SessionsRequestBuilder.cs @@ -1,48 +1,55 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\sessions /// - public class SessionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class SessionsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public SessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/sessions", pathParameters) { + public SessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/sessions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/sessions", rawUrl) { + public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/sessions", rawUrl) + { } /// /// Get sessions associated with the user /// - /// A List<UserSessionRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserSessionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Get sessions associated with the user @@ -51,10 +58,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -64,10 +73,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public SessionsRequestBuilder WithUrl(string rawUrl) { - return new SessionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions.SessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions.SessionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UnmanagedAttributes/UnmanagedAttributesGetResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UnmanagedAttributes/UnmanagedAttributesGetResponse.cs new file mode 100644 index 00000000..d8839161 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UnmanagedAttributes/UnmanagedAttributesGetResponse.cs @@ -0,0 +1,53 @@ +// +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UnmanagedAttributesGetResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public UnmanagedAttributesGetResponse() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UnmanagedAttributes/UnmanagedAttributesRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UnmanagedAttributes/UnmanagedAttributesRequestBuilder.cs new file mode 100644 index 00000000..dbfa5195 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UnmanagedAttributes/UnmanagedAttributesRequestBuilder.cs @@ -0,0 +1,75 @@ +// +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes +{ + /// + /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\unmanagedAttributes + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UnmanagedAttributesRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UnmanagedAttributesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/unmanagedAttributes", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UnmanagedAttributesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}/unmanagedAttributes", rawUrl) + { + } + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + } + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesRequestBuilder(rawUrl, RequestAdapter); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UserItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UserItemRequestBuilder.cs index 914c810f..c72b5661 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UserItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Item/UserItemRequestBuilder.cs @@ -14,93 +14,119 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.SendVerifyEmail; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id} /// - public class UserItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UserItemRequestBuilder : BaseRequestBuilder + { /// The configuredUserStorageCredentialTypes property - public ConfiguredUserStorageCredentialTypesRequestBuilder ConfiguredUserStorageCredentialTypes { get => - new ConfiguredUserStorageCredentialTypesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes.ConfiguredUserStorageCredentialTypesRequestBuilder ConfiguredUserStorageCredentialTypes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes.ConfiguredUserStorageCredentialTypesRequestBuilder(PathParameters, RequestAdapter); } /// The consents property - public ConsentsRequestBuilder Consents { get => - new ConsentsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.ConsentsRequestBuilder Consents + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.ConsentsRequestBuilder(PathParameters, RequestAdapter); } /// The credentials property - public CredentialsRequestBuilder Credentials { get => - new CredentialsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.CredentialsRequestBuilder Credentials + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.CredentialsRequestBuilder(PathParameters, RequestAdapter); } /// The disableCredentialTypes property - public DisableCredentialTypesRequestBuilder DisableCredentialTypes { get => - new DisableCredentialTypesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.DisableCredentialTypes.DisableCredentialTypesRequestBuilder DisableCredentialTypes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.DisableCredentialTypes.DisableCredentialTypesRequestBuilder(PathParameters, RequestAdapter); } /// The executeActionsEmail property - public ExecuteActionsEmailRequestBuilder ExecuteActionsEmail { get => - new ExecuteActionsEmailRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ExecuteActionsEmail.ExecuteActionsEmailRequestBuilder ExecuteActionsEmail + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ExecuteActionsEmail.ExecuteActionsEmailRequestBuilder(PathParameters, RequestAdapter); } /// The federatedIdentity property - public FederatedIdentityRequestBuilder FederatedIdentity { get => - new FederatedIdentityRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.FederatedIdentityRequestBuilder FederatedIdentity + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.FederatedIdentityRequestBuilder(PathParameters, RequestAdapter); } /// The groups property - public GroupsRequestBuilder Groups { get => - new GroupsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.GroupsRequestBuilder Groups + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); } /// The impersonation property - public ImpersonationRequestBuilder Impersonation { get => - new ImpersonationRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationRequestBuilder Impersonation + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationRequestBuilder(PathParameters, RequestAdapter); } /// The logout property - public LogoutRequestBuilder Logout { get => - new LogoutRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Logout.LogoutRequestBuilder Logout + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Logout.LogoutRequestBuilder(PathParameters, RequestAdapter); } /// The offlineSessions property - public OfflineSessionsRequestBuilder OfflineSessions { get => - new OfflineSessionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.OfflineSessionsRequestBuilder OfflineSessions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.OfflineSessionsRequestBuilder(PathParameters, RequestAdapter); } /// The resetPassword property - public ResetPasswordRequestBuilder ResetPassword { get => - new ResetPasswordRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPassword.ResetPasswordRequestBuilder ResetPassword + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPassword.ResetPasswordRequestBuilder(PathParameters, RequestAdapter); } /// The resetPasswordEmail property - public ResetPasswordEmailRequestBuilder ResetPasswordEmail { get => - new ResetPasswordEmailRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPasswordEmail.ResetPasswordEmailRequestBuilder ResetPasswordEmail + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPasswordEmail.ResetPasswordEmailRequestBuilder(PathParameters, RequestAdapter); } /// The roleMappings property - public RoleMappingsRequestBuilder RoleMappings { get => - new RoleMappingsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.RoleMappingsRequestBuilder RoleMappings + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.RoleMappingsRequestBuilder(PathParameters, RequestAdapter); } /// The sendVerifyEmail property - public SendVerifyEmailRequestBuilder SendVerifyEmail { get => - new SendVerifyEmailRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.SendVerifyEmail.SendVerifyEmailRequestBuilder SendVerifyEmail + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.SendVerifyEmail.SendVerifyEmailRequestBuilder(PathParameters, RequestAdapter); } /// The sessions property - public SessionsRequestBuilder Sessions { get => - new SessionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions.SessionsRequestBuilder Sessions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions.SessionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The unmanagedAttributes property + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesRequestBuilder UnmanagedAttributes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}{?userProfileMetadata*}", pathParameters) { + public UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}{?userProfileMetadata*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}{?userProfileMetadata*}", rawUrl) { + public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}{?userProfileMetadata*}", rawUrl) + { } /// /// Delete the user @@ -110,10 +136,12 @@ public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -121,18 +149,20 @@ public async Task DeleteAsync(Action /// Get representation of the user /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update the user @@ -143,10 +173,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(UserRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(UserRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -159,12 +191,14 @@ public async Task PutAsync(UserRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); return requestInfo; } @@ -175,10 +209,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -193,13 +229,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(UserRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(UserRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, "{+baseurl}/admin/realms/{realm}/users/{user%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -207,15 +245,18 @@ public RequestInformation ToPutRequestInformation(UserRepresentation body, Actio /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UserItemRequestBuilder WithUrl(string rawUrl) { - return new UserItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UserItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UserItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Get representation of the user /// - public class UserItemRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UserItemRequestBuilderGetQueryParameters + { /// Indicates if the user profile metadata should be added to the response [QueryParameter("userProfileMetadata")] public bool? UserProfileMetadata { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/Metadata/MetadataRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/Metadata/MetadataRequestBuilder.cs index 8d063adf..c5ce0913 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/Metadata/MetadataRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/Metadata/MetadataRequestBuilder.cs @@ -1,47 +1,54 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.Metadata { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.Metadata +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\profile\metadata /// - public class MetadataRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class MetadataRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public MetadataRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile/metadata", pathParameters) { + public MetadataRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile/metadata", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public MetadataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile/metadata", rawUrl) { + public MetadataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile/metadata", rawUrl) + { } /// /// Get the UserProfileMetadata from the configuration /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, UserProfileMetadata.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get the UserProfileMetadata from the configuration @@ -50,10 +57,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -63,10 +72,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MetadataRequestBuilder WithUrl(string rawUrl) { - return new MetadataRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.Metadata.MetadataRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.Metadata.MetadataRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/ProfileRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/ProfileRequestBuilder.cs index 01e78257..6b300bcf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/ProfileRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/Profile/ProfileRequestBuilder.cs @@ -1,70 +1,80 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.Metadata; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\profile /// - public class ProfileRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class ProfileRequestBuilder : BaseRequestBuilder + { /// The metadata property - public MetadataRequestBuilder Metadata { get => - new MetadataRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.Metadata.MetadataRequestBuilder Metadata + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.Metadata.MetadataRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ProfileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile", pathParameters) { + public ProfileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProfileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile", rawUrl) { + public ProfileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users/profile", rawUrl) + { } /// /// Get the configuration for the user profile /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, UPConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Set the configuration for the user profile /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(UPConfig body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPConfig body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(UPConfig body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPConfig body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, UPConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPConfig.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get the configuration for the user profile @@ -73,10 +83,12 @@ public async Task PutAsync(UPConfig body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -91,10 +103,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(UPConfig body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPConfig body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(UPConfig body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPConfig body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -106,10 +120,11 @@ public RequestInformation ToPutRequestInformation(UPConfig body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ProfileRequestBuilder WithUrl(string rawUrl) { - return new ProfileRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.ProfileRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.ProfileRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/UsersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/UsersRequestBuilder.cs index 8d3b4440..de77d566 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/UsersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Users/UsersRequestBuilder.cs @@ -3,65 +3,78 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users /// - public class UsersRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UsersRequestBuilder : BaseRequestBuilder + { /// The count property - public CountRequestBuilder Count { get => - new CountRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count.CountRequestBuilder Count + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// The profile property - public ProfileRequestBuilder Profile { get => - new ProfileRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.ProfileRequestBuilder Profile + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.ProfileRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.users.item collection /// Unique identifier of the item - /// A - public UserItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("user%2Did", position); - return new UserItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UserItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("user%2Did", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UserItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users{?briefRepresentation*,email*,emailVerified*,enabled*,exact*,first*,firstName*,idpAlias*,idpUserId*,lastName*,max*,q*,search*,username*}", pathParameters) { + public UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users{?briefRepresentation*,email*,emailVerified*,enabled*,exact*,first*,firstName*,idpAlias*,idpUserId*,lastName*,max*,q*,search*,username*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users{?briefRepresentation*,email*,emailVerified*,enabled*,exact*,first*,firstName*,idpAlias*,idpUserId*,lastName*,max*,q*,search*,username*}", rawUrl) { + public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users{?briefRepresentation*,email*,emailVerified*,enabled*,exact*,first*,firstName*,idpAlias*,idpUserId*,lastName*,max*,q*,search*,username*}", rawUrl) + { } /// /// Get users Returns a stream of users, filtered according to query parameters. /// - /// A List<UserRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Create a new user Username must be unique. @@ -72,10 +85,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(UserRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(UserRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -88,10 +103,12 @@ public async Task PostAsync(UserRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -106,13 +123,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(UserRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(UserRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms/{realm}/users", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; @@ -120,15 +139,18 @@ public RequestInformation ToPostRequestInformation(UserRepresentation body, Acti /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsersRequestBuilder WithUrl(string rawUrl) { - return new UsersRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.UsersRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.UsersRequestBuilder(rawUrl, RequestAdapter); } /// /// Get users Returns a stream of users, filtered according to query parameters. /// - public class UsersRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UsersRequestBuilderGetQueryParameters + { /// Boolean which defines whether brief representations are returned (default: false) [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/UsersManagementPermissions/UsersManagementPermissionsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/UsersManagementPermissions/UsersManagementPermissionsRequestBuilder.cs index 329007dd..52ea4651 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/UsersManagementPermissions/UsersManagementPermissionsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/UsersManagementPermissions/UsersManagementPermissionsRequestBuilder.cs @@ -1,68 +1,79 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagementPermissions { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagementPermissions +{ /// /// Builds and executes requests for operations under \admin\realms\{realm}\users-management-permissions /// - public class UsersManagementPermissionsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class UsersManagementPermissionsRequestBuilder : BaseRequestBuilder + { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public UsersManagementPermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users-management-permissions", pathParameters) { + public UsersManagementPermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users-management-permissions", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public UsersManagementPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users-management-permissions", rawUrl) { + public UsersManagementPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}/users-management-permissions", rawUrl) + { } - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -74,10 +85,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(ManagementPermissionReference body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -89,10 +102,11 @@ public RequestInformation ToPutRequestInformation(ManagementPermissionReference /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public UsersManagementPermissionsRequestBuilder WithUrl(string rawUrl) { - return new UsersManagementPermissionsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagementPermissions.UsersManagementPermissionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagementPermissions.UsersManagementPermissionsRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/WithRealmItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/WithRealmItemRequestBuilder.cs index 5655f822..62134cf9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/WithRealmItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/WithRealmItemRequestBuilder.cs @@ -8,6 +8,7 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates; +using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components; @@ -32,160 +33,202 @@ using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagementPermissions; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item +{ /// /// Builds and executes requests for operations under \admin\realms\{realm} /// - public class WithRealmItemRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class WithRealmItemRequestBuilder : BaseRequestBuilder + { /// The adminEvents property - public AdminEventsRequestBuilder AdminEvents { get => - new AdminEventsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents.AdminEventsRequestBuilder AdminEvents + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents.AdminEventsRequestBuilder(PathParameters, RequestAdapter); } /// The attackDetection property - public AttackDetectionRequestBuilder AttackDetection { get => - new AttackDetectionRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.AttackDetectionRequestBuilder AttackDetection + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.AttackDetectionRequestBuilder(PathParameters, RequestAdapter); } /// The authentication property - public AuthenticationRequestBuilder Authentication { get => - new AuthenticationRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticationRequestBuilder Authentication + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticationRequestBuilder(PathParameters, RequestAdapter); } /// The clientDescriptionConverter property - public ClientDescriptionConverterRequestBuilder ClientDescriptionConverter { get => - new ClientDescriptionConverterRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescriptionConverter.ClientDescriptionConverterRequestBuilder ClientDescriptionConverter + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescriptionConverter.ClientDescriptionConverterRequestBuilder(PathParameters, RequestAdapter); } /// The clientPolicies property - public ClientPoliciesRequestBuilder ClientPolicies { get => - new ClientPoliciesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.ClientPoliciesRequestBuilder ClientPolicies + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.ClientPoliciesRequestBuilder(PathParameters, RequestAdapter); } /// The clientRegistrationPolicy property - public ClientRegistrationPolicyRequestBuilder ClientRegistrationPolicy { get => - new ClientRegistrationPolicyRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.ClientRegistrationPolicyRequestBuilder ClientRegistrationPolicy + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.ClientRegistrationPolicyRequestBuilder(PathParameters, RequestAdapter); } /// The clients property - public ClientsRequestBuilder Clients { get => - new ClientsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.ClientsRequestBuilder Clients + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The clientScopes property - public ClientScopesRequestBuilder ClientScopes { get => - new ClientScopesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.ClientScopesRequestBuilder ClientScopes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.ClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The clientSessionStats property - public ClientSessionStatsRequestBuilder ClientSessionStats { get => - new ClientSessionStatsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStatsRequestBuilder ClientSessionStats + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStatsRequestBuilder(PathParameters, RequestAdapter); } /// The clientsInitialAccess property - public ClientsInitialAccessRequestBuilder ClientsInitialAccess { get => - new ClientsInitialAccessRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.ClientsInitialAccessRequestBuilder ClientsInitialAccess + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.ClientsInitialAccessRequestBuilder(PathParameters, RequestAdapter); } /// The clientTemplates property - public ClientTemplatesRequestBuilder ClientTemplates { get => - new ClientTemplatesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.ClientTemplatesRequestBuilder ClientTemplates + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.ClientTemplatesRequestBuilder(PathParameters, RequestAdapter); + } + /// The clientTypes property + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes.ClientTypesRequestBuilder ClientTypes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes.ClientTypesRequestBuilder(PathParameters, RequestAdapter); } /// The components property - public ComponentsRequestBuilder Components { get => - new ComponentsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.ComponentsRequestBuilder Components + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.ComponentsRequestBuilder(PathParameters, RequestAdapter); } /// The credentialRegistrators property - public CredentialRegistratorsRequestBuilder CredentialRegistrators { get => - new CredentialRegistratorsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegistrators.CredentialRegistratorsRequestBuilder CredentialRegistrators + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegistrators.CredentialRegistratorsRequestBuilder(PathParameters, RequestAdapter); } /// The defaultDefaultClientScopes property - public DefaultDefaultClientScopesRequestBuilder DefaultDefaultClientScopes { get => - new DefaultDefaultClientScopesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.DefaultDefaultClientScopesRequestBuilder DefaultDefaultClientScopes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.DefaultDefaultClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The defaultGroups property - public DefaultGroupsRequestBuilder DefaultGroups { get => - new DefaultGroupsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.DefaultGroupsRequestBuilder DefaultGroups + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.DefaultGroupsRequestBuilder(PathParameters, RequestAdapter); } /// The defaultOptionalClientScopes property - public DefaultOptionalClientScopesRequestBuilder DefaultOptionalClientScopes { get => - new DefaultOptionalClientScopesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.DefaultOptionalClientScopesRequestBuilder DefaultOptionalClientScopes + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.DefaultOptionalClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The events property - public EventsRequestBuilder Events { get => - new EventsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.EventsRequestBuilder Events + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.EventsRequestBuilder(PathParameters, RequestAdapter); } /// The groupByPath property - public GroupByPathRequestBuilder GroupByPath { get => - new GroupByPathRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.GroupByPathRequestBuilder GroupByPath + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.GroupByPathRequestBuilder(PathParameters, RequestAdapter); } /// The groups property - public GroupsRequestBuilder Groups { get => - new GroupsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.GroupsRequestBuilder Groups + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); } /// The identityProvider property - public IdentityProviderRequestBuilder IdentityProvider { get => - new IdentityProviderRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.IdentityProviderRequestBuilder IdentityProvider + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.IdentityProviderRequestBuilder(PathParameters, RequestAdapter); } /// The keys property - public KeysRequestBuilder Keys { get => - new KeysRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys.KeysRequestBuilder Keys + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys.KeysRequestBuilder(PathParameters, RequestAdapter); } /// The localization property - public LocalizationRequestBuilder Localization { get => - new LocalizationRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.LocalizationRequestBuilder Localization + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.LocalizationRequestBuilder(PathParameters, RequestAdapter); } /// The logoutAll property - public LogoutAllRequestBuilder LogoutAll { get => - new LogoutAllRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll.LogoutAllRequestBuilder LogoutAll + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll.LogoutAllRequestBuilder(PathParameters, RequestAdapter); } /// The partialExport property - public PartialExportRequestBuilder PartialExport { get => - new PartialExportRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport.PartialExportRequestBuilder PartialExport + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport.PartialExportRequestBuilder(PathParameters, RequestAdapter); } /// The partialImport property - public PartialImportRequestBuilder PartialImport { get => - new PartialImportRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport.PartialImportRequestBuilder PartialImport + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport.PartialImportRequestBuilder(PathParameters, RequestAdapter); } /// The pushRevocation property - public PushRevocationRequestBuilder PushRevocation { get => - new PushRevocationRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation.PushRevocationRequestBuilder PushRevocation + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation.PushRevocationRequestBuilder(PathParameters, RequestAdapter); } /// The roles property - public RolesRequestBuilder Roles { get => - new RolesRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.RolesRequestBuilder Roles + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); } /// The rolesById property - public RolesByIdRequestBuilder RolesById { get => - new RolesByIdRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.RolesByIdRequestBuilder RolesById + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.RolesByIdRequestBuilder(PathParameters, RequestAdapter); } /// The sessions property - public SessionsRequestBuilder Sessions { get => - new SessionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.SessionsRequestBuilder Sessions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.SessionsRequestBuilder(PathParameters, RequestAdapter); } /// The testSMTPConnection property - public TestSMTPConnectionRequestBuilder TestSMTPConnection { get => - new TestSMTPConnectionRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionRequestBuilder TestSMTPConnection + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionRequestBuilder(PathParameters, RequestAdapter); } /// The users property - public UsersRequestBuilder Users { get => - new UsersRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.UsersRequestBuilder Users + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.UsersRequestBuilder(PathParameters, RequestAdapter); } /// The usersManagementPermissions property - public UsersManagementPermissionsRequestBuilder UsersManagementPermissions { get => - new UsersManagementPermissionsRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagementPermissions.UsersManagementPermissionsRequestBuilder UsersManagementPermissions + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagementPermissions.UsersManagementPermissionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public WithRealmItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}", pathParameters) { + public WithRealmItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public WithRealmItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}", rawUrl) { + public WithRealmItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms/{realm}", rawUrl) + { } /// /// Delete the realm @@ -194,10 +237,12 @@ public WithRealmItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToDeleteRequestInformation(requestConfiguration); await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); @@ -205,18 +250,20 @@ public async Task DeleteAsync(Action /// Get the top-level representation of the realm It will not include nested information like User and Client representations. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, RealmRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// This will only update top-level attributes of the realm. @@ -227,10 +274,12 @@ public async Task GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(RealmRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PutAsync(RealmRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPutRequestInformation(body, requestConfiguration); @@ -243,10 +292,12 @@ public async Task PutAsync(RealmRepresentation body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -259,10 +310,12 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -277,10 +330,12 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(RealmRepresentation body, Action>? requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPutRequestInformation(RealmRepresentation body, Action> requestConfiguration = default) { + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation body, Action> requestConfiguration = default) + { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); @@ -291,10 +346,11 @@ public RequestInformation ToPutRequestInformation(RealmRepresentation body, Acti /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public WithRealmItemRequestBuilder WithUrl(string rawUrl) { - return new WithRealmItemRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.WithRealmItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.WithRealmItemRequestBuilder(rawUrl, RequestAdapter); } } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/RealmsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/RealmsRequestBuilder.cs index e4ff91c3..862c270c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/RealmsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/RealmsRequestBuilder.cs @@ -1,57 +1,68 @@ // using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Models; +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System.Threading; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms +{ /// /// Builds and executes requests for operations under \admin\realms /// - public class RealmsRequestBuilder : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RealmsRequestBuilder : BaseRequestBuilder + { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item collection /// realm name (not id!) - /// A - public WithRealmItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("realm", position); - return new WithRealmItemRequestBuilder(urlTplParams, RequestAdapter); - } } + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.WithRealmItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("realm", position); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.WithRealmItemRequestBuilder(urlTplParams, RequestAdapter); + } + } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public RealmsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms{?briefRepresentation*}", pathParameters) { + public RealmsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms{?briefRepresentation*}", pathParameters) + { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public RealmsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms{?briefRepresentation*}", rawUrl) { + public RealmsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/realms{?briefRepresentation*}", rawUrl) + { } /// /// Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view. /// - /// A List<RealmRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation> /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task?> GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task> GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, RealmRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Realm name must be unique. @@ -61,10 +72,12 @@ public async Task> GetAsync(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { #nullable restore #else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); @@ -77,10 +90,12 @@ public async Task PostAsync(string body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); @@ -95,13 +110,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action>? requestConfiguration = default) + { #nullable restore #else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { + public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) + { #endif if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/admin/realms", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.SetContentFromScalar(RequestAdapter, "application/json", body); return requestInfo; @@ -109,15 +126,18 @@ public RequestInformation ToPostRequestInformation(string body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public RealmsRequestBuilder WithUrl(string rawUrl) { - return new RealmsRequestBuilder(rawUrl, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.RealmsRequestBuilder WithUrl(string rawUrl) + { + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.RealmsRequestBuilder(rawUrl, RequestAdapter); } /// /// Get accessible realms Returns a list of accessible realms. The list is filtered based on what realms the caller is allowed to view. /// - public class RealmsRequestBuilderGetQueryParameters { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class RealmsRequestBuilderGetQueryParameters + { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Keycloak.AuthServices.Sdk.Kiota.csproj b/src/Keycloak.AuthServices.Sdk.Kiota/Keycloak.AuthServices.Sdk.Kiota.csproj index 04e21eb7..a3946a83 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Keycloak.AuthServices.Sdk.Kiota.csproj +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Keycloak.AuthServices.Sdk.Kiota.csproj @@ -10,7 +10,7 @@ Keycloak HTTP Admin API generated by Kiota Keycloak;KeycloakAdminAPI;HttpClient true - 24.0.1 + 25.0.2 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/KeycloakAdminApiClient.cs b/src/Keycloak.AuthServices.Sdk.Kiota/KeycloakAdminApiClient.cs index f96147ec..ef374e90 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/KeycloakAdminApiClient.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/KeycloakAdminApiClient.cs @@ -8,23 +8,27 @@ using Microsoft.Kiota.Serialization.Text; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Threading.Tasks; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin +{ /// /// The main entry point of the SDK, exposes the configuration and the fluent API. /// - public class KeycloakAdminApiClient : BaseRequestBuilder { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + public partial class KeycloakAdminApiClient : BaseRequestBuilder + { /// The admin property - public AdminRequestBuilder Admin { get => - new AdminRequestBuilder(PathParameters, RequestAdapter); + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.AdminRequestBuilder Admin + { + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.AdminRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The request adapter to use to execute the requests. - public KeycloakAdminApiClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary()) { + public KeycloakAdminApiClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary()) + { ApiClientBuilder.RegisterDefaultSerializer(); ApiClientBuilder.RegisterDefaultSerializer(); ApiClientBuilder.RegisterDefaultSerializer(); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AbstractPolicyRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AbstractPolicyRepresentation.cs index 136e6b3c..fce766e2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AbstractPolicyRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AbstractPolicyRepresentation.cs @@ -1,15 +1,20 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AbstractPolicyRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AbstractPolicyRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The decisionStrategy property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.DecisionStrategy? DecisionStrategy { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.DecisionStrategy? DecisionStrategy { get; set; } /// The description property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -27,7 +32,7 @@ public class AbstractPolicyRepresentation : IAdditionalDataHolder, IParsable { public string Id { get; set; } #endif /// The logic property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Logic? Logic { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Logic? Logic { get; set; } /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -63,10 +68,10 @@ public class AbstractPolicyRepresentation : IAdditionalDataHolder, IParsable { /// The resourcesData property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ResourcesData { get; set; } + public List? ResourcesData { get; set; } #nullable restore #else - public List ResourcesData { get; set; } + public List ResourcesData { get; set; } #endif /// The scopes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -79,10 +84,10 @@ public class AbstractPolicyRepresentation : IAdditionalDataHolder, IParsable { /// The scopesData property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ScopesData { get; set; } + public List? ScopesData { get; set; } #nullable restore #else - public List ScopesData { get; set; } + public List ScopesData { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -93,57 +98,62 @@ public class AbstractPolicyRepresentation : IAdditionalDataHolder, IParsable { public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AbstractPolicyRepresentation() { + public AbstractPolicyRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AbstractPolicyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AbstractPolicyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AbstractPolicyRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AbstractPolicyRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"decisionStrategy", n => { DecisionStrategy = n.GetEnumValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"logic", n => { Logic = n.GetEnumValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"owner", n => { Owner = n.GetStringValue(); } }, - {"policies", n => { Policies = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"resources", n => { Resources = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"resourcesData", n => { ResourcesData = n.GetCollectionOfObjectValues(ResourceRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"scopesData", n => { ScopesData = n.GetCollectionOfObjectValues(ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"type", n => { Type = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "decisionStrategy", n => { DecisionStrategy = n.GetEnumValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "logic", n => { Logic = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetStringValue(); } }, + { "policies", n => { Policies = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "resources", n => { Resources = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "resourcesData", n => { ResourcesData = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "scopesData", n => { ScopesData = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "type", n => { Type = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteEnumValue("decisionStrategy", DecisionStrategy); + writer.WriteEnumValue("decisionStrategy", DecisionStrategy); writer.WriteStringValue("description", Description); writer.WriteStringValue("id", Id); - writer.WriteEnumValue("logic", Logic); + writer.WriteEnumValue("logic", Logic); writer.WriteStringValue("name", Name); writer.WriteStringValue("owner", Owner); writer.WriteCollectionOfPrimitiveValues("policies", Policies); writer.WriteCollectionOfPrimitiveValues("resources", Resources); - writer.WriteCollectionOfObjectValues("resourcesData", ResourcesData); + writer.WriteCollectionOfObjectValues("resourcesData", ResourcesData); writer.WriteCollectionOfPrimitiveValues("scopes", Scopes); - writer.WriteCollectionOfObjectValues("scopesData", ScopesData); + writer.WriteCollectionOfObjectValues("scopesData", ScopesData); writer.WriteStringValue("type", Type); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Access.cs index 394df3e9..3238ad9b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Access.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class Access : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Access : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The roles property @@ -19,35 +24,40 @@ public class Access : IAdditionalDataHolder, IParsable { /// The verify_caller property public bool? VerifyCaller { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public Access() { + public Access() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Access CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Access CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Access(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"verify_caller", n => { VerifyCaller = n.GetBoolValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "verify_caller", n => { VerifyCaller = n.GetBoolValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("roles", Roles); writer.WriteBoolValue("verify_caller", VerifyCaller); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken.cs index 5d2aadb4..4ede2e34 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AccessToken : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AccessToken : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The acr property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -19,10 +24,10 @@ public class AccessToken : IAdditionalDataHolder, IParsable { /// The address property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AddressClaimSet? Address { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet? Address { get; set; } #nullable restore #else - public AddressClaimSet Address { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet Address { get; set; } #endif /// The allowedOrigins property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -40,19 +45,16 @@ public class AccessToken : IAdditionalDataHolder, IParsable { #else public string AtHash { get; set; } #endif - /// The auth_time property - public long? Auth_time { get; set; } /// The authorization property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Authorization? Authorization { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Authorization? Authorization { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Authorization Authorization { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Authorization Authorization { get; set; } #endif - /// The authTime property - [Obsolete("")] - public int? AuthTime { get; set; } + /// The auth_time property + public long? AuthTime { get; set; } /// The azp property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -88,10 +90,10 @@ public class AccessToken : IAdditionalDataHolder, IParsable { /// The cnf property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Confirmation? Cnf { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Confirmation? Cnf { get; set; } #nullable restore #else - public Confirmation Cnf { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Confirmation Cnf { get; set; } #endif /// The email property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -192,10 +194,10 @@ public class AccessToken : IAdditionalDataHolder, IParsable { /// The otherClaims property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AccessToken_otherClaims? OtherClaims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_otherClaims? OtherClaims { get; set; } #nullable restore #else - public AccessToken_otherClaims OtherClaims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_otherClaims OtherClaims { get; set; } #endif /// The phone_number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -234,18 +236,18 @@ public class AccessToken : IAdditionalDataHolder, IParsable { /// The realm_access property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Access? RealmAccess { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Access? RealmAccess { get; set; } #nullable restore #else - public Access RealmAccess { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Access RealmAccess { get; set; } #endif /// The resource_access property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AccessToken_resource_access? ResourceAccess { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_resource_access? ResourceAccess { get; set; } #nullable restore #else - public AccessToken_resource_access ResourceAccess { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_resource_access ResourceAccess { get; set; } #endif /// The scope property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -254,14 +256,6 @@ public class AccessToken : IAdditionalDataHolder, IParsable { #nullable restore #else public string Scope { get; set; } -#endif - /// The session_state property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SessionState { get; set; } -#nullable restore -#else - public string SessionState { get; set; } #endif /// The s_hash property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -322,91 +316,93 @@ public class AccessToken : IAdditionalDataHolder, IParsable { public string Zoneinfo { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AccessToken() { + public AccessToken() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AccessToken CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AccessToken(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"acr", n => { Acr = n.GetStringValue(); } }, - {"address", n => { Address = n.GetObjectValue(AddressClaimSet.CreateFromDiscriminatorValue); } }, - {"allowed-origins", n => { AllowedOrigins = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"at_hash", n => { AtHash = n.GetStringValue(); } }, - {"authTime", n => { AuthTime = n.GetIntValue(); } }, - {"authorization", n => { Authorization = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Authorization.CreateFromDiscriminatorValue); } }, - {"azp", n => { Azp = n.GetStringValue(); } }, - {"birthdate", n => { Birthdate = n.GetStringValue(); } }, - {"c_hash", n => { CHash = n.GetStringValue(); } }, - {"claims_locales", n => { ClaimsLocales = n.GetStringValue(); } }, - {"cnf", n => { Cnf = n.GetObjectValue(Confirmation.CreateFromDiscriminatorValue); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"email_verified", n => { EmailVerified = n.GetBoolValue(); } }, - {"exp", n => { Exp = n.GetLongValue(); } }, - {"family_name", n => { FamilyName = n.GetStringValue(); } }, - {"gender", n => { Gender = n.GetStringValue(); } }, - {"given_name", n => { GivenName = n.GetStringValue(); } }, - {"iat", n => { Iat = n.GetLongValue(); } }, - {"iss", n => { Iss = n.GetStringValue(); } }, - {"jti", n => { Jti = n.GetStringValue(); } }, - {"locale", n => { Locale = n.GetStringValue(); } }, - {"middle_name", n => { MiddleName = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"nbf", n => { Nbf = n.GetLongValue(); } }, - {"nickname", n => { Nickname = n.GetStringValue(); } }, - {"nonce", n => { Nonce = n.GetStringValue(); } }, - {"otherClaims", n => { OtherClaims = n.GetObjectValue(AccessToken_otherClaims.CreateFromDiscriminatorValue); } }, - {"phone_number", n => { PhoneNumber = n.GetStringValue(); } }, - {"phone_number_verified", n => { PhoneNumberVerified = n.GetBoolValue(); } }, - {"picture", n => { Picture = n.GetStringValue(); } }, - {"preferred_username", n => { PreferredUsername = n.GetStringValue(); } }, - {"profile", n => { Profile = n.GetStringValue(); } }, - {"realm_access", n => { RealmAccess = n.GetObjectValue(Access.CreateFromDiscriminatorValue); } }, - {"resource_access", n => { ResourceAccess = n.GetObjectValue(AccessToken_resource_access.CreateFromDiscriminatorValue); } }, - {"s_hash", n => { SHash = n.GetStringValue(); } }, - {"scope", n => { Scope = n.GetStringValue(); } }, - {"session_state", n => { SessionState = n.GetStringValue(); } }, - {"sid", n => { Sid = n.GetStringValue(); } }, - {"sub", n => { Sub = n.GetStringValue(); } }, - {"trusted-certs", n => { TrustedCerts = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"typ", n => { Typ = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, - {"website", n => { Website = n.GetStringValue(); } }, - {"zoneinfo", n => { Zoneinfo = n.GetStringValue(); } }, - {"auth_time", n => { Auth_time = n.GetLongValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "acr", n => { Acr = n.GetStringValue(); } }, + { "address", n => { Address = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet.CreateFromDiscriminatorValue); } }, + { "allowed-origins", n => { AllowedOrigins = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "at_hash", n => { AtHash = n.GetStringValue(); } }, + { "auth_time", n => { AuthTime = n.GetLongValue(); } }, + { "authorization", n => { Authorization = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Authorization.CreateFromDiscriminatorValue); } }, + { "azp", n => { Azp = n.GetStringValue(); } }, + { "birthdate", n => { Birthdate = n.GetStringValue(); } }, + { "c_hash", n => { CHash = n.GetStringValue(); } }, + { "claims_locales", n => { ClaimsLocales = n.GetStringValue(); } }, + { "cnf", n => { Cnf = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Confirmation.CreateFromDiscriminatorValue); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "email_verified", n => { EmailVerified = n.GetBoolValue(); } }, + { "exp", n => { Exp = n.GetLongValue(); } }, + { "family_name", n => { FamilyName = n.GetStringValue(); } }, + { "gender", n => { Gender = n.GetStringValue(); } }, + { "given_name", n => { GivenName = n.GetStringValue(); } }, + { "iat", n => { Iat = n.GetLongValue(); } }, + { "iss", n => { Iss = n.GetStringValue(); } }, + { "jti", n => { Jti = n.GetStringValue(); } }, + { "locale", n => { Locale = n.GetStringValue(); } }, + { "middle_name", n => { MiddleName = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "nbf", n => { Nbf = n.GetLongValue(); } }, + { "nickname", n => { Nickname = n.GetStringValue(); } }, + { "nonce", n => { Nonce = n.GetStringValue(); } }, + { "otherClaims", n => { OtherClaims = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_otherClaims.CreateFromDiscriminatorValue); } }, + { "phone_number", n => { PhoneNumber = n.GetStringValue(); } }, + { "phone_number_verified", n => { PhoneNumberVerified = n.GetBoolValue(); } }, + { "picture", n => { Picture = n.GetStringValue(); } }, + { "preferred_username", n => { PreferredUsername = n.GetStringValue(); } }, + { "profile", n => { Profile = n.GetStringValue(); } }, + { "realm_access", n => { RealmAccess = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Access.CreateFromDiscriminatorValue); } }, + { "resource_access", n => { ResourceAccess = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_resource_access.CreateFromDiscriminatorValue); } }, + { "s_hash", n => { SHash = n.GetStringValue(); } }, + { "scope", n => { Scope = n.GetStringValue(); } }, + { "sid", n => { Sid = n.GetStringValue(); } }, + { "sub", n => { Sub = n.GetStringValue(); } }, + { "trusted-certs", n => { TrustedCerts = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "typ", n => { Typ = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "website", n => { Website = n.GetStringValue(); } }, + { "zoneinfo", n => { Zoneinfo = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("acr", Acr); - writer.WriteObjectValue("address", Address); + writer.WriteObjectValue("address", Address); writer.WriteCollectionOfPrimitiveValues("allowed-origins", AllowedOrigins); writer.WriteStringValue("at_hash", AtHash); - writer.WriteLongValue("auth_time", Auth_time); - writer.WriteObjectValue("authorization", Authorization); - writer.WriteIntValue("authTime", AuthTime); + writer.WriteObjectValue("authorization", Authorization); + writer.WriteLongValue("auth_time", AuthTime); writer.WriteStringValue("azp", Azp); writer.WriteStringValue("birthdate", Birthdate); writer.WriteStringValue("c_hash", CHash); writer.WriteStringValue("claims_locales", ClaimsLocales); - writer.WriteObjectValue("cnf", Cnf); + writer.WriteObjectValue("cnf", Cnf); writer.WriteStringValue("email", Email); writer.WriteBoolValue("email_verified", EmailVerified); writer.WriteLongValue("exp", Exp); @@ -422,16 +418,15 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteLongValue("nbf", Nbf); writer.WriteStringValue("nickname", Nickname); writer.WriteStringValue("nonce", Nonce); - writer.WriteObjectValue("otherClaims", OtherClaims); + writer.WriteObjectValue("otherClaims", OtherClaims); writer.WriteStringValue("phone_number", PhoneNumber); writer.WriteBoolValue("phone_number_verified", PhoneNumberVerified); writer.WriteStringValue("picture", Picture); writer.WriteStringValue("preferred_username", PreferredUsername); writer.WriteStringValue("profile", Profile); - writer.WriteObjectValue("realm_access", RealmAccess); - writer.WriteObjectValue("resource_access", ResourceAccess); + writer.WriteObjectValue("realm_access", RealmAccess); + writer.WriteObjectValue("resource_access", ResourceAccess); writer.WriteStringValue("scope", Scope); - writer.WriteStringValue("session_state", SessionState); writer.WriteStringValue("s_hash", SHash); writer.WriteStringValue("sid", Sid); writer.WriteStringValue("sub", Sub); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_otherClaims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_otherClaims.cs index 00e4c680..2be3519b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_otherClaims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_otherClaims.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AccessToken_otherClaims : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AccessToken_otherClaims : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AccessToken_otherClaims() { + public AccessToken_otherClaims() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AccessToken_otherClaims CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_otherClaims CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AccessToken_otherClaims(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_otherClaims(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_resource_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_resource_access.cs index 61fe1168..57f449c6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_resource_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_resource_access.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AccessToken_resource_access : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AccessToken_resource_access : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AccessToken_resource_access() { + public AccessToken_resource_access() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AccessToken_resource_access CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_resource_access CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AccessToken_resource_access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_resource_access(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AddressClaimSet.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AddressClaimSet.cs index 36fa54a0..423fb509 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AddressClaimSet.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AddressClaimSet.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AddressClaimSet : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AddressClaimSet : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The country property @@ -57,39 +62,44 @@ public class AddressClaimSet : IAdditionalDataHolder, IParsable { public string StreetAddress { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AddressClaimSet() { + public AddressClaimSet() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AddressClaimSet CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddressClaimSet(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"country", n => { Country = n.GetStringValue(); } }, - {"formatted", n => { Formatted = n.GetStringValue(); } }, - {"locality", n => { Locality = n.GetStringValue(); } }, - {"postal_code", n => { PostalCode = n.GetStringValue(); } }, - {"region", n => { Region = n.GetStringValue(); } }, - {"street_address", n => { StreetAddress = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "country", n => { Country = n.GetStringValue(); } }, + { "formatted", n => { Formatted = n.GetStringValue(); } }, + { "locality", n => { Locality = n.GetStringValue(); } }, + { "postal_code", n => { PostalCode = n.GetStringValue(); } }, + { "region", n => { Region = n.GetStringValue(); } }, + { "street_address", n => { StreetAddress = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("country", Country); writer.WriteStringValue("formatted", Formatted); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AdminEventRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AdminEventRepresentation.cs index 623e5695..5dde3cd7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AdminEventRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AdminEventRepresentation.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AdminEventRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AdminEventRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The authDetails property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AuthDetailsRepresentation? AuthDetails { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthDetailsRepresentation? AuthDetails { get; set; } #nullable restore #else - public AuthDetailsRepresentation AuthDetails { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthDetailsRepresentation AuthDetails { get; set; } #endif /// The error property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -67,43 +72,48 @@ public class AdminEventRepresentation : IAdditionalDataHolder, IParsable { /// The time property public long? Time { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AdminEventRepresentation() { + public AdminEventRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AdminEventRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AdminEventRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AdminEventRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AdminEventRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"authDetails", n => { AuthDetails = n.GetObjectValue(AuthDetailsRepresentation.CreateFromDiscriminatorValue); } }, - {"error", n => { Error = n.GetStringValue(); } }, - {"operationType", n => { OperationType = n.GetStringValue(); } }, - {"realmId", n => { RealmId = n.GetStringValue(); } }, - {"representation", n => { Representation = n.GetStringValue(); } }, - {"resourcePath", n => { ResourcePath = n.GetStringValue(); } }, - {"resourceType", n => { ResourceType = n.GetStringValue(); } }, - {"time", n => { Time = n.GetLongValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "authDetails", n => { AuthDetails = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthDetailsRepresentation.CreateFromDiscriminatorValue); } }, + { "error", n => { Error = n.GetStringValue(); } }, + { "operationType", n => { OperationType = n.GetStringValue(); } }, + { "realmId", n => { RealmId = n.GetStringValue(); } }, + { "representation", n => { Representation = n.GetStringValue(); } }, + { "resourcePath", n => { ResourcePath = n.GetStringValue(); } }, + { "resourceType", n => { ResourceType = n.GetStringValue(); } }, + { "time", n => { Time = n.GetLongValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("authDetails", AuthDetails); + writer.WriteObjectValue("authDetails", AuthDetails); writer.WriteStringValue("error", Error); writer.WriteStringValue("operationType", OperationType); writer.WriteStringValue("realmId", RealmId); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation.cs index 8d16f3f8..bb77d323 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation.cs @@ -1,19 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ [Obsolete("")] - public class ApplicationRepresentation : IAdditionalDataHolder, IParsable { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ApplicationRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The access property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApplicationRepresentation_access? Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_access? Access { get; set; } #nullable restore #else - public ApplicationRepresentation_access Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_access Access { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -30,28 +35,28 @@ public class ApplicationRepresentation : IAdditionalDataHolder, IParsable { /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApplicationRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public ApplicationRepresentation_attributes Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_attributes Attributes { get; set; } #endif /// The authenticationFlowBindingOverrides property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApplicationRepresentation_authenticationFlowBindingOverrides? AuthenticationFlowBindingOverrides { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_authenticationFlowBindingOverrides? AuthenticationFlowBindingOverrides { get; set; } #nullable restore #else - public ApplicationRepresentation_authenticationFlowBindingOverrides AuthenticationFlowBindingOverrides { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_authenticationFlowBindingOverrides AuthenticationFlowBindingOverrides { get; set; } #endif /// The authorizationServicesEnabled property public bool? AuthorizationServicesEnabled { get; set; } /// The authorizationSettings property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ResourceServerRepresentation? AuthorizationSettings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation? AuthorizationSettings { get; set; } #nullable restore #else - public ResourceServerRepresentation AuthorizationSettings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation AuthorizationSettings { get; set; } #endif /// The baseUrl property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -67,10 +72,10 @@ public class ApplicationRepresentation : IAdditionalDataHolder, IParsable { [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApplicationRepresentation_claims? Claims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_claims? Claims { get; set; } #nullable restore #else - public ApplicationRepresentation_claims Claims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_claims Claims { get; set; } #endif /// The clientAuthenticatorType property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -184,10 +189,10 @@ public class ApplicationRepresentation : IAdditionalDataHolder, IParsable { /// The protocolMappers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ProtocolMappers { get; set; } + public List? ProtocolMappers { get; set; } #nullable restore #else - public List ProtocolMappers { get; set; } + public List ProtocolMappers { get; set; } #endif /// The publicClient property public bool? PublicClient { get; set; } @@ -202,10 +207,10 @@ public class ApplicationRepresentation : IAdditionalDataHolder, IParsable { /// The registeredNodes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ApplicationRepresentation_registeredNodes? RegisteredNodes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_registeredNodes? RegisteredNodes { get; set; } #nullable restore #else - public ApplicationRepresentation_registeredNodes RegisteredNodes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_registeredNodes RegisteredNodes { get; set; } #endif /// The registrationAccessToken property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -237,6 +242,14 @@ public class ApplicationRepresentation : IAdditionalDataHolder, IParsable { public bool? StandardFlowEnabled { get; set; } /// The surrogateAuthRequired property public bool? SurrogateAuthRequired { get; set; } + /// The type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Type { get; set; } +#nullable restore +#else + public string Type { get; set; } +#endif /// The useTemplateConfig property [Obsolete("")] public bool? UseTemplateConfig { get; set; } @@ -255,88 +268,94 @@ public class ApplicationRepresentation : IAdditionalDataHolder, IParsable { public List WebOrigins { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ApplicationRepresentation() { + public ApplicationRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ApplicationRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplicationRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"access", n => { Access = n.GetObjectValue(ApplicationRepresentation_access.CreateFromDiscriminatorValue); } }, - {"adminUrl", n => { AdminUrl = n.GetStringValue(); } }, - {"alwaysDisplayInConsole", n => { AlwaysDisplayInConsole = n.GetBoolValue(); } }, - {"attributes", n => { Attributes = n.GetObjectValue(ApplicationRepresentation_attributes.CreateFromDiscriminatorValue); } }, - {"authenticationFlowBindingOverrides", n => { AuthenticationFlowBindingOverrides = n.GetObjectValue(ApplicationRepresentation_authenticationFlowBindingOverrides.CreateFromDiscriminatorValue); } }, - {"authorizationServicesEnabled", n => { AuthorizationServicesEnabled = n.GetBoolValue(); } }, - {"authorizationSettings", n => { AuthorizationSettings = n.GetObjectValue(ResourceServerRepresentation.CreateFromDiscriminatorValue); } }, - {"baseUrl", n => { BaseUrl = n.GetStringValue(); } }, - {"bearerOnly", n => { BearerOnly = n.GetBoolValue(); } }, - {"claims", n => { Claims = n.GetObjectValue(ApplicationRepresentation_claims.CreateFromDiscriminatorValue); } }, - {"clientAuthenticatorType", n => { ClientAuthenticatorType = n.GetStringValue(); } }, - {"clientId", n => { ClientId = n.GetStringValue(); } }, - {"clientTemplate", n => { ClientTemplate = n.GetStringValue(); } }, - {"consentRequired", n => { ConsentRequired = n.GetBoolValue(); } }, - {"defaultClientScopes", n => { DefaultClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"defaultRoles", n => { DefaultRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"directAccessGrantsEnabled", n => { DirectAccessGrantsEnabled = n.GetBoolValue(); } }, - {"directGrantsOnly", n => { DirectGrantsOnly = n.GetBoolValue(); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"frontchannelLogout", n => { FrontchannelLogout = n.GetBoolValue(); } }, - {"fullScopeAllowed", n => { FullScopeAllowed = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"implicitFlowEnabled", n => { ImplicitFlowEnabled = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"nodeReRegistrationTimeout", n => { NodeReRegistrationTimeout = n.GetIntValue(); } }, - {"notBefore", n => { NotBefore = n.GetIntValue(); } }, - {"optionalClientScopes", n => { OptionalClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"origin", n => { Origin = n.GetStringValue(); } }, - {"protocol", n => { Protocol = n.GetStringValue(); } }, - {"protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"publicClient", n => { PublicClient = n.GetBoolValue(); } }, - {"redirectUris", n => { RedirectUris = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"registeredNodes", n => { RegisteredNodes = n.GetObjectValue(ApplicationRepresentation_registeredNodes.CreateFromDiscriminatorValue); } }, - {"registrationAccessToken", n => { RegistrationAccessToken = n.GetStringValue(); } }, - {"rootUrl", n => { RootUrl = n.GetStringValue(); } }, - {"secret", n => { Secret = n.GetStringValue(); } }, - {"serviceAccountsEnabled", n => { ServiceAccountsEnabled = n.GetBoolValue(); } }, - {"standardFlowEnabled", n => { StandardFlowEnabled = n.GetBoolValue(); } }, - {"surrogateAuthRequired", n => { SurrogateAuthRequired = n.GetBoolValue(); } }, - {"useTemplateConfig", n => { UseTemplateConfig = n.GetBoolValue(); } }, - {"useTemplateMappers", n => { UseTemplateMappers = n.GetBoolValue(); } }, - {"useTemplateScope", n => { UseTemplateScope = n.GetBoolValue(); } }, - {"webOrigins", n => { WebOrigins = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "access", n => { Access = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_access.CreateFromDiscriminatorValue); } }, + { "adminUrl", n => { AdminUrl = n.GetStringValue(); } }, + { "alwaysDisplayInConsole", n => { AlwaysDisplayInConsole = n.GetBoolValue(); } }, + { "attributes", n => { Attributes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "authenticationFlowBindingOverrides", n => { AuthenticationFlowBindingOverrides = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_authenticationFlowBindingOverrides.CreateFromDiscriminatorValue); } }, + { "authorizationServicesEnabled", n => { AuthorizationServicesEnabled = n.GetBoolValue(); } }, + { "authorizationSettings", n => { AuthorizationSettings = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation.CreateFromDiscriminatorValue); } }, + { "baseUrl", n => { BaseUrl = n.GetStringValue(); } }, + { "bearerOnly", n => { BearerOnly = n.GetBoolValue(); } }, + { "claims", n => { Claims = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_claims.CreateFromDiscriminatorValue); } }, + { "clientAuthenticatorType", n => { ClientAuthenticatorType = n.GetStringValue(); } }, + { "clientId", n => { ClientId = n.GetStringValue(); } }, + { "clientTemplate", n => { ClientTemplate = n.GetStringValue(); } }, + { "consentRequired", n => { ConsentRequired = n.GetBoolValue(); } }, + { "defaultClientScopes", n => { DefaultClientScopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "defaultRoles", n => { DefaultRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "directAccessGrantsEnabled", n => { DirectAccessGrantsEnabled = n.GetBoolValue(); } }, + { "directGrantsOnly", n => { DirectGrantsOnly = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "frontchannelLogout", n => { FrontchannelLogout = n.GetBoolValue(); } }, + { "fullScopeAllowed", n => { FullScopeAllowed = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "implicitFlowEnabled", n => { ImplicitFlowEnabled = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "nodeReRegistrationTimeout", n => { NodeReRegistrationTimeout = n.GetIntValue(); } }, + { "notBefore", n => { NotBefore = n.GetIntValue(); } }, + { "optionalClientScopes", n => { OptionalClientScopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "origin", n => { Origin = n.GetStringValue(); } }, + { "protocol", n => { Protocol = n.GetStringValue(); } }, + { "protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "publicClient", n => { PublicClient = n.GetBoolValue(); } }, + { "redirectUris", n => { RedirectUris = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "registeredNodes", n => { RegisteredNodes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_registeredNodes.CreateFromDiscriminatorValue); } }, + { "registrationAccessToken", n => { RegistrationAccessToken = n.GetStringValue(); } }, + { "rootUrl", n => { RootUrl = n.GetStringValue(); } }, + { "secret", n => { Secret = n.GetStringValue(); } }, + { "serviceAccountsEnabled", n => { ServiceAccountsEnabled = n.GetBoolValue(); } }, + { "standardFlowEnabled", n => { StandardFlowEnabled = n.GetBoolValue(); } }, + { "surrogateAuthRequired", n => { SurrogateAuthRequired = n.GetBoolValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "useTemplateConfig", n => { UseTemplateConfig = n.GetBoolValue(); } }, + { "useTemplateMappers", n => { UseTemplateMappers = n.GetBoolValue(); } }, + { "useTemplateScope", n => { UseTemplateScope = n.GetBoolValue(); } }, + { "webOrigins", n => { WebOrigins = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("access", Access); + writer.WriteObjectValue("access", Access); writer.WriteStringValue("adminUrl", AdminUrl); writer.WriteBoolValue("alwaysDisplayInConsole", AlwaysDisplayInConsole); - writer.WriteObjectValue("attributes", Attributes); - writer.WriteObjectValue("authenticationFlowBindingOverrides", AuthenticationFlowBindingOverrides); + writer.WriteObjectValue("attributes", Attributes); + writer.WriteObjectValue("authenticationFlowBindingOverrides", AuthenticationFlowBindingOverrides); writer.WriteBoolValue("authorizationServicesEnabled", AuthorizationServicesEnabled); - writer.WriteObjectValue("authorizationSettings", AuthorizationSettings); + writer.WriteObjectValue("authorizationSettings", AuthorizationSettings); writer.WriteStringValue("baseUrl", BaseUrl); writer.WriteBoolValue("bearerOnly", BearerOnly); - writer.WriteObjectValue("claims", Claims); + writer.WriteObjectValue("claims", Claims); writer.WriteStringValue("clientAuthenticatorType", ClientAuthenticatorType); writer.WriteStringValue("clientId", ClientId); writer.WriteStringValue("clientTemplate", ClientTemplate); @@ -357,16 +376,17 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfPrimitiveValues("optionalClientScopes", OptionalClientScopes); writer.WriteStringValue("origin", Origin); writer.WriteStringValue("protocol", Protocol); - writer.WriteCollectionOfObjectValues("protocolMappers", ProtocolMappers); + writer.WriteCollectionOfObjectValues("protocolMappers", ProtocolMappers); writer.WriteBoolValue("publicClient", PublicClient); writer.WriteCollectionOfPrimitiveValues("redirectUris", RedirectUris); - writer.WriteObjectValue("registeredNodes", RegisteredNodes); + writer.WriteObjectValue("registeredNodes", RegisteredNodes); writer.WriteStringValue("registrationAccessToken", RegistrationAccessToken); writer.WriteStringValue("rootUrl", RootUrl); writer.WriteStringValue("secret", Secret); writer.WriteBoolValue("serviceAccountsEnabled", ServiceAccountsEnabled); writer.WriteBoolValue("standardFlowEnabled", StandardFlowEnabled); writer.WriteBoolValue("surrogateAuthRequired", SurrogateAuthRequired); + writer.WriteStringValue("type", Type); writer.WriteBoolValue("useTemplateConfig", UseTemplateConfig); writer.WriteBoolValue("useTemplateMappers", UseTemplateMappers); writer.WriteBoolValue("useTemplateScope", UseTemplateScope); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_access.cs index 05797e99..ef63e8dd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_access.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ApplicationRepresentation_access : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ApplicationRepresentation_access : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ApplicationRepresentation_access() { + public ApplicationRepresentation_access() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ApplicationRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplicationRepresentation_access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_access(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_attributes.cs index 64da48a3..4e063533 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_attributes.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ApplicationRepresentation_attributes : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ApplicationRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ApplicationRepresentation_attributes() { + public ApplicationRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ApplicationRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplicationRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_attributes(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_authenticationFlowBindingOverrides.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_authenticationFlowBindingOverrides.cs index bda8820d..099512cf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_authenticationFlowBindingOverrides.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_authenticationFlowBindingOverrides.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ApplicationRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ApplicationRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ApplicationRepresentation_authenticationFlowBindingOverrides() { + public ApplicationRepresentation_authenticationFlowBindingOverrides() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ApplicationRepresentation_authenticationFlowBindingOverrides CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_authenticationFlowBindingOverrides CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplicationRepresentation_authenticationFlowBindingOverrides(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_authenticationFlowBindingOverrides(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_claims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_claims.cs index 1e4a372c..fe76b5b4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_claims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_claims.cs @@ -1,34 +1,43 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ [Obsolete("")] - public class ApplicationRepresentation_claims : ClaimRepresentation, IParsable { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ApplicationRepresentation_claims : global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClaimRepresentation, IParsable + #pragma warning restore CS1591 + { /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new ApplicationRepresentation_claims CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_claims CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplicationRepresentation_claims(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_claims(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public override IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public override void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_registeredNodes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_registeredNodes.cs index 8eef3d75..7e9eebe8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_registeredNodes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_registeredNodes.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ApplicationRepresentation_registeredNodes : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ApplicationRepresentation_registeredNodes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ApplicationRepresentation_registeredNodes() { + public ApplicationRepresentation_registeredNodes() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ApplicationRepresentation_registeredNodes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_registeredNodes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ApplicationRepresentation_registeredNodes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_registeredNodes(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthDetailsRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthDetailsRepresentation.cs index 7d398287..7b9be933 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthDetailsRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthDetailsRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthDetailsRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AuthDetailsRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The clientId property @@ -41,37 +46,42 @@ public class AuthDetailsRepresentation : IAdditionalDataHolder, IParsable { public string UserId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AuthDetailsRepresentation() { + public AuthDetailsRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuthDetailsRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthDetailsRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuthDetailsRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthDetailsRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"clientId", n => { ClientId = n.GetStringValue(); } }, - {"ipAddress", n => { IpAddress = n.GetStringValue(); } }, - {"realmId", n => { RealmId = n.GetStringValue(); } }, - {"userId", n => { UserId = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "clientId", n => { ClientId = n.GetStringValue(); } }, + { "ipAddress", n => { IpAddress = n.GetStringValue(); } }, + { "realmId", n => { RealmId = n.GetStringValue(); } }, + { "userId", n => { UserId = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientId", ClientId); writer.WriteStringValue("ipAddress", IpAddress); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionExportRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionExportRepresentation.cs index 9d460983..c6c6913b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionExportRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionExportRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthenticationExecutionExportRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AuthenticationExecutionExportRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The authenticator property @@ -50,41 +55,46 @@ public class AuthenticationExecutionExportRepresentation : IAdditionalDataHolder /// The userSetupAllowed property public bool? UserSetupAllowed { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AuthenticationExecutionExportRepresentation() { + public AuthenticationExecutionExportRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticationExecutionExportRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionExportRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuthenticationExecutionExportRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionExportRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"authenticator", n => { Authenticator = n.GetStringValue(); } }, - {"authenticatorConfig", n => { AuthenticatorConfig = n.GetStringValue(); } }, - {"authenticatorFlow", n => { AuthenticatorFlow = n.GetBoolValue(); } }, - {"autheticatorFlow", n => { AutheticatorFlow = n.GetBoolValue(); } }, - {"flowAlias", n => { FlowAlias = n.GetStringValue(); } }, - {"priority", n => { Priority = n.GetIntValue(); } }, - {"requirement", n => { Requirement = n.GetStringValue(); } }, - {"userSetupAllowed", n => { UserSetupAllowed = n.GetBoolValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "authenticator", n => { Authenticator = n.GetStringValue(); } }, + { "authenticatorConfig", n => { AuthenticatorConfig = n.GetStringValue(); } }, + { "authenticatorFlow", n => { AuthenticatorFlow = n.GetBoolValue(); } }, + { "autheticatorFlow", n => { AutheticatorFlow = n.GetBoolValue(); } }, + { "flowAlias", n => { FlowAlias = n.GetStringValue(); } }, + { "priority", n => { Priority = n.GetIntValue(); } }, + { "requirement", n => { Requirement = n.GetStringValue(); } }, + { "userSetupAllowed", n => { UserSetupAllowed = n.GetBoolValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("authenticator", Authenticator); writer.WriteStringValue("authenticatorConfig", AuthenticatorConfig); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionInfoRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionInfoRepresentation.cs index c0203552..4275f535 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionInfoRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionInfoRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthenticationExecutionInfoRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AuthenticationExecutionInfoRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The alias property @@ -64,6 +69,8 @@ public class AuthenticationExecutionInfoRepresentation : IAdditionalDataHolder, public int? Index { get; set; } /// The level property public int? Level { get; set; } + /// The priority property + public int? Priority { get; set; } /// The providerId property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -89,46 +96,52 @@ public class AuthenticationExecutionInfoRepresentation : IAdditionalDataHolder, public List RequirementChoices { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AuthenticationExecutionInfoRepresentation() { + public AuthenticationExecutionInfoRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticationExecutionInfoRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionInfoRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuthenticationExecutionInfoRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionInfoRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"alias", n => { Alias = n.GetStringValue(); } }, - {"authenticationConfig", n => { AuthenticationConfig = n.GetStringValue(); } }, - {"authenticationFlow", n => { AuthenticationFlow = n.GetBoolValue(); } }, - {"configurable", n => { Configurable = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"flowId", n => { FlowId = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"index", n => { Index = n.GetIntValue(); } }, - {"level", n => { Level = n.GetIntValue(); } }, - {"providerId", n => { ProviderId = n.GetStringValue(); } }, - {"requirement", n => { Requirement = n.GetStringValue(); } }, - {"requirementChoices", n => { RequirementChoices = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "alias", n => { Alias = n.GetStringValue(); } }, + { "authenticationConfig", n => { AuthenticationConfig = n.GetStringValue(); } }, + { "authenticationFlow", n => { AuthenticationFlow = n.GetBoolValue(); } }, + { "configurable", n => { Configurable = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "flowId", n => { FlowId = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "index", n => { Index = n.GetIntValue(); } }, + { "level", n => { Level = n.GetIntValue(); } }, + { "priority", n => { Priority = n.GetIntValue(); } }, + { "providerId", n => { ProviderId = n.GetStringValue(); } }, + { "requirement", n => { Requirement = n.GetStringValue(); } }, + { "requirementChoices", n => { RequirementChoices = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("alias", Alias); writer.WriteStringValue("authenticationConfig", AuthenticationConfig); @@ -140,6 +153,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteStringValue("id", Id); writer.WriteIntValue("index", Index); writer.WriteIntValue("level", Level); + writer.WriteIntValue("priority", Priority); writer.WriteStringValue("providerId", ProviderId); writer.WriteStringValue("requirement", Requirement); writer.WriteCollectionOfPrimitiveValues("requirementChoices", RequirementChoices); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionRepresentation.cs index bc58283f..bd90a331 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthenticationExecutionRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AuthenticationExecutionRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The authenticator property @@ -64,42 +69,47 @@ public class AuthenticationExecutionRepresentation : IAdditionalDataHolder, IPar public string Requirement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AuthenticationExecutionRepresentation() { + public AuthenticationExecutionRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticationExecutionRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuthenticationExecutionRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"authenticator", n => { Authenticator = n.GetStringValue(); } }, - {"authenticatorConfig", n => { AuthenticatorConfig = n.GetStringValue(); } }, - {"authenticatorFlow", n => { AuthenticatorFlow = n.GetBoolValue(); } }, - {"autheticatorFlow", n => { AutheticatorFlow = n.GetBoolValue(); } }, - {"flowId", n => { FlowId = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"parentFlow", n => { ParentFlow = n.GetStringValue(); } }, - {"priority", n => { Priority = n.GetIntValue(); } }, - {"requirement", n => { Requirement = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "authenticator", n => { Authenticator = n.GetStringValue(); } }, + { "authenticatorConfig", n => { AuthenticatorConfig = n.GetStringValue(); } }, + { "authenticatorFlow", n => { AuthenticatorFlow = n.GetBoolValue(); } }, + { "autheticatorFlow", n => { AutheticatorFlow = n.GetBoolValue(); } }, + { "flowId", n => { FlowId = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "parentFlow", n => { ParentFlow = n.GetStringValue(); } }, + { "priority", n => { Priority = n.GetIntValue(); } }, + { "requirement", n => { Requirement = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("authenticator", Authenticator); writer.WriteStringValue("authenticatorConfig", AuthenticatorConfig); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationFlowRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationFlowRepresentation.cs index 56a2434e..1cefa609 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationFlowRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationFlowRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthenticationFlowRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AuthenticationFlowRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The alias property @@ -19,10 +24,10 @@ public class AuthenticationFlowRepresentation : IAdditionalDataHolder, IParsable /// The authenticationExecutions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? AuthenticationExecutions { get; set; } + public List? AuthenticationExecutions { get; set; } #nullable restore #else - public List AuthenticationExecutions { get; set; } + public List AuthenticationExecutions { get; set; } #endif /// The builtIn property public bool? BuiltIn { get; set; } @@ -53,43 +58,48 @@ public class AuthenticationFlowRepresentation : IAdditionalDataHolder, IParsable /// The topLevel property public bool? TopLevel { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AuthenticationFlowRepresentation() { + public AuthenticationFlowRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticationFlowRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuthenticationFlowRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"alias", n => { Alias = n.GetStringValue(); } }, - {"authenticationExecutions", n => { AuthenticationExecutions = n.GetCollectionOfObjectValues(AuthenticationExecutionExportRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"builtIn", n => { BuiltIn = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"providerId", n => { ProviderId = n.GetStringValue(); } }, - {"topLevel", n => { TopLevel = n.GetBoolValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "alias", n => { Alias = n.GetStringValue(); } }, + { "authenticationExecutions", n => { AuthenticationExecutions = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionExportRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "builtIn", n => { BuiltIn = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "providerId", n => { ProviderId = n.GetStringValue(); } }, + { "topLevel", n => { TopLevel = n.GetBoolValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("alias", Alias); - writer.WriteCollectionOfObjectValues("authenticationExecutions", AuthenticationExecutions); + writer.WriteCollectionOfObjectValues("authenticationExecutions", AuthenticationExecutions); writer.WriteBoolValue("builtIn", BuiltIn); writer.WriteStringValue("description", Description); writer.WriteStringValue("id", Id); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigInfoRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigInfoRepresentation.cs index 11fdd8ad..408a8ad0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigInfoRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigInfoRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthenticatorConfigInfoRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AuthenticatorConfigInfoRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The helpText property @@ -27,10 +32,10 @@ public class AuthenticatorConfigInfoRepresentation : IAdditionalDataHolder, IPar /// The properties property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Properties { get; set; } + public List? Properties { get; set; } #nullable restore #else - public List Properties { get; set; } + public List Properties { get; set; } #endif /// The providerId property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -41,41 +46,46 @@ public class AuthenticatorConfigInfoRepresentation : IAdditionalDataHolder, IPar public string ProviderId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AuthenticatorConfigInfoRepresentation() { + public AuthenticatorConfigInfoRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticatorConfigInfoRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigInfoRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuthenticatorConfigInfoRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigInfoRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"helpText", n => { HelpText = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"properties", n => { Properties = n.GetCollectionOfObjectValues(ConfigPropertyRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"providerId", n => { ProviderId = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "helpText", n => { HelpText = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "properties", n => { Properties = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ConfigPropertyRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "providerId", n => { ProviderId = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("helpText", HelpText); writer.WriteStringValue("name", Name); - writer.WriteCollectionOfObjectValues("properties", Properties); + writer.WriteCollectionOfObjectValues("properties", Properties); writer.WriteStringValue("providerId", ProviderId); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation.cs index 63823a22..38e6342f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthenticatorConfigRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AuthenticatorConfigRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The alias property @@ -19,10 +24,10 @@ public class AuthenticatorConfigRepresentation : IAdditionalDataHolder, IParsabl /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AuthenticatorConfigRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation_config? Config { get; set; } #nullable restore #else - public AuthenticatorConfigRepresentation_config Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation_config Config { get; set; } #endif /// The id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -33,39 +38,44 @@ public class AuthenticatorConfigRepresentation : IAdditionalDataHolder, IParsabl public string Id { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AuthenticatorConfigRepresentation() { + public AuthenticatorConfigRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticatorConfigRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuthenticatorConfigRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"alias", n => { Alias = n.GetStringValue(); } }, - {"config", n => { Config = n.GetObjectValue(AuthenticatorConfigRepresentation_config.CreateFromDiscriminatorValue); } }, - {"id", n => { Id = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "alias", n => { Alias = n.GetStringValue(); } }, + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation_config.CreateFromDiscriminatorValue); } }, + { "id", n => { Id = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("alias", Alias); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteStringValue("id", Id); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation_config.cs index 62e0a75f..755792d6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation_config.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class AuthenticatorConfigRepresentation_config : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class AuthenticatorConfigRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public AuthenticatorConfigRepresentation_config() { + public AuthenticatorConfigRepresentation_config() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AuthenticatorConfigRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AuthenticatorConfigRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation_config(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Authorization.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Authorization.cs index a2da1a01..abc726cf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Authorization.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Authorization.cs @@ -1,52 +1,62 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class Authorization : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Authorization : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Permissions { get; set; } + public List? Permissions { get; set; } #nullable restore #else - public List Permissions { get; set; } + public List Permissions { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public Authorization() { + public Authorization() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Authorization CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Authorization CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Authorization(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Authorization(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"permissions", n => { Permissions = n.GetCollectionOfObjectValues(Permission.CreateFromDiscriminatorValue)?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "permissions", n => { Permissions = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("permissions", Permissions); + writer.WriteCollectionOfObjectValues("permissions", Permissions); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CertificateRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CertificateRepresentation.cs index 9c1bb214..6ee49e5a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CertificateRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CertificateRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class CertificateRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class CertificateRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The certificate property @@ -41,37 +46,42 @@ public class CertificateRepresentation : IAdditionalDataHolder, IParsable { public string PublicKey { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public CertificateRepresentation() { + public CertificateRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CertificateRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CertificateRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CertificateRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CertificateRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"certificate", n => { Certificate = n.GetStringValue(); } }, - {"kid", n => { Kid = n.GetStringValue(); } }, - {"privateKey", n => { PrivateKey = n.GetStringValue(); } }, - {"publicKey", n => { PublicKey = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "certificate", n => { Certificate = n.GetStringValue(); } }, + { "kid", n => { Kid = n.GetStringValue(); } }, + { "privateKey", n => { PrivateKey = n.GetStringValue(); } }, + { "publicKey", n => { PublicKey = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("certificate", Certificate); writer.WriteStringValue("kid", Kid); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClaimRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClaimRepresentation.cs index f83a3504..c0642950 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClaimRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClaimRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClaimRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClaimRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The address property @@ -29,43 +34,48 @@ public class ClaimRepresentation : IAdditionalDataHolder, IParsable { /// The website property public bool? Website { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClaimRepresentation() { + public ClaimRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClaimRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClaimRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClaimRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClaimRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"address", n => { Address = n.GetBoolValue(); } }, - {"email", n => { Email = n.GetBoolValue(); } }, - {"gender", n => { Gender = n.GetBoolValue(); } }, - {"locale", n => { Locale = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetBoolValue(); } }, - {"phone", n => { Phone = n.GetBoolValue(); } }, - {"picture", n => { Picture = n.GetBoolValue(); } }, - {"profile", n => { Profile = n.GetBoolValue(); } }, - {"username", n => { Username = n.GetBoolValue(); } }, - {"website", n => { Website = n.GetBoolValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "address", n => { Address = n.GetBoolValue(); } }, + { "email", n => { Email = n.GetBoolValue(); } }, + { "gender", n => { Gender = n.GetBoolValue(); } }, + { "locale", n => { Locale = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetBoolValue(); } }, + { "phone", n => { Phone = n.GetBoolValue(); } }, + { "picture", n => { Picture = n.GetBoolValue(); } }, + { "profile", n => { Profile = n.GetBoolValue(); } }, + { "username", n => { Username = n.GetBoolValue(); } }, + { "website", n => { Website = n.GetBoolValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("address", Address); writer.WriteBoolValue("email", Email); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessCreatePresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessCreatePresentation.cs index 9d7d4efc..edc7e59e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessCreatePresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessCreatePresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientInitialAccessCreatePresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientInitialAccessCreatePresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The count property @@ -13,35 +18,40 @@ public class ClientInitialAccessCreatePresentation : IAdditionalDataHolder, IPar /// The expiration property public int? Expiration { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientInitialAccessCreatePresentation() { + public ClientInitialAccessCreatePresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientInitialAccessCreatePresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessCreatePresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientInitialAccessCreatePresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessCreatePresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"count", n => { Count = n.GetIntValue(); } }, - {"expiration", n => { Expiration = n.GetIntValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "count", n => { Count = n.GetIntValue(); } }, + { "expiration", n => { Expiration = n.GetIntValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("count", Count); writer.WriteIntValue("expiration", Expiration); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessPresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessPresentation.cs index e0b08d88..e9374a7a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessPresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessPresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientInitialAccessPresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientInitialAccessPresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The count property @@ -33,39 +38,44 @@ public class ClientInitialAccessPresentation : IAdditionalDataHolder, IParsable public string Token { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientInitialAccessPresentation() { + public ClientInitialAccessPresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientInitialAccessPresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessPresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientInitialAccessPresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessPresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"count", n => { Count = n.GetIntValue(); } }, - {"expiration", n => { Expiration = n.GetIntValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"remainingCount", n => { RemainingCount = n.GetIntValue(); } }, - {"timestamp", n => { Timestamp = n.GetIntValue(); } }, - {"token", n => { Token = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "count", n => { Count = n.GetIntValue(); } }, + { "expiration", n => { Expiration = n.GetIntValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "remainingCount", n => { RemainingCount = n.GetIntValue(); } }, + { "timestamp", n => { Timestamp = n.GetIntValue(); } }, + { "token", n => { Token = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("count", Count); writer.WriteIntValue("expiration", Expiration); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPoliciesRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPoliciesRepresentation.cs index 9249d4ff..750974dc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPoliciesRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPoliciesRepresentation.cs @@ -1,52 +1,72 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientPoliciesRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientPoliciesRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// The globalPolicies property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? GlobalPolicies { get; set; } +#nullable restore +#else + public List GlobalPolicies { get; set; } +#endif /// The policies property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Policies { get; set; } + public List? Policies { get; set; } #nullable restore #else - public List Policies { get; set; } + public List Policies { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientPoliciesRepresentation() { + public ClientPoliciesRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientPoliciesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientPoliciesRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"policies", n => { Policies = n.GetCollectionOfObjectValues(ClientPolicyRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "globalPolicies", n => { GlobalPolicies = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "policies", n => { Policies = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("policies", Policies); + writer.WriteCollectionOfObjectValues("globalPolicies", GlobalPolicies); + writer.WriteCollectionOfObjectValues("policies", Policies); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyConditionRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyConditionRepresentation.cs index 596b6013..af1c9f33 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyConditionRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyConditionRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientPolicyConditionRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientPolicyConditionRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The condition property @@ -15,38 +20,53 @@ public class ClientPolicyConditionRepresentation : IAdditionalDataHolder, IParsa #nullable restore #else public string Condition { get; set; } +#endif + /// The configuration property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public UntypedNode? Configuration { get; set; } +#nullable restore +#else + public UntypedNode Configuration { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientPolicyConditionRepresentation() { + public ClientPolicyConditionRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientPolicyConditionRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyConditionRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientPolicyConditionRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyConditionRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"condition", n => { Condition = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "condition", n => { Condition = n.GetStringValue(); } }, + { "configuration", n => { Configuration = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("condition", Condition); + writer.WriteObjectValue("configuration", Configuration); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyExecutorRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyExecutorRepresentation.cs index 6165074c..fb72bd76 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyExecutorRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyExecutorRepresentation.cs @@ -1,13 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientPolicyExecutorRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientPolicyExecutorRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// The configuration property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public UntypedNode? Configuration { get; set; } +#nullable restore +#else + public UntypedNode Configuration { get; set; } +#endif /// The executor property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -17,35 +30,42 @@ public class ClientPolicyExecutorRepresentation : IAdditionalDataHolder, IParsab public string Executor { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientPolicyExecutorRepresentation() { + public ClientPolicyExecutorRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientPolicyExecutorRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyExecutorRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientPolicyExecutorRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyExecutorRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"executor", n => { Executor = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "configuration", n => { Configuration = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "executor", n => { Executor = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("configuration", Configuration); writer.WriteStringValue("executor", Executor); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyRepresentation.cs index 76991d53..7a7574ac 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyRepresentation.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientPolicyRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientPolicyRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The conditions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Conditions { get; set; } + public List? Conditions { get; set; } #nullable restore #else - public List Conditions { get; set; } + public List Conditions { get; set; } #endif /// The description property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -43,40 +48,45 @@ public class ClientPolicyRepresentation : IAdditionalDataHolder, IParsable { public List Profiles { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientPolicyRepresentation() { + public ClientPolicyRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientPolicyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientPolicyRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"conditions", n => { Conditions = n.GetCollectionOfObjectValues(ClientPolicyConditionRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"profiles", n => { Profiles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "conditions", n => { Conditions = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyConditionRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "profiles", n => { Profiles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("conditions", Conditions); + writer.WriteCollectionOfObjectValues("conditions", Conditions); writer.WriteStringValue("description", Description); writer.WriteBoolValue("enabled", Enabled); writer.WriteStringValue("name", Name); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfileRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfileRepresentation.cs index d6311426..831a3561 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfileRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfileRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientProfileRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientProfileRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The description property @@ -19,10 +24,10 @@ public class ClientProfileRepresentation : IAdditionalDataHolder, IParsable { /// The executors property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Executors { get; set; } + public List? Executors { get; set; } #nullable restore #else - public List Executors { get; set; } + public List Executors { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -33,39 +38,44 @@ public class ClientProfileRepresentation : IAdditionalDataHolder, IParsable { public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientProfileRepresentation() { + public ClientProfileRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientProfileRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfileRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientProfileRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfileRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"executors", n => { Executors = n.GetCollectionOfObjectValues(ClientPolicyExecutorRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "description", n => { Description = n.GetStringValue(); } }, + { "executors", n => { Executors = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyExecutorRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); - writer.WriteCollectionOfObjectValues("executors", Executors); + writer.WriteCollectionOfObjectValues("executors", Executors); writer.WriteStringValue("name", Name); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfilesRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfilesRepresentation.cs index 07594bf3..9d9c70d4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfilesRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfilesRepresentation.cs @@ -1,62 +1,72 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientProfilesRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientProfilesRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The globalProfiles property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? GlobalProfiles { get; set; } + public List? GlobalProfiles { get; set; } #nullable restore #else - public List GlobalProfiles { get; set; } + public List GlobalProfiles { get; set; } #endif /// The profiles property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Profiles { get; set; } + public List? Profiles { get; set; } #nullable restore #else - public List Profiles { get; set; } + public List Profiles { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientProfilesRepresentation() { + public ClientProfilesRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientProfilesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientProfilesRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"globalProfiles", n => { GlobalProfiles = n.GetCollectionOfObjectValues(ClientProfileRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"profiles", n => { Profiles = n.GetCollectionOfObjectValues(ClientProfileRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "globalProfiles", n => { GlobalProfiles = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfileRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "profiles", n => { Profiles = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfileRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("globalProfiles", GlobalProfiles); - writer.WriteCollectionOfObjectValues("profiles", Profiles); + writer.WriteCollectionOfObjectValues("globalProfiles", GlobalProfiles); + writer.WriteCollectionOfObjectValues("profiles", Profiles); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation.cs index 0ff6e82a..57417e20 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation.cs @@ -1,18 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The access property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ClientRepresentation_access? Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_access? Access { get; set; } #nullable restore #else - public ClientRepresentation_access Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_access Access { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -29,28 +34,28 @@ public class ClientRepresentation : IAdditionalDataHolder, IParsable { /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ClientRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public ClientRepresentation_attributes Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_attributes Attributes { get; set; } #endif /// The authenticationFlowBindingOverrides property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ClientRepresentation_authenticationFlowBindingOverrides? AuthenticationFlowBindingOverrides { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_authenticationFlowBindingOverrides? AuthenticationFlowBindingOverrides { get; set; } #nullable restore #else - public ClientRepresentation_authenticationFlowBindingOverrides AuthenticationFlowBindingOverrides { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_authenticationFlowBindingOverrides AuthenticationFlowBindingOverrides { get; set; } #endif /// The authorizationServicesEnabled property public bool? AuthorizationServicesEnabled { get; set; } /// The authorizationSettings property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ResourceServerRepresentation? AuthorizationSettings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation? AuthorizationSettings { get; set; } #nullable restore #else - public ResourceServerRepresentation AuthorizationSettings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation AuthorizationSettings { get; set; } #endif /// The baseUrl property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -174,10 +179,10 @@ public class ClientRepresentation : IAdditionalDataHolder, IParsable { /// The protocolMappers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ProtocolMappers { get; set; } + public List? ProtocolMappers { get; set; } #nullable restore #else - public List ProtocolMappers { get; set; } + public List ProtocolMappers { get; set; } #endif /// The publicClient property public bool? PublicClient { get; set; } @@ -192,10 +197,10 @@ public class ClientRepresentation : IAdditionalDataHolder, IParsable { /// The registeredNodes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ClientRepresentation_registeredNodes? RegisteredNodes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_registeredNodes? RegisteredNodes { get; set; } #nullable restore #else - public ClientRepresentation_registeredNodes RegisteredNodes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_registeredNodes RegisteredNodes { get; set; } #endif /// The registrationAccessToken property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -227,6 +232,14 @@ public class ClientRepresentation : IAdditionalDataHolder, IParsable { public bool? StandardFlowEnabled { get; set; } /// The surrogateAuthRequired property public bool? SurrogateAuthRequired { get; set; } + /// The type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Type { get; set; } +#nullable restore +#else + public string Type { get; set; } +#endif /// The useTemplateConfig property [Obsolete("")] public bool? UseTemplateConfig { get; set; } @@ -245,84 +258,90 @@ public class ClientRepresentation : IAdditionalDataHolder, IParsable { public List WebOrigins { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientRepresentation() { + public ClientRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"access", n => { Access = n.GetObjectValue(ClientRepresentation_access.CreateFromDiscriminatorValue); } }, - {"adminUrl", n => { AdminUrl = n.GetStringValue(); } }, - {"alwaysDisplayInConsole", n => { AlwaysDisplayInConsole = n.GetBoolValue(); } }, - {"attributes", n => { Attributes = n.GetObjectValue(ClientRepresentation_attributes.CreateFromDiscriminatorValue); } }, - {"authenticationFlowBindingOverrides", n => { AuthenticationFlowBindingOverrides = n.GetObjectValue(ClientRepresentation_authenticationFlowBindingOverrides.CreateFromDiscriminatorValue); } }, - {"authorizationServicesEnabled", n => { AuthorizationServicesEnabled = n.GetBoolValue(); } }, - {"authorizationSettings", n => { AuthorizationSettings = n.GetObjectValue(ResourceServerRepresentation.CreateFromDiscriminatorValue); } }, - {"baseUrl", n => { BaseUrl = n.GetStringValue(); } }, - {"bearerOnly", n => { BearerOnly = n.GetBoolValue(); } }, - {"clientAuthenticatorType", n => { ClientAuthenticatorType = n.GetStringValue(); } }, - {"clientId", n => { ClientId = n.GetStringValue(); } }, - {"clientTemplate", n => { ClientTemplate = n.GetStringValue(); } }, - {"consentRequired", n => { ConsentRequired = n.GetBoolValue(); } }, - {"defaultClientScopes", n => { DefaultClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"defaultRoles", n => { DefaultRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"directAccessGrantsEnabled", n => { DirectAccessGrantsEnabled = n.GetBoolValue(); } }, - {"directGrantsOnly", n => { DirectGrantsOnly = n.GetBoolValue(); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"frontchannelLogout", n => { FrontchannelLogout = n.GetBoolValue(); } }, - {"fullScopeAllowed", n => { FullScopeAllowed = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"implicitFlowEnabled", n => { ImplicitFlowEnabled = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"nodeReRegistrationTimeout", n => { NodeReRegistrationTimeout = n.GetIntValue(); } }, - {"notBefore", n => { NotBefore = n.GetIntValue(); } }, - {"optionalClientScopes", n => { OptionalClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"origin", n => { Origin = n.GetStringValue(); } }, - {"protocol", n => { Protocol = n.GetStringValue(); } }, - {"protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"publicClient", n => { PublicClient = n.GetBoolValue(); } }, - {"redirectUris", n => { RedirectUris = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"registeredNodes", n => { RegisteredNodes = n.GetObjectValue(ClientRepresentation_registeredNodes.CreateFromDiscriminatorValue); } }, - {"registrationAccessToken", n => { RegistrationAccessToken = n.GetStringValue(); } }, - {"rootUrl", n => { RootUrl = n.GetStringValue(); } }, - {"secret", n => { Secret = n.GetStringValue(); } }, - {"serviceAccountsEnabled", n => { ServiceAccountsEnabled = n.GetBoolValue(); } }, - {"standardFlowEnabled", n => { StandardFlowEnabled = n.GetBoolValue(); } }, - {"surrogateAuthRequired", n => { SurrogateAuthRequired = n.GetBoolValue(); } }, - {"useTemplateConfig", n => { UseTemplateConfig = n.GetBoolValue(); } }, - {"useTemplateMappers", n => { UseTemplateMappers = n.GetBoolValue(); } }, - {"useTemplateScope", n => { UseTemplateScope = n.GetBoolValue(); } }, - {"webOrigins", n => { WebOrigins = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "access", n => { Access = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_access.CreateFromDiscriminatorValue); } }, + { "adminUrl", n => { AdminUrl = n.GetStringValue(); } }, + { "alwaysDisplayInConsole", n => { AlwaysDisplayInConsole = n.GetBoolValue(); } }, + { "attributes", n => { Attributes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "authenticationFlowBindingOverrides", n => { AuthenticationFlowBindingOverrides = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_authenticationFlowBindingOverrides.CreateFromDiscriminatorValue); } }, + { "authorizationServicesEnabled", n => { AuthorizationServicesEnabled = n.GetBoolValue(); } }, + { "authorizationSettings", n => { AuthorizationSettings = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation.CreateFromDiscriminatorValue); } }, + { "baseUrl", n => { BaseUrl = n.GetStringValue(); } }, + { "bearerOnly", n => { BearerOnly = n.GetBoolValue(); } }, + { "clientAuthenticatorType", n => { ClientAuthenticatorType = n.GetStringValue(); } }, + { "clientId", n => { ClientId = n.GetStringValue(); } }, + { "clientTemplate", n => { ClientTemplate = n.GetStringValue(); } }, + { "consentRequired", n => { ConsentRequired = n.GetBoolValue(); } }, + { "defaultClientScopes", n => { DefaultClientScopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "defaultRoles", n => { DefaultRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "directAccessGrantsEnabled", n => { DirectAccessGrantsEnabled = n.GetBoolValue(); } }, + { "directGrantsOnly", n => { DirectGrantsOnly = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "frontchannelLogout", n => { FrontchannelLogout = n.GetBoolValue(); } }, + { "fullScopeAllowed", n => { FullScopeAllowed = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "implicitFlowEnabled", n => { ImplicitFlowEnabled = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "nodeReRegistrationTimeout", n => { NodeReRegistrationTimeout = n.GetIntValue(); } }, + { "notBefore", n => { NotBefore = n.GetIntValue(); } }, + { "optionalClientScopes", n => { OptionalClientScopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "origin", n => { Origin = n.GetStringValue(); } }, + { "protocol", n => { Protocol = n.GetStringValue(); } }, + { "protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "publicClient", n => { PublicClient = n.GetBoolValue(); } }, + { "redirectUris", n => { RedirectUris = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "registeredNodes", n => { RegisteredNodes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_registeredNodes.CreateFromDiscriminatorValue); } }, + { "registrationAccessToken", n => { RegistrationAccessToken = n.GetStringValue(); } }, + { "rootUrl", n => { RootUrl = n.GetStringValue(); } }, + { "secret", n => { Secret = n.GetStringValue(); } }, + { "serviceAccountsEnabled", n => { ServiceAccountsEnabled = n.GetBoolValue(); } }, + { "standardFlowEnabled", n => { StandardFlowEnabled = n.GetBoolValue(); } }, + { "surrogateAuthRequired", n => { SurrogateAuthRequired = n.GetBoolValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "useTemplateConfig", n => { UseTemplateConfig = n.GetBoolValue(); } }, + { "useTemplateMappers", n => { UseTemplateMappers = n.GetBoolValue(); } }, + { "useTemplateScope", n => { UseTemplateScope = n.GetBoolValue(); } }, + { "webOrigins", n => { WebOrigins = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("access", Access); + writer.WriteObjectValue("access", Access); writer.WriteStringValue("adminUrl", AdminUrl); writer.WriteBoolValue("alwaysDisplayInConsole", AlwaysDisplayInConsole); - writer.WriteObjectValue("attributes", Attributes); - writer.WriteObjectValue("authenticationFlowBindingOverrides", AuthenticationFlowBindingOverrides); + writer.WriteObjectValue("attributes", Attributes); + writer.WriteObjectValue("authenticationFlowBindingOverrides", AuthenticationFlowBindingOverrides); writer.WriteBoolValue("authorizationServicesEnabled", AuthorizationServicesEnabled); - writer.WriteObjectValue("authorizationSettings", AuthorizationSettings); + writer.WriteObjectValue("authorizationSettings", AuthorizationSettings); writer.WriteStringValue("baseUrl", BaseUrl); writer.WriteBoolValue("bearerOnly", BearerOnly); writer.WriteStringValue("clientAuthenticatorType", ClientAuthenticatorType); @@ -345,16 +364,17 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfPrimitiveValues("optionalClientScopes", OptionalClientScopes); writer.WriteStringValue("origin", Origin); writer.WriteStringValue("protocol", Protocol); - writer.WriteCollectionOfObjectValues("protocolMappers", ProtocolMappers); + writer.WriteCollectionOfObjectValues("protocolMappers", ProtocolMappers); writer.WriteBoolValue("publicClient", PublicClient); writer.WriteCollectionOfPrimitiveValues("redirectUris", RedirectUris); - writer.WriteObjectValue("registeredNodes", RegisteredNodes); + writer.WriteObjectValue("registeredNodes", RegisteredNodes); writer.WriteStringValue("registrationAccessToken", RegistrationAccessToken); writer.WriteStringValue("rootUrl", RootUrl); writer.WriteStringValue("secret", Secret); writer.WriteBoolValue("serviceAccountsEnabled", ServiceAccountsEnabled); writer.WriteBoolValue("standardFlowEnabled", StandardFlowEnabled); writer.WriteBoolValue("surrogateAuthRequired", SurrogateAuthRequired); + writer.WriteStringValue("type", Type); writer.WriteBoolValue("useTemplateConfig", UseTemplateConfig); writer.WriteBoolValue("useTemplateMappers", UseTemplateMappers); writer.WriteBoolValue("useTemplateScope", UseTemplateScope); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_access.cs index 1d935a9c..9363b28e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_access.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientRepresentation_access : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientRepresentation_access : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientRepresentation_access() { + public ClientRepresentation_access() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientRepresentation_access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_access(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_attributes.cs index 77bcc55b..b2996ade 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_attributes.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientRepresentation_attributes : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientRepresentation_attributes() { + public ClientRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_attributes(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_authenticationFlowBindingOverrides.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_authenticationFlowBindingOverrides.cs index 673b414b..e49292d4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_authenticationFlowBindingOverrides.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_authenticationFlowBindingOverrides.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientRepresentation_authenticationFlowBindingOverrides() { + public ClientRepresentation_authenticationFlowBindingOverrides() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientRepresentation_authenticationFlowBindingOverrides CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_authenticationFlowBindingOverrides CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientRepresentation_authenticationFlowBindingOverrides(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_authenticationFlowBindingOverrides(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_registeredNodes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_registeredNodes.cs index bf60c0fb..bf46f4c2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_registeredNodes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_registeredNodes.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientRepresentation_registeredNodes : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientRepresentation_registeredNodes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientRepresentation_registeredNodes() { + public ClientRepresentation_registeredNodes() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientRepresentation_registeredNodes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_registeredNodes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientRepresentation_registeredNodes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_registeredNodes(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation.cs index 7ba72c3b..eacd8795 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientScopeRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientScopeRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ClientScopeRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public ClientScopeRepresentation_attributes Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation_attributes Attributes { get; set; } #endif /// The description property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -51,52 +56,57 @@ public class ClientScopeRepresentation : IAdditionalDataHolder, IParsable { /// The protocolMappers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ProtocolMappers { get; set; } + public List? ProtocolMappers { get; set; } #nullable restore #else - public List ProtocolMappers { get; set; } + public List ProtocolMappers { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientScopeRepresentation() { + public ClientScopeRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientScopeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientScopeRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"attributes", n => { Attributes = n.GetObjectValue(ClientScopeRepresentation_attributes.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"protocol", n => { Protocol = n.GetStringValue(); } }, - {"protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "attributes", n => { Attributes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "protocol", n => { Protocol = n.GetStringValue(); } }, + { "protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("attributes", Attributes); + writer.WriteObjectValue("attributes", Attributes); writer.WriteStringValue("description", Description); writer.WriteStringValue("id", Id); writer.WriteStringValue("name", Name); writer.WriteStringValue("protocol", Protocol); - writer.WriteCollectionOfObjectValues("protocolMappers", ProtocolMappers); + writer.WriteCollectionOfObjectValues("protocolMappers", ProtocolMappers); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation_attributes.cs index 03650677..8633135e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation_attributes.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientScopeRepresentation_attributes : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientScopeRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientScopeRepresentation_attributes() { + public ClientScopeRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientScopeRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientScopeRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation_attributes(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation.cs index 10f96cd3..b81ad82c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation.cs @@ -1,21 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ [Obsolete("")] - public class ClientTemplateRepresentation : IAdditionalDataHolder, IParsable { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientTemplateRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ClientTemplateRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public ClientTemplateRepresentation_attributes Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation_attributes Attributes { get; set; } #endif /// The bearerOnly property public bool? BearerOnly { get; set; } @@ -64,10 +69,10 @@ public class ClientTemplateRepresentation : IAdditionalDataHolder, IParsable { /// The protocolMappers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ProtocolMappers { get; set; } + public List? ProtocolMappers { get; set; } #nullable restore #else - public List ProtocolMappers { get; set; } + public List ProtocolMappers { get; set; } #endif /// The publicClient property public bool? PublicClient { get; set; } @@ -76,50 +81,55 @@ public class ClientTemplateRepresentation : IAdditionalDataHolder, IParsable { /// The standardFlowEnabled property public bool? StandardFlowEnabled { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientTemplateRepresentation() { + public ClientTemplateRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientTemplateRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientTemplateRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"attributes", n => { Attributes = n.GetObjectValue(ClientTemplateRepresentation_attributes.CreateFromDiscriminatorValue); } }, - {"bearerOnly", n => { BearerOnly = n.GetBoolValue(); } }, - {"consentRequired", n => { ConsentRequired = n.GetBoolValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"directAccessGrantsEnabled", n => { DirectAccessGrantsEnabled = n.GetBoolValue(); } }, - {"frontchannelLogout", n => { FrontchannelLogout = n.GetBoolValue(); } }, - {"fullScopeAllowed", n => { FullScopeAllowed = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"implicitFlowEnabled", n => { ImplicitFlowEnabled = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"protocol", n => { Protocol = n.GetStringValue(); } }, - {"protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"publicClient", n => { PublicClient = n.GetBoolValue(); } }, - {"serviceAccountsEnabled", n => { ServiceAccountsEnabled = n.GetBoolValue(); } }, - {"standardFlowEnabled", n => { StandardFlowEnabled = n.GetBoolValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "attributes", n => { Attributes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "bearerOnly", n => { BearerOnly = n.GetBoolValue(); } }, + { "consentRequired", n => { ConsentRequired = n.GetBoolValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "directAccessGrantsEnabled", n => { DirectAccessGrantsEnabled = n.GetBoolValue(); } }, + { "frontchannelLogout", n => { FrontchannelLogout = n.GetBoolValue(); } }, + { "fullScopeAllowed", n => { FullScopeAllowed = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "implicitFlowEnabled", n => { ImplicitFlowEnabled = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "protocol", n => { Protocol = n.GetStringValue(); } }, + { "protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "publicClient", n => { PublicClient = n.GetBoolValue(); } }, + { "serviceAccountsEnabled", n => { ServiceAccountsEnabled = n.GetBoolValue(); } }, + { "standardFlowEnabled", n => { StandardFlowEnabled = n.GetBoolValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("attributes", Attributes); + writer.WriteObjectValue("attributes", Attributes); writer.WriteBoolValue("bearerOnly", BearerOnly); writer.WriteBoolValue("consentRequired", ConsentRequired); writer.WriteStringValue("description", Description); @@ -130,7 +140,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteBoolValue("implicitFlowEnabled", ImplicitFlowEnabled); writer.WriteStringValue("name", Name); writer.WriteStringValue("protocol", Protocol); - writer.WriteCollectionOfObjectValues("protocolMappers", ProtocolMappers); + writer.WriteCollectionOfObjectValues("protocolMappers", ProtocolMappers); writer.WriteBoolValue("publicClient", PublicClient); writer.WriteBoolValue("serviceAccountsEnabled", ServiceAccountsEnabled); writer.WriteBoolValue("standardFlowEnabled", StandardFlowEnabled); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation_attributes.cs index ddc11bee..6ff6e6f1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation_attributes.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ClientTemplateRepresentation_attributes : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientTemplateRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ClientTemplateRepresentation_attributes() { + public ClientTemplateRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ClientTemplateRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ClientTemplateRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation_attributes(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation.cs new file mode 100644 index 00000000..32a30a3a --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation.cs @@ -0,0 +1,83 @@ +// +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientTypeRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The config property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config? Config { get; set; } +#nullable restore +#else + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config Config { get; set; } +#endif + /// The name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { get; set; } +#nullable restore +#else + public string Name { get; set; } +#endif + /// The provider property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Provider { get; set; } +#nullable restore +#else + public string Provider { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClientTypeRepresentation() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config.CreateFromDiscriminatorValue); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "provider", n => { Provider = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("config", Config); + writer.WriteStringValue("name", Name); + writer.WriteStringValue("provider", Provider); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation_config.cs new file mode 100644 index 00000000..f8a4c3aa --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation_config.cs @@ -0,0 +1,53 @@ +// +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientTypeRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public ClientTypeRepresentation_config() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypesRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypesRepresentation.cs new file mode 100644 index 00000000..da5c2632 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypesRepresentation.cs @@ -0,0 +1,73 @@ +// +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ClientTypesRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The clientTypes property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ClientTypes { get; set; } +#nullable restore +#else + public List ClientTypes { get; set; } +#endif + /// The globalClientTypes property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? GlobalClientTypes { get; set; } +#nullable restore +#else + public List GlobalClientTypes { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ClientTypesRepresentation() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "client-types", n => { ClientTypes = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "global-client-types", n => { GlobalClientTypes = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("client-types", ClientTypes); + writer.WriteCollectionOfObjectValues("global-client-types", GlobalClientTypes); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentRepresentation.cs index 834de23b..dff1a2b3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentRepresentation.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ComponentRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ComponentRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MultivaluedHashMapStringString? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringString? Config { get; set; } #nullable restore #else - public MultivaluedHashMapStringString Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringString Config { get; set; } #endif /// The id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -65,42 +70,47 @@ public class ComponentRepresentation : IAdditionalDataHolder, IParsable { public string SubType { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ComponentRepresentation() { + public ComponentRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ComponentRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ComponentRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"config", n => { Config = n.GetObjectValue(MultivaluedHashMapStringString.CreateFromDiscriminatorValue); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"parentId", n => { ParentId = n.GetStringValue(); } }, - {"providerId", n => { ProviderId = n.GetStringValue(); } }, - {"providerType", n => { ProviderType = n.GetStringValue(); } }, - {"subType", n => { SubType = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringString.CreateFromDiscriminatorValue); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "parentId", n => { ParentId = n.GetStringValue(); } }, + { "providerId", n => { ProviderId = n.GetStringValue(); } }, + { "providerType", n => { ProviderType = n.GetStringValue(); } }, + { "subType", n => { SubType = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteStringValue("id", Id); writer.WriteStringValue("name", Name); writer.WriteStringValue("parentId", ParentId); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation.cs index 6af3da55..54c8b5fe 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ComponentTypeRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ComponentTypeRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The helpText property @@ -27,56 +32,61 @@ public class ComponentTypeRepresentation : IAdditionalDataHolder, IParsable { /// The metadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ComponentTypeRepresentation_metadata? Metadata { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation_metadata? Metadata { get; set; } #nullable restore #else - public ComponentTypeRepresentation_metadata Metadata { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation_metadata Metadata { get; set; } #endif /// The properties property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Properties { get; set; } + public List? Properties { get; set; } #nullable restore #else - public List Properties { get; set; } + public List Properties { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ComponentTypeRepresentation() { + public ComponentTypeRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ComponentTypeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ComponentTypeRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"helpText", n => { HelpText = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"metadata", n => { Metadata = n.GetObjectValue(ComponentTypeRepresentation_metadata.CreateFromDiscriminatorValue); } }, - {"properties", n => { Properties = n.GetCollectionOfObjectValues(ConfigPropertyRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "helpText", n => { HelpText = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "metadata", n => { Metadata = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation_metadata.CreateFromDiscriminatorValue); } }, + { "properties", n => { Properties = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ConfigPropertyRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("helpText", HelpText); writer.WriteStringValue("id", Id); - writer.WriteObjectValue("metadata", Metadata); - writer.WriteCollectionOfObjectValues("properties", Properties); + writer.WriteObjectValue("metadata", Metadata); + writer.WriteCollectionOfObjectValues("properties", Properties); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation_metadata.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation_metadata.cs index 2f131fbd..532db904 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation_metadata.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation_metadata.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ComponentTypeRepresentation_metadata : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ComponentTypeRepresentation_metadata : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ComponentTypeRepresentation_metadata() { + public ComponentTypeRepresentation_metadata() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ComponentTypeRepresentation_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation_metadata CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ComponentTypeRepresentation_metadata(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation_metadata(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites.cs index 5008f984..ba878a2c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites.cs @@ -1,29 +1,34 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class Composites : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Composites : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The application property [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Composites_application? Application { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_application? Application { get; set; } #nullable restore #else - public Composites_application Application { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_application Application { get; set; } #endif /// The client property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Composites_client? Client { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_client? Client { get; set; } #nullable restore #else - public Composites_client Client { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_client Client { get; set; } #endif /// The realm property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -34,39 +39,44 @@ public class Composites : IAdditionalDataHolder, IParsable { public List Realm { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public Composites() { + public Composites() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Composites CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Composites(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"application", n => { Application = n.GetObjectValue(Composites_application.CreateFromDiscriminatorValue); } }, - {"client", n => { Client = n.GetObjectValue(Composites_client.CreateFromDiscriminatorValue); } }, - {"realm", n => { Realm = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "application", n => { Application = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_application.CreateFromDiscriminatorValue); } }, + { "client", n => { Client = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_client.CreateFromDiscriminatorValue); } }, + { "realm", n => { Realm = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("application", Application); - writer.WriteObjectValue("client", Client); + writer.WriteObjectValue("application", Application); + writer.WriteObjectValue("client", Client); writer.WriteCollectionOfPrimitiveValues("realm", Realm); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_application.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_application.cs index bb209f63..33876b9d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_application.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_application.cs @@ -1,42 +1,52 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ [Obsolete("")] - public class Composites_application : IAdditionalDataHolder, IParsable { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Composites_application : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public Composites_application() { + public Composites_application() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Composites_application CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_application CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Composites_application(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_application(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_client.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_client.cs index c40254ca..a98c862f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_client.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_client.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class Composites_client : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Composites_client : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public Composites_client() { + public Composites_client() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Composites_client CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_client CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Composites_client(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_client(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ConfigPropertyRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ConfigPropertyRepresentation.cs index 00711f24..18b36bed 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ConfigPropertyRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ConfigPropertyRepresentation.cs @@ -1,13 +1,26 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ConfigPropertyRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ConfigPropertyRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } + /// The defaultValue property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public UntypedNode? DefaultValue { get; set; } +#nullable restore +#else + public UntypedNode DefaultValue { get; set; } +#endif /// The helpText property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -55,42 +68,49 @@ public class ConfigPropertyRepresentation : IAdditionalDataHolder, IParsable { public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ConfigPropertyRepresentation() { + public ConfigPropertyRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ConfigPropertyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ConfigPropertyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConfigPropertyRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ConfigPropertyRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"helpText", n => { HelpText = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"options", n => { Options = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"readOnly", n => { ReadOnly = n.GetBoolValue(); } }, - {"required", n => { Required = n.GetBoolValue(); } }, - {"secret", n => { Secret = n.GetBoolValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "defaultValue", n => { DefaultValue = n.GetObjectValue(UntypedNode.CreateFromDiscriminatorValue); } }, + { "helpText", n => { HelpText = n.GetStringValue(); } }, + { "label", n => { Label = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "options", n => { Options = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "readOnly", n => { ReadOnly = n.GetBoolValue(); } }, + { "required", n => { Required = n.GetBoolValue(); } }, + { "secret", n => { Secret = n.GetBoolValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("defaultValue", DefaultValue); writer.WriteStringValue("helpText", HelpText); writer.WriteStringValue("label", Label); writer.WriteStringValue("name", Name); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Confirmation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Confirmation.cs index dfffbc12..682f4c4a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Confirmation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Confirmation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class Confirmation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Confirmation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The jkt property @@ -25,35 +30,40 @@ public class Confirmation : IAdditionalDataHolder, IParsable { public string X5tS256 { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public Confirmation() { + public Confirmation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Confirmation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Confirmation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Confirmation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Confirmation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"jkt", n => { Jkt = n.GetStringValue(); } }, - {"x5t#S256", n => { X5tS256 = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "jkt", n => { Jkt = n.GetStringValue(); } }, + { "x5t#S256", n => { X5tS256 = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("jkt", Jkt); writer.WriteStringValue("x5t#S256", X5tS256); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation.cs index 62a5e6c7..317c5d2a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class CredentialRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class CredentialRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The algorithm property @@ -21,10 +26,10 @@ public class CredentialRepresentation : IAdditionalDataHolder, IParsable { [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CredentialRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation_config? Config { get; set; } #nullable restore #else - public CredentialRepresentation_config Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation_config Config { get; set; } #endif /// The counter property [Obsolete("")] @@ -120,54 +125,59 @@ public class CredentialRepresentation : IAdditionalDataHolder, IParsable { public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public CredentialRepresentation() { + public CredentialRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static CredentialRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CredentialRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"algorithm", n => { Algorithm = n.GetStringValue(); } }, - {"config", n => { Config = n.GetObjectValue(CredentialRepresentation_config.CreateFromDiscriminatorValue); } }, - {"counter", n => { Counter = n.GetIntValue(); } }, - {"createdDate", n => { CreatedDate = n.GetLongValue(); } }, - {"credentialData", n => { CredentialData = n.GetStringValue(); } }, - {"device", n => { Device = n.GetStringValue(); } }, - {"digits", n => { Digits = n.GetIntValue(); } }, - {"hashIterations", n => { HashIterations = n.GetIntValue(); } }, - {"hashedSaltedValue", n => { HashedSaltedValue = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"period", n => { Period = n.GetIntValue(); } }, - {"priority", n => { Priority = n.GetIntValue(); } }, - {"salt", n => { Salt = n.GetStringValue(); } }, - {"secretData", n => { SecretData = n.GetStringValue(); } }, - {"temporary", n => { Temporary = n.GetBoolValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"userLabel", n => { UserLabel = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "algorithm", n => { Algorithm = n.GetStringValue(); } }, + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation_config.CreateFromDiscriminatorValue); } }, + { "counter", n => { Counter = n.GetIntValue(); } }, + { "createdDate", n => { CreatedDate = n.GetLongValue(); } }, + { "credentialData", n => { CredentialData = n.GetStringValue(); } }, + { "device", n => { Device = n.GetStringValue(); } }, + { "digits", n => { Digits = n.GetIntValue(); } }, + { "hashIterations", n => { HashIterations = n.GetIntValue(); } }, + { "hashedSaltedValue", n => { HashedSaltedValue = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "period", n => { Period = n.GetIntValue(); } }, + { "priority", n => { Priority = n.GetIntValue(); } }, + { "salt", n => { Salt = n.GetStringValue(); } }, + { "secretData", n => { SecretData = n.GetStringValue(); } }, + { "temporary", n => { Temporary = n.GetBoolValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "userLabel", n => { UserLabel = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("algorithm", Algorithm); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteIntValue("counter", Counter); writer.WriteLongValue("createdDate", CreatedDate); writer.WriteStringValue("credentialData", CredentialData); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation_config.cs index af5a04aa..14eca726 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation_config.cs @@ -1,34 +1,43 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ [Obsolete("")] - public class CredentialRepresentation_config : MultivaluedHashMapStringString, IParsable { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class CredentialRepresentation_config : global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringString, IParsable + #pragma warning restore CS1591 + { /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new CredentialRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CredentialRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation_config(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public override IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public override void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionEffect.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionEffect.cs index eb4faf66..93f06183 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionEffect.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionEffect.cs @@ -1,11 +1,20 @@ // using System.Runtime.Serialization; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public enum DecisionEffect { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public enum DecisionEffect + #pragma warning restore CS1591 + { [EnumMember(Value = "PERMIT")] + #pragma warning disable CS1591 PERMIT, + #pragma warning restore CS1591 [EnumMember(Value = "DENY")] + #pragma warning disable CS1591 DENY, + #pragma warning restore CS1591 } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionStrategy.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionStrategy.cs index 743c0e95..20e4d714 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionStrategy.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionStrategy.cs @@ -1,13 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public enum DecisionStrategy { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public enum DecisionStrategy + #pragma warning restore CS1591 + { [EnumMember(Value = "AFFIRMATIVE")] + #pragma warning disable CS1591 AFFIRMATIVE, + #pragma warning restore CS1591 [EnumMember(Value = "UNANIMOUS")] + #pragma warning disable CS1591 UNANIMOUS, + #pragma warning restore CS1591 [EnumMember(Value = "CONSENSUS")] + #pragma warning disable CS1591 CONSENSUS, + #pragma warning restore CS1591 } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EvaluationResultRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EvaluationResultRepresentation.cs index 07eba588..ad6e2677 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EvaluationResultRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EvaluationResultRepresentation.cs @@ -1,86 +1,96 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class EvaluationResultRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class EvaluationResultRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The allowedScopes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? AllowedScopes { get; set; } + public List? AllowedScopes { get; set; } #nullable restore #else - public List AllowedScopes { get; set; } + public List AllowedScopes { get; set; } #endif /// The policies property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Policies { get; set; } + public List? Policies { get; set; } #nullable restore #else - public List Policies { get; set; } + public List Policies { get; set; } #endif /// The resource property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ResourceRepresentation? Resource { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation? Resource { get; set; } #nullable restore #else - public ResourceRepresentation Resource { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation Resource { get; set; } #endif /// The scopes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Scopes { get; set; } + public List? Scopes { get; set; } #nullable restore #else - public List Scopes { get; set; } + public List Scopes { get; set; } #endif /// The status property - public DecisionEffect? Status { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.DecisionEffect? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public EvaluationResultRepresentation() { + public EvaluationResultRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EvaluationResultRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EvaluationResultRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EvaluationResultRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EvaluationResultRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"allowedScopes", n => { AllowedScopes = n.GetCollectionOfObjectValues(ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"policies", n => { Policies = n.GetCollectionOfObjectValues(PolicyResultRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"resource", n => { Resource = n.GetObjectValue(ResourceRepresentation.CreateFromDiscriminatorValue); } }, - {"scopes", n => { Scopes = n.GetCollectionOfObjectValues(ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "allowedScopes", n => { AllowedScopes = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "policies", n => { Policies = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyResultRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "resource", n => { Resource = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue); } }, + { "scopes", n => { Scopes = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("allowedScopes", AllowedScopes); - writer.WriteCollectionOfObjectValues("policies", Policies); - writer.WriteObjectValue("resource", Resource); - writer.WriteCollectionOfObjectValues("scopes", Scopes); - writer.WriteEnumValue("status", Status); + writer.WriteCollectionOfObjectValues("allowedScopes", AllowedScopes); + writer.WriteCollectionOfObjectValues("policies", Policies); + writer.WriteObjectValue("resource", Resource); + writer.WriteCollectionOfObjectValues("scopes", Scopes); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation.cs index 55d11a11..84cf508b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class EventRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class EventRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The clientId property @@ -19,10 +24,10 @@ public class EventRepresentation : IAdditionalDataHolder, IParsable { /// The details property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public EventRepresentation_details? Details { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation_details? Details { get; set; } #nullable restore #else - public EventRepresentation_details Details { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation_details Details { get; set; } #endif /// The error property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -75,45 +80,50 @@ public class EventRepresentation : IAdditionalDataHolder, IParsable { public string UserId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public EventRepresentation() { + public EventRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EventRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EventRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"clientId", n => { ClientId = n.GetStringValue(); } }, - {"details", n => { Details = n.GetObjectValue(EventRepresentation_details.CreateFromDiscriminatorValue); } }, - {"error", n => { Error = n.GetStringValue(); } }, - {"ipAddress", n => { IpAddress = n.GetStringValue(); } }, - {"realmId", n => { RealmId = n.GetStringValue(); } }, - {"sessionId", n => { SessionId = n.GetStringValue(); } }, - {"time", n => { Time = n.GetLongValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"userId", n => { UserId = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "clientId", n => { ClientId = n.GetStringValue(); } }, + { "details", n => { Details = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation_details.CreateFromDiscriminatorValue); } }, + { "error", n => { Error = n.GetStringValue(); } }, + { "ipAddress", n => { IpAddress = n.GetStringValue(); } }, + { "realmId", n => { RealmId = n.GetStringValue(); } }, + { "sessionId", n => { SessionId = n.GetStringValue(); } }, + { "time", n => { Time = n.GetLongValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "userId", n => { UserId = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientId", ClientId); - writer.WriteObjectValue("details", Details); + writer.WriteObjectValue("details", Details); writer.WriteStringValue("error", Error); writer.WriteStringValue("ipAddress", IpAddress); writer.WriteStringValue("realmId", RealmId); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation_details.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation_details.cs index 2a678761..c09d8289 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation_details.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation_details.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class EventRepresentation_details : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class EventRepresentation_details : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public EventRepresentation_details() { + public EventRepresentation_details() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EventRepresentation_details CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation_details CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EventRepresentation_details(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation_details(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/FederatedIdentityRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/FederatedIdentityRepresentation.cs index 80191d2c..6962287b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/FederatedIdentityRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/FederatedIdentityRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class FederatedIdentityRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class FederatedIdentityRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The identityProvider property @@ -33,36 +38,41 @@ public class FederatedIdentityRepresentation : IAdditionalDataHolder, IParsable public string UserName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public FederatedIdentityRepresentation() { + public FederatedIdentityRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FederatedIdentityRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.FederatedIdentityRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FederatedIdentityRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.FederatedIdentityRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"identityProvider", n => { IdentityProvider = n.GetStringValue(); } }, - {"userId", n => { UserId = n.GetStringValue(); } }, - {"userName", n => { UserName = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "identityProvider", n => { IdentityProvider = n.GetStringValue(); } }, + { "userId", n => { UserId = n.GetStringValue(); } }, + { "userName", n => { UserName = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("identityProvider", IdentityProvider); writer.WriteStringValue("userId", UserId); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GlobalRequestResult.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GlobalRequestResult.cs index 703872c5..57998a68 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GlobalRequestResult.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GlobalRequestResult.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class GlobalRequestResult : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class GlobalRequestResult : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The failedRequests property @@ -25,35 +30,40 @@ public class GlobalRequestResult : IAdditionalDataHolder, IParsable { public List SuccessRequests { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public GlobalRequestResult() { + public GlobalRequestResult() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GlobalRequestResult CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GlobalRequestResult CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GlobalRequestResult(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GlobalRequestResult(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"failedRequests", n => { FailedRequests = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"successRequests", n => { SuccessRequests = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "failedRequests", n => { FailedRequests = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "successRequests", n => { SuccessRequests = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("failedRequests", FailedRequests); writer.WriteCollectionOfPrimitiveValues("successRequests", SuccessRequests); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation.cs index 9f87d7bb..8a55c3af 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation.cs @@ -1,36 +1,41 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class GroupRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class GroupRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The access property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GroupRepresentation_access? Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_access? Access { get; set; } #nullable restore #else - public GroupRepresentation_access Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_access Access { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GroupRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public GroupRepresentation_attributes Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_attributes Attributes { get; set; } #endif /// The clientRoles property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public GroupRepresentation_clientRoles? ClientRoles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_clientRoles? ClientRoles { get; set; } #nullable restore #else - public GroupRepresentation_clientRoles ClientRoles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_clientRoles ClientRoles { get; set; } #endif /// The id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -77,60 +82,65 @@ public class GroupRepresentation : IAdditionalDataHolder, IParsable { /// The subGroups property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? SubGroups { get; set; } + public List? SubGroups { get; set; } #nullable restore #else - public List SubGroups { get; set; } + public List SubGroups { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public GroupRepresentation() { + public GroupRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GroupRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GroupRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"access", n => { Access = n.GetObjectValue(GroupRepresentation_access.CreateFromDiscriminatorValue); } }, - {"attributes", n => { Attributes = n.GetObjectValue(GroupRepresentation_attributes.CreateFromDiscriminatorValue); } }, - {"clientRoles", n => { ClientRoles = n.GetObjectValue(GroupRepresentation_clientRoles.CreateFromDiscriminatorValue); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"parentId", n => { ParentId = n.GetStringValue(); } }, - {"path", n => { Path = n.GetStringValue(); } }, - {"realmRoles", n => { RealmRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"subGroupCount", n => { SubGroupCount = n.GetLongValue(); } }, - {"subGroups", n => { SubGroups = n.GetCollectionOfObjectValues(GroupRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "access", n => { Access = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_access.CreateFromDiscriminatorValue); } }, + { "attributes", n => { Attributes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "clientRoles", n => { ClientRoles = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_clientRoles.CreateFromDiscriminatorValue); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "parentId", n => { ParentId = n.GetStringValue(); } }, + { "path", n => { Path = n.GetStringValue(); } }, + { "realmRoles", n => { RealmRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "subGroupCount", n => { SubGroupCount = n.GetLongValue(); } }, + { "subGroups", n => { SubGroups = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("access", Access); - writer.WriteObjectValue("attributes", Attributes); - writer.WriteObjectValue("clientRoles", ClientRoles); + writer.WriteObjectValue("access", Access); + writer.WriteObjectValue("attributes", Attributes); + writer.WriteObjectValue("clientRoles", ClientRoles); writer.WriteStringValue("id", Id); writer.WriteStringValue("name", Name); writer.WriteStringValue("parentId", ParentId); writer.WriteStringValue("path", Path); writer.WriteCollectionOfPrimitiveValues("realmRoles", RealmRoles); writer.WriteLongValue("subGroupCount", SubGroupCount); - writer.WriteCollectionOfObjectValues("subGroups", SubGroups); + writer.WriteCollectionOfObjectValues("subGroups", SubGroups); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_access.cs index bf843e5d..eac22357 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_access.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class GroupRepresentation_access : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class GroupRepresentation_access : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public GroupRepresentation_access() { + public GroupRepresentation_access() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GroupRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GroupRepresentation_access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_access(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_attributes.cs index 4780e025..12c04bc0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_attributes.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class GroupRepresentation_attributes : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class GroupRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public GroupRepresentation_attributes() { + public GroupRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GroupRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GroupRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_attributes(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_clientRoles.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_clientRoles.cs index 1583824e..2e6cf6a5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_clientRoles.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_clientRoles.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class GroupRepresentation_clientRoles : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class GroupRepresentation_clientRoles : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public GroupRepresentation_clientRoles() { + public GroupRepresentation_clientRoles() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static GroupRepresentation_clientRoles CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_clientRoles CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GroupRepresentation_clientRoles(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_clientRoles(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken.cs index e47008c0..58b2ad19 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class IDToken : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class IDToken : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The acr property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -19,10 +24,10 @@ public class IDToken : IAdditionalDataHolder, IParsable { /// The address property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AddressClaimSet? Address { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet? Address { get; set; } #nullable restore #else - public AddressClaimSet Address { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet Address { get; set; } #endif /// The at_hash property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -33,10 +38,7 @@ public class IDToken : IAdditionalDataHolder, IParsable { public string AtHash { get; set; } #endif /// The auth_time property - public long? Auth_time { get; set; } - /// The authTime property - [Obsolete("")] - public int? AuthTime { get; set; } + public long? AuthTime { get; set; } /// The azp property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -168,10 +170,10 @@ public class IDToken : IAdditionalDataHolder, IParsable { /// The otherClaims property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public IDToken_otherClaims? OtherClaims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken_otherClaims? OtherClaims { get; set; } #nullable restore #else - public IDToken_otherClaims OtherClaims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken_otherClaims OtherClaims { get; set; } #endif /// The phone_number property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -206,14 +208,6 @@ public class IDToken : IAdditionalDataHolder, IParsable { #nullable restore #else public string Profile { get; set; } -#endif - /// The session_state property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SessionState { get; set; } -#nullable restore -#else - public string SessionState { get; set; } #endif /// The s_hash property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -266,77 +260,79 @@ public class IDToken : IAdditionalDataHolder, IParsable { public string Zoneinfo { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public IDToken() { + public IDToken() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IDToken CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IDToken(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"acr", n => { Acr = n.GetStringValue(); } }, - {"address", n => { Address = n.GetObjectValue(AddressClaimSet.CreateFromDiscriminatorValue); } }, - {"at_hash", n => { AtHash = n.GetStringValue(); } }, - {"authTime", n => { AuthTime = n.GetIntValue(); } }, - {"azp", n => { Azp = n.GetStringValue(); } }, - {"birthdate", n => { Birthdate = n.GetStringValue(); } }, - {"c_hash", n => { CHash = n.GetStringValue(); } }, - {"claims_locales", n => { ClaimsLocales = n.GetStringValue(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"email_verified", n => { EmailVerified = n.GetBoolValue(); } }, - {"exp", n => { Exp = n.GetLongValue(); } }, - {"family_name", n => { FamilyName = n.GetStringValue(); } }, - {"gender", n => { Gender = n.GetStringValue(); } }, - {"given_name", n => { GivenName = n.GetStringValue(); } }, - {"iat", n => { Iat = n.GetLongValue(); } }, - {"iss", n => { Iss = n.GetStringValue(); } }, - {"jti", n => { Jti = n.GetStringValue(); } }, - {"locale", n => { Locale = n.GetStringValue(); } }, - {"middle_name", n => { MiddleName = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"nbf", n => { Nbf = n.GetLongValue(); } }, - {"nickname", n => { Nickname = n.GetStringValue(); } }, - {"nonce", n => { Nonce = n.GetStringValue(); } }, - {"otherClaims", n => { OtherClaims = n.GetObjectValue(IDToken_otherClaims.CreateFromDiscriminatorValue); } }, - {"phone_number", n => { PhoneNumber = n.GetStringValue(); } }, - {"phone_number_verified", n => { PhoneNumberVerified = n.GetBoolValue(); } }, - {"picture", n => { Picture = n.GetStringValue(); } }, - {"preferred_username", n => { PreferredUsername = n.GetStringValue(); } }, - {"profile", n => { Profile = n.GetStringValue(); } }, - {"s_hash", n => { SHash = n.GetStringValue(); } }, - {"session_state", n => { SessionState = n.GetStringValue(); } }, - {"sid", n => { Sid = n.GetStringValue(); } }, - {"sub", n => { Sub = n.GetStringValue(); } }, - {"typ", n => { Typ = n.GetStringValue(); } }, - {"updated_at", n => { UpdatedAt = n.GetLongValue(); } }, - {"website", n => { Website = n.GetStringValue(); } }, - {"zoneinfo", n => { Zoneinfo = n.GetStringValue(); } }, - {"auth_time", n => { Auth_time = n.GetLongValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "acr", n => { Acr = n.GetStringValue(); } }, + { "address", n => { Address = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet.CreateFromDiscriminatorValue); } }, + { "at_hash", n => { AtHash = n.GetStringValue(); } }, + { "auth_time", n => { AuthTime = n.GetLongValue(); } }, + { "azp", n => { Azp = n.GetStringValue(); } }, + { "birthdate", n => { Birthdate = n.GetStringValue(); } }, + { "c_hash", n => { CHash = n.GetStringValue(); } }, + { "claims_locales", n => { ClaimsLocales = n.GetStringValue(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "email_verified", n => { EmailVerified = n.GetBoolValue(); } }, + { "exp", n => { Exp = n.GetLongValue(); } }, + { "family_name", n => { FamilyName = n.GetStringValue(); } }, + { "gender", n => { Gender = n.GetStringValue(); } }, + { "given_name", n => { GivenName = n.GetStringValue(); } }, + { "iat", n => { Iat = n.GetLongValue(); } }, + { "iss", n => { Iss = n.GetStringValue(); } }, + { "jti", n => { Jti = n.GetStringValue(); } }, + { "locale", n => { Locale = n.GetStringValue(); } }, + { "middle_name", n => { MiddleName = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "nbf", n => { Nbf = n.GetLongValue(); } }, + { "nickname", n => { Nickname = n.GetStringValue(); } }, + { "nonce", n => { Nonce = n.GetStringValue(); } }, + { "otherClaims", n => { OtherClaims = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken_otherClaims.CreateFromDiscriminatorValue); } }, + { "phone_number", n => { PhoneNumber = n.GetStringValue(); } }, + { "phone_number_verified", n => { PhoneNumberVerified = n.GetBoolValue(); } }, + { "picture", n => { Picture = n.GetStringValue(); } }, + { "preferred_username", n => { PreferredUsername = n.GetStringValue(); } }, + { "profile", n => { Profile = n.GetStringValue(); } }, + { "s_hash", n => { SHash = n.GetStringValue(); } }, + { "sid", n => { Sid = n.GetStringValue(); } }, + { "sub", n => { Sub = n.GetStringValue(); } }, + { "typ", n => { Typ = n.GetStringValue(); } }, + { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, + { "website", n => { Website = n.GetStringValue(); } }, + { "zoneinfo", n => { Zoneinfo = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("acr", Acr); - writer.WriteObjectValue("address", Address); + writer.WriteObjectValue("address", Address); writer.WriteStringValue("at_hash", AtHash); - writer.WriteLongValue("auth_time", Auth_time); - writer.WriteIntValue("authTime", AuthTime); + writer.WriteLongValue("auth_time", AuthTime); writer.WriteStringValue("azp", Azp); writer.WriteStringValue("birthdate", Birthdate); writer.WriteStringValue("c_hash", CHash); @@ -356,13 +352,12 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteLongValue("nbf", Nbf); writer.WriteStringValue("nickname", Nickname); writer.WriteStringValue("nonce", Nonce); - writer.WriteObjectValue("otherClaims", OtherClaims); + writer.WriteObjectValue("otherClaims", OtherClaims); writer.WriteStringValue("phone_number", PhoneNumber); writer.WriteBoolValue("phone_number_verified", PhoneNumberVerified); writer.WriteStringValue("picture", Picture); writer.WriteStringValue("preferred_username", PreferredUsername); writer.WriteStringValue("profile", Profile); - writer.WriteStringValue("session_state", SessionState); writer.WriteStringValue("s_hash", SHash); writer.WriteStringValue("sid", Sid); writer.WriteStringValue("sub", Sub); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken_otherClaims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken_otherClaims.cs index aa356b10..e66a79ee 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken_otherClaims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken_otherClaims.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class IDToken_otherClaims : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class IDToken_otherClaims : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public IDToken_otherClaims() { + public IDToken_otherClaims() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IDToken_otherClaims CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken_otherClaims CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IDToken_otherClaims(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken_otherClaims(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation.cs index 662b05b9..8c6c8dfa 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class IdentityProviderMapperRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class IdentityProviderMapperRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public IdentityProviderMapperRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation_config? Config { get; set; } #nullable restore #else - public IdentityProviderMapperRepresentation_config Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation_config Config { get; set; } #endif /// The id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -49,40 +54,45 @@ public class IdentityProviderMapperRepresentation : IAdditionalDataHolder, IPars public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public IdentityProviderMapperRepresentation() { + public IdentityProviderMapperRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IdentityProviderMapperRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IdentityProviderMapperRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"config", n => { Config = n.GetObjectValue(IdentityProviderMapperRepresentation_config.CreateFromDiscriminatorValue); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"identityProviderAlias", n => { IdentityProviderAlias = n.GetStringValue(); } }, - {"identityProviderMapper", n => { IdentityProviderMapper = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation_config.CreateFromDiscriminatorValue); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "identityProviderAlias", n => { IdentityProviderAlias = n.GetStringValue(); } }, + { "identityProviderMapper", n => { IdentityProviderMapper = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteStringValue("id", Id); writer.WriteStringValue("identityProviderAlias", IdentityProviderAlias); writer.WriteStringValue("identityProviderMapper", IdentityProviderMapper); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation_config.cs index 9a90585d..03921280 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation_config.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class IdentityProviderMapperRepresentation_config : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class IdentityProviderMapperRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public IdentityProviderMapperRepresentation_config() { + public IdentityProviderMapperRepresentation_config() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IdentityProviderMapperRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IdentityProviderMapperRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation_config(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs index 6672ba5f..35a19cc2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class IdentityProviderRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class IdentityProviderRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The addReadTokenRoleOnCreate property @@ -23,10 +28,10 @@ public class IdentityProviderRepresentation : IAdditionalDataHolder, IParsable { /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public IdentityProviderRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation_config? Config { get; set; } #nullable restore #else - public IdentityProviderRepresentation_config Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation_config Config { get; set; } #endif /// The displayName property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -89,53 +94,58 @@ public class IdentityProviderRepresentation : IAdditionalDataHolder, IParsable { public string UpdateProfileFirstLoginMode { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public IdentityProviderRepresentation() { + public IdentityProviderRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IdentityProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IdentityProviderRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"addReadTokenRoleOnCreate", n => { AddReadTokenRoleOnCreate = n.GetBoolValue(); } }, - {"alias", n => { Alias = n.GetStringValue(); } }, - {"authenticateByDefault", n => { AuthenticateByDefault = n.GetBoolValue(); } }, - {"config", n => { Config = n.GetObjectValue(IdentityProviderRepresentation_config.CreateFromDiscriminatorValue); } }, - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"firstBrokerLoginFlowAlias", n => { FirstBrokerLoginFlowAlias = n.GetStringValue(); } }, - {"internalId", n => { InternalId = n.GetStringValue(); } }, - {"linkOnly", n => { LinkOnly = n.GetBoolValue(); } }, - {"postBrokerLoginFlowAlias", n => { PostBrokerLoginFlowAlias = n.GetStringValue(); } }, - {"providerId", n => { ProviderId = n.GetStringValue(); } }, - {"storeToken", n => { StoreToken = n.GetBoolValue(); } }, - {"trustEmail", n => { TrustEmail = n.GetBoolValue(); } }, - {"updateProfileFirstLogin", n => { UpdateProfileFirstLogin = n.GetBoolValue(); } }, - {"updateProfileFirstLoginMode", n => { UpdateProfileFirstLoginMode = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "addReadTokenRoleOnCreate", n => { AddReadTokenRoleOnCreate = n.GetBoolValue(); } }, + { "alias", n => { Alias = n.GetStringValue(); } }, + { "authenticateByDefault", n => { AuthenticateByDefault = n.GetBoolValue(); } }, + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation_config.CreateFromDiscriminatorValue); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "firstBrokerLoginFlowAlias", n => { FirstBrokerLoginFlowAlias = n.GetStringValue(); } }, + { "internalId", n => { InternalId = n.GetStringValue(); } }, + { "linkOnly", n => { LinkOnly = n.GetBoolValue(); } }, + { "postBrokerLoginFlowAlias", n => { PostBrokerLoginFlowAlias = n.GetStringValue(); } }, + { "providerId", n => { ProviderId = n.GetStringValue(); } }, + { "storeToken", n => { StoreToken = n.GetBoolValue(); } }, + { "trustEmail", n => { TrustEmail = n.GetBoolValue(); } }, + { "updateProfileFirstLogin", n => { UpdateProfileFirstLogin = n.GetBoolValue(); } }, + { "updateProfileFirstLoginMode", n => { UpdateProfileFirstLoginMode = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("addReadTokenRoleOnCreate", AddReadTokenRoleOnCreate); writer.WriteStringValue("alias", Alias); writer.WriteBoolValue("authenticateByDefault", AuthenticateByDefault); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteStringValue("displayName", DisplayName); writer.WriteBoolValue("enabled", Enabled); writer.WriteStringValue("firstBrokerLoginFlowAlias", FirstBrokerLoginFlowAlias); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation_config.cs index 32335bc2..a074cae0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation_config.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class IdentityProviderRepresentation_config : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class IdentityProviderRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public IdentityProviderRepresentation_config() { + public IdentityProviderRepresentation_config() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static IdentityProviderRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IdentityProviderRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation_config(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyMetadataRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyMetadataRepresentation.cs index c2ad0b42..b20bb658 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyMetadataRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyMetadataRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class KeyMetadataRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class KeyMetadataRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The algorithm property @@ -67,47 +72,52 @@ public class KeyMetadataRepresentation : IAdditionalDataHolder, IParsable { public string Type { get; set; } #endif /// The use property - public KeyUse? Use { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyUse? Use { get; set; } /// The validTo property public long? ValidTo { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public KeyMetadataRepresentation() { + public KeyMetadataRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static KeyMetadataRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyMetadataRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new KeyMetadataRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyMetadataRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"algorithm", n => { Algorithm = n.GetStringValue(); } }, - {"certificate", n => { Certificate = n.GetStringValue(); } }, - {"kid", n => { Kid = n.GetStringValue(); } }, - {"providerId", n => { ProviderId = n.GetStringValue(); } }, - {"providerPriority", n => { ProviderPriority = n.GetLongValue(); } }, - {"publicKey", n => { PublicKey = n.GetStringValue(); } }, - {"status", n => { Status = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"use", n => { Use = n.GetEnumValue(); } }, - {"validTo", n => { ValidTo = n.GetLongValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "algorithm", n => { Algorithm = n.GetStringValue(); } }, + { "certificate", n => { Certificate = n.GetStringValue(); } }, + { "kid", n => { Kid = n.GetStringValue(); } }, + { "providerId", n => { ProviderId = n.GetStringValue(); } }, + { "providerPriority", n => { ProviderPriority = n.GetLongValue(); } }, + { "publicKey", n => { PublicKey = n.GetStringValue(); } }, + { "status", n => { Status = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "use", n => { Use = n.GetEnumValue(); } }, + { "validTo", n => { ValidTo = n.GetLongValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("algorithm", Algorithm); writer.WriteStringValue("certificate", Certificate); @@ -117,7 +127,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteStringValue("publicKey", PublicKey); writer.WriteStringValue("status", Status); writer.WriteStringValue("type", Type); - writer.WriteEnumValue("use", Use); + writer.WriteEnumValue("use", Use); writer.WriteLongValue("validTo", ValidTo); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyStoreConfig.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyStoreConfig.cs index f713a920..eb5a3287 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyStoreConfig.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyStoreConfig.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class KeyStoreConfig : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class KeyStoreConfig : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The format property @@ -51,39 +56,44 @@ public class KeyStoreConfig : IAdditionalDataHolder, IParsable { public string StorePassword { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public KeyStoreConfig() { + public KeyStoreConfig() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static KeyStoreConfig CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyStoreConfig CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new KeyStoreConfig(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyStoreConfig(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"format", n => { Format = n.GetStringValue(); } }, - {"keyAlias", n => { KeyAlias = n.GetStringValue(); } }, - {"keyPassword", n => { KeyPassword = n.GetStringValue(); } }, - {"realmAlias", n => { RealmAlias = n.GetStringValue(); } }, - {"realmCertificate", n => { RealmCertificate = n.GetBoolValue(); } }, - {"storePassword", n => { StorePassword = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "format", n => { Format = n.GetStringValue(); } }, + { "keyAlias", n => { KeyAlias = n.GetStringValue(); } }, + { "keyPassword", n => { KeyPassword = n.GetStringValue(); } }, + { "realmAlias", n => { RealmAlias = n.GetStringValue(); } }, + { "realmCertificate", n => { RealmCertificate = n.GetBoolValue(); } }, + { "storePassword", n => { StorePassword = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("format", Format); writer.WriteStringValue("keyAlias", KeyAlias); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyUse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyUse.cs index 036e1558..838a4653 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyUse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyUse.cs @@ -1,11 +1,20 @@ // using System.Runtime.Serialization; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public enum KeyUse { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public enum KeyUse + #pragma warning restore CS1591 + { [EnumMember(Value = "SIG")] + #pragma warning disable CS1591 SIG, + #pragma warning restore CS1591 [EnumMember(Value = "ENC")] + #pragma warning disable CS1591 ENC, + #pragma warning restore CS1591 } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation.cs index cf0c332b..0dbc7a97 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation.cs @@ -1,62 +1,72 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class KeysMetadataRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class KeysMetadataRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The active property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public KeysMetadataRepresentation_active? Active { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation_active? Active { get; set; } #nullable restore #else - public KeysMetadataRepresentation_active Active { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation_active Active { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The keys property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Keys { get; set; } + public List? Keys { get; set; } #nullable restore #else - public List Keys { get; set; } + public List Keys { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public KeysMetadataRepresentation() { + public KeysMetadataRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static KeysMetadataRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new KeysMetadataRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"active", n => { Active = n.GetObjectValue(KeysMetadataRepresentation_active.CreateFromDiscriminatorValue); } }, - {"keys", n => { Keys = n.GetCollectionOfObjectValues(KeyMetadataRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "active", n => { Active = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation_active.CreateFromDiscriminatorValue); } }, + { "keys", n => { Keys = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyMetadataRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("active", Active); - writer.WriteCollectionOfObjectValues("keys", Keys); + writer.WriteObjectValue("active", Active); + writer.WriteCollectionOfObjectValues("keys", Keys); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation_active.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation_active.cs index 7643f19d..7c393dfd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation_active.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation_active.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class KeysMetadataRepresentation_active : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class KeysMetadataRepresentation_active : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public KeysMetadataRepresentation_active() { + public KeysMetadataRepresentation_active() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static KeysMetadataRepresentation_active CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation_active CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new KeysMetadataRepresentation_active(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation_active(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Logic.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Logic.cs index 47f91103..e07429b8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Logic.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Logic.cs @@ -1,11 +1,20 @@ // using System.Runtime.Serialization; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public enum Logic { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public enum Logic + #pragma warning restore CS1591 + { [EnumMember(Value = "POSITIVE")] + #pragma warning disable CS1591 POSITIVE, + #pragma warning restore CS1591 [EnumMember(Value = "NEGATIVE")] + #pragma warning disable CS1591 NEGATIVE, + #pragma warning restore CS1591 } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference.cs index 25219986..8e5c516f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ManagementPermissionReference : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ManagementPermissionReference : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The enabled property @@ -21,46 +26,51 @@ public class ManagementPermissionReference : IAdditionalDataHolder, IParsable { /// The scopePermissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ManagementPermissionReference_scopePermissions? ScopePermissions { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference_scopePermissions? ScopePermissions { get; set; } #nullable restore #else - public ManagementPermissionReference_scopePermissions ScopePermissions { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference_scopePermissions ScopePermissions { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ManagementPermissionReference() { + public ManagementPermissionReference() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ManagementPermissionReference CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ManagementPermissionReference(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"resource", n => { Resource = n.GetStringValue(); } }, - {"scopePermissions", n => { ScopePermissions = n.GetObjectValue(ManagementPermissionReference_scopePermissions.CreateFromDiscriminatorValue); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "resource", n => { Resource = n.GetStringValue(); } }, + { "scopePermissions", n => { ScopePermissions = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference_scopePermissions.CreateFromDiscriminatorValue); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("enabled", Enabled); writer.WriteStringValue("resource", Resource); - writer.WriteObjectValue("scopePermissions", ScopePermissions); + writer.WriteObjectValue("scopePermissions", ScopePermissions); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference_scopePermissions.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference_scopePermissions.cs index 9c7f0e46..ac4c9802 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference_scopePermissions.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference_scopePermissions.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ManagementPermissionReference_scopePermissions : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ManagementPermissionReference_scopePermissions : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ManagementPermissionReference_scopePermissions() { + public ManagementPermissionReference_scopePermissions() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ManagementPermissionReference_scopePermissions CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference_scopePermissions CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ManagementPermissionReference_scopePermissions(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference_scopePermissions(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation.cs index 29b6e764..c52131e1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation.cs @@ -1,62 +1,72 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class MappingsRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class MappingsRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The clientMappings property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MappingsRepresentation_clientMappings? ClientMappings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation_clientMappings? ClientMappings { get; set; } #nullable restore #else - public MappingsRepresentation_clientMappings ClientMappings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation_clientMappings ClientMappings { get; set; } #endif /// The realmMappings property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? RealmMappings { get; set; } + public List? RealmMappings { get; set; } #nullable restore #else - public List RealmMappings { get; set; } + public List RealmMappings { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public MappingsRepresentation() { + public MappingsRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MappingsRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MappingsRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"clientMappings", n => { ClientMappings = n.GetObjectValue(MappingsRepresentation_clientMappings.CreateFromDiscriminatorValue); } }, - {"realmMappings", n => { RealmMappings = n.GetCollectionOfObjectValues(RoleRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "clientMappings", n => { ClientMappings = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation_clientMappings.CreateFromDiscriminatorValue); } }, + { "realmMappings", n => { RealmMappings = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("clientMappings", ClientMappings); - writer.WriteCollectionOfObjectValues("realmMappings", RealmMappings); + writer.WriteObjectValue("clientMappings", ClientMappings); + writer.WriteCollectionOfObjectValues("realmMappings", RealmMappings); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation_clientMappings.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation_clientMappings.cs index 5844b1ee..3c189827 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation_clientMappings.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation_clientMappings.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class MappingsRepresentation_clientMappings : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class MappingsRepresentation_clientMappings : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public MappingsRepresentation_clientMappings() { + public MappingsRepresentation_clientMappings() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MappingsRepresentation_clientMappings CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation_clientMappings CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MappingsRepresentation_clientMappings(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation_clientMappings(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringComponentExportRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringComponentExportRepresentation.cs index 6fb35845..08d716fd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringComponentExportRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringComponentExportRepresentation.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class MultivaluedHashMapStringComponentExportRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class MultivaluedHashMapStringComponentExportRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public MultivaluedHashMapStringComponentExportRepresentation() { + public MultivaluedHashMapStringComponentExportRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MultivaluedHashMapStringComponentExportRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringComponentExportRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MultivaluedHashMapStringComponentExportRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringComponentExportRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringString.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringString.cs index 66f7c02c..602b9fe9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringString.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringString.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class MultivaluedHashMapStringString : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class MultivaluedHashMapStringString : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public MultivaluedHashMapStringString() { + public MultivaluedHashMapStringString() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MultivaluedHashMapStringString CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringString CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MultivaluedHashMapStringString(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringString(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation.cs index a5f9b1fc..bf0c9a73 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation.cs @@ -1,19 +1,24 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ [Obsolete("")] - public class OAuthClientRepresentation : IAdditionalDataHolder, IParsable { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OAuthClientRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The access property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OAuthClientRepresentation_access? Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_access? Access { get; set; } #nullable restore #else - public OAuthClientRepresentation_access Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_access Access { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -30,28 +35,28 @@ public class OAuthClientRepresentation : IAdditionalDataHolder, IParsable { /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OAuthClientRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public OAuthClientRepresentation_attributes Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_attributes Attributes { get; set; } #endif /// The authenticationFlowBindingOverrides property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OAuthClientRepresentation_authenticationFlowBindingOverrides? AuthenticationFlowBindingOverrides { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_authenticationFlowBindingOverrides? AuthenticationFlowBindingOverrides { get; set; } #nullable restore #else - public OAuthClientRepresentation_authenticationFlowBindingOverrides AuthenticationFlowBindingOverrides { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_authenticationFlowBindingOverrides AuthenticationFlowBindingOverrides { get; set; } #endif /// The authorizationServicesEnabled property public bool? AuthorizationServicesEnabled { get; set; } /// The authorizationSettings property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ResourceServerRepresentation? AuthorizationSettings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation? AuthorizationSettings { get; set; } #nullable restore #else - public ResourceServerRepresentation AuthorizationSettings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation AuthorizationSettings { get; set; } #endif /// The baseUrl property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -67,10 +72,10 @@ public class OAuthClientRepresentation : IAdditionalDataHolder, IParsable { [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OAuthClientRepresentation_claims? Claims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_claims? Claims { get; set; } #nullable restore #else - public OAuthClientRepresentation_claims Claims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_claims Claims { get; set; } #endif /// The clientAuthenticatorType property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -184,10 +189,10 @@ public class OAuthClientRepresentation : IAdditionalDataHolder, IParsable { /// The protocolMappers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ProtocolMappers { get; set; } + public List? ProtocolMappers { get; set; } #nullable restore #else - public List ProtocolMappers { get; set; } + public List ProtocolMappers { get; set; } #endif /// The publicClient property public bool? PublicClient { get; set; } @@ -202,10 +207,10 @@ public class OAuthClientRepresentation : IAdditionalDataHolder, IParsable { /// The registeredNodes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public OAuthClientRepresentation_registeredNodes? RegisteredNodes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_registeredNodes? RegisteredNodes { get; set; } #nullable restore #else - public OAuthClientRepresentation_registeredNodes RegisteredNodes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_registeredNodes RegisteredNodes { get; set; } #endif /// The registrationAccessToken property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -237,6 +242,14 @@ public class OAuthClientRepresentation : IAdditionalDataHolder, IParsable { public bool? StandardFlowEnabled { get; set; } /// The surrogateAuthRequired property public bool? SurrogateAuthRequired { get; set; } + /// The type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Type { get; set; } +#nullable restore +#else + public string Type { get; set; } +#endif /// The useTemplateConfig property [Obsolete("")] public bool? UseTemplateConfig { get; set; } @@ -255,88 +268,94 @@ public class OAuthClientRepresentation : IAdditionalDataHolder, IParsable { public List WebOrigins { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public OAuthClientRepresentation() { + public OAuthClientRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OAuthClientRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OAuthClientRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"access", n => { Access = n.GetObjectValue(OAuthClientRepresentation_access.CreateFromDiscriminatorValue); } }, - {"adminUrl", n => { AdminUrl = n.GetStringValue(); } }, - {"alwaysDisplayInConsole", n => { AlwaysDisplayInConsole = n.GetBoolValue(); } }, - {"attributes", n => { Attributes = n.GetObjectValue(OAuthClientRepresentation_attributes.CreateFromDiscriminatorValue); } }, - {"authenticationFlowBindingOverrides", n => { AuthenticationFlowBindingOverrides = n.GetObjectValue(OAuthClientRepresentation_authenticationFlowBindingOverrides.CreateFromDiscriminatorValue); } }, - {"authorizationServicesEnabled", n => { AuthorizationServicesEnabled = n.GetBoolValue(); } }, - {"authorizationSettings", n => { AuthorizationSettings = n.GetObjectValue(ResourceServerRepresentation.CreateFromDiscriminatorValue); } }, - {"baseUrl", n => { BaseUrl = n.GetStringValue(); } }, - {"bearerOnly", n => { BearerOnly = n.GetBoolValue(); } }, - {"claims", n => { Claims = n.GetObjectValue(OAuthClientRepresentation_claims.CreateFromDiscriminatorValue); } }, - {"clientAuthenticatorType", n => { ClientAuthenticatorType = n.GetStringValue(); } }, - {"clientId", n => { ClientId = n.GetStringValue(); } }, - {"clientTemplate", n => { ClientTemplate = n.GetStringValue(); } }, - {"consentRequired", n => { ConsentRequired = n.GetBoolValue(); } }, - {"defaultClientScopes", n => { DefaultClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"defaultRoles", n => { DefaultRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"directAccessGrantsEnabled", n => { DirectAccessGrantsEnabled = n.GetBoolValue(); } }, - {"directGrantsOnly", n => { DirectGrantsOnly = n.GetBoolValue(); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"frontchannelLogout", n => { FrontchannelLogout = n.GetBoolValue(); } }, - {"fullScopeAllowed", n => { FullScopeAllowed = n.GetBoolValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"implicitFlowEnabled", n => { ImplicitFlowEnabled = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"nodeReRegistrationTimeout", n => { NodeReRegistrationTimeout = n.GetIntValue(); } }, - {"notBefore", n => { NotBefore = n.GetIntValue(); } }, - {"optionalClientScopes", n => { OptionalClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"origin", n => { Origin = n.GetStringValue(); } }, - {"protocol", n => { Protocol = n.GetStringValue(); } }, - {"protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"publicClient", n => { PublicClient = n.GetBoolValue(); } }, - {"redirectUris", n => { RedirectUris = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"registeredNodes", n => { RegisteredNodes = n.GetObjectValue(OAuthClientRepresentation_registeredNodes.CreateFromDiscriminatorValue); } }, - {"registrationAccessToken", n => { RegistrationAccessToken = n.GetStringValue(); } }, - {"rootUrl", n => { RootUrl = n.GetStringValue(); } }, - {"secret", n => { Secret = n.GetStringValue(); } }, - {"serviceAccountsEnabled", n => { ServiceAccountsEnabled = n.GetBoolValue(); } }, - {"standardFlowEnabled", n => { StandardFlowEnabled = n.GetBoolValue(); } }, - {"surrogateAuthRequired", n => { SurrogateAuthRequired = n.GetBoolValue(); } }, - {"useTemplateConfig", n => { UseTemplateConfig = n.GetBoolValue(); } }, - {"useTemplateMappers", n => { UseTemplateMappers = n.GetBoolValue(); } }, - {"useTemplateScope", n => { UseTemplateScope = n.GetBoolValue(); } }, - {"webOrigins", n => { WebOrigins = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "access", n => { Access = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_access.CreateFromDiscriminatorValue); } }, + { "adminUrl", n => { AdminUrl = n.GetStringValue(); } }, + { "alwaysDisplayInConsole", n => { AlwaysDisplayInConsole = n.GetBoolValue(); } }, + { "attributes", n => { Attributes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "authenticationFlowBindingOverrides", n => { AuthenticationFlowBindingOverrides = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_authenticationFlowBindingOverrides.CreateFromDiscriminatorValue); } }, + { "authorizationServicesEnabled", n => { AuthorizationServicesEnabled = n.GetBoolValue(); } }, + { "authorizationSettings", n => { AuthorizationSettings = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation.CreateFromDiscriminatorValue); } }, + { "baseUrl", n => { BaseUrl = n.GetStringValue(); } }, + { "bearerOnly", n => { BearerOnly = n.GetBoolValue(); } }, + { "claims", n => { Claims = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_claims.CreateFromDiscriminatorValue); } }, + { "clientAuthenticatorType", n => { ClientAuthenticatorType = n.GetStringValue(); } }, + { "clientId", n => { ClientId = n.GetStringValue(); } }, + { "clientTemplate", n => { ClientTemplate = n.GetStringValue(); } }, + { "consentRequired", n => { ConsentRequired = n.GetBoolValue(); } }, + { "defaultClientScopes", n => { DefaultClientScopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "defaultRoles", n => { DefaultRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "directAccessGrantsEnabled", n => { DirectAccessGrantsEnabled = n.GetBoolValue(); } }, + { "directGrantsOnly", n => { DirectGrantsOnly = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "frontchannelLogout", n => { FrontchannelLogout = n.GetBoolValue(); } }, + { "fullScopeAllowed", n => { FullScopeAllowed = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "implicitFlowEnabled", n => { ImplicitFlowEnabled = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "nodeReRegistrationTimeout", n => { NodeReRegistrationTimeout = n.GetIntValue(); } }, + { "notBefore", n => { NotBefore = n.GetIntValue(); } }, + { "optionalClientScopes", n => { OptionalClientScopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "origin", n => { Origin = n.GetStringValue(); } }, + { "protocol", n => { Protocol = n.GetStringValue(); } }, + { "protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "publicClient", n => { PublicClient = n.GetBoolValue(); } }, + { "redirectUris", n => { RedirectUris = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "registeredNodes", n => { RegisteredNodes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_registeredNodes.CreateFromDiscriminatorValue); } }, + { "registrationAccessToken", n => { RegistrationAccessToken = n.GetStringValue(); } }, + { "rootUrl", n => { RootUrl = n.GetStringValue(); } }, + { "secret", n => { Secret = n.GetStringValue(); } }, + { "serviceAccountsEnabled", n => { ServiceAccountsEnabled = n.GetBoolValue(); } }, + { "standardFlowEnabled", n => { StandardFlowEnabled = n.GetBoolValue(); } }, + { "surrogateAuthRequired", n => { SurrogateAuthRequired = n.GetBoolValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "useTemplateConfig", n => { UseTemplateConfig = n.GetBoolValue(); } }, + { "useTemplateMappers", n => { UseTemplateMappers = n.GetBoolValue(); } }, + { "useTemplateScope", n => { UseTemplateScope = n.GetBoolValue(); } }, + { "webOrigins", n => { WebOrigins = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("access", Access); + writer.WriteObjectValue("access", Access); writer.WriteStringValue("adminUrl", AdminUrl); writer.WriteBoolValue("alwaysDisplayInConsole", AlwaysDisplayInConsole); - writer.WriteObjectValue("attributes", Attributes); - writer.WriteObjectValue("authenticationFlowBindingOverrides", AuthenticationFlowBindingOverrides); + writer.WriteObjectValue("attributes", Attributes); + writer.WriteObjectValue("authenticationFlowBindingOverrides", AuthenticationFlowBindingOverrides); writer.WriteBoolValue("authorizationServicesEnabled", AuthorizationServicesEnabled); - writer.WriteObjectValue("authorizationSettings", AuthorizationSettings); + writer.WriteObjectValue("authorizationSettings", AuthorizationSettings); writer.WriteStringValue("baseUrl", BaseUrl); writer.WriteBoolValue("bearerOnly", BearerOnly); - writer.WriteObjectValue("claims", Claims); + writer.WriteObjectValue("claims", Claims); writer.WriteStringValue("clientAuthenticatorType", ClientAuthenticatorType); writer.WriteStringValue("clientId", ClientId); writer.WriteStringValue("clientTemplate", ClientTemplate); @@ -357,16 +376,17 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfPrimitiveValues("optionalClientScopes", OptionalClientScopes); writer.WriteStringValue("origin", Origin); writer.WriteStringValue("protocol", Protocol); - writer.WriteCollectionOfObjectValues("protocolMappers", ProtocolMappers); + writer.WriteCollectionOfObjectValues("protocolMappers", ProtocolMappers); writer.WriteBoolValue("publicClient", PublicClient); writer.WriteCollectionOfPrimitiveValues("redirectUris", RedirectUris); - writer.WriteObjectValue("registeredNodes", RegisteredNodes); + writer.WriteObjectValue("registeredNodes", RegisteredNodes); writer.WriteStringValue("registrationAccessToken", RegistrationAccessToken); writer.WriteStringValue("rootUrl", RootUrl); writer.WriteStringValue("secret", Secret); writer.WriteBoolValue("serviceAccountsEnabled", ServiceAccountsEnabled); writer.WriteBoolValue("standardFlowEnabled", StandardFlowEnabled); writer.WriteBoolValue("surrogateAuthRequired", SurrogateAuthRequired); + writer.WriteStringValue("type", Type); writer.WriteBoolValue("useTemplateConfig", UseTemplateConfig); writer.WriteBoolValue("useTemplateMappers", UseTemplateMappers); writer.WriteBoolValue("useTemplateScope", UseTemplateScope); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_access.cs index f7c8ba15..ed3375c7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_access.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class OAuthClientRepresentation_access : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OAuthClientRepresentation_access : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public OAuthClientRepresentation_access() { + public OAuthClientRepresentation_access() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OAuthClientRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OAuthClientRepresentation_access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_access(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_attributes.cs index 1ac797cf..61267270 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_attributes.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class OAuthClientRepresentation_attributes : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OAuthClientRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public OAuthClientRepresentation_attributes() { + public OAuthClientRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OAuthClientRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OAuthClientRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_attributes(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_authenticationFlowBindingOverrides.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_authenticationFlowBindingOverrides.cs index 8f46c011..589740a1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_authenticationFlowBindingOverrides.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_authenticationFlowBindingOverrides.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class OAuthClientRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OAuthClientRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public OAuthClientRepresentation_authenticationFlowBindingOverrides() { + public OAuthClientRepresentation_authenticationFlowBindingOverrides() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OAuthClientRepresentation_authenticationFlowBindingOverrides CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_authenticationFlowBindingOverrides CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OAuthClientRepresentation_authenticationFlowBindingOverrides(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_authenticationFlowBindingOverrides(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_claims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_claims.cs index c506cb36..4a7d9675 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_claims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_claims.cs @@ -1,34 +1,43 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ [Obsolete("")] - public class OAuthClientRepresentation_claims : ClaimRepresentation, IParsable { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OAuthClientRepresentation_claims : global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClaimRepresentation, IParsable + #pragma warning restore CS1591 + { /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new OAuthClientRepresentation_claims CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_claims CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OAuthClientRepresentation_claims(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_claims(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public override IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public override void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_registeredNodes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_registeredNodes.cs index 68ebee44..95d607c5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_registeredNodes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_registeredNodes.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class OAuthClientRepresentation_registeredNodes : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OAuthClientRepresentation_registeredNodes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public OAuthClientRepresentation_registeredNodes() { + public OAuthClientRepresentation_registeredNodes() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static OAuthClientRepresentation_registeredNodes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_registeredNodes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OAuthClientRepresentation_registeredNodes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_registeredNodes(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationDomainRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationDomainRepresentation.cs new file mode 100644 index 00000000..7867fe4e --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationDomainRepresentation.cs @@ -0,0 +1,67 @@ +// +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OrganizationDomainRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { get; set; } +#nullable restore +#else + public string Name { get; set; } +#endif + /// The verified property + public bool? Verified { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public OrganizationDomainRepresentation() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationDomainRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationDomainRepresentation(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "name", n => { Name = n.GetStringValue(); } }, + { "verified", n => { Verified = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("name", Name); + writer.WriteBoolValue("verified", Verified); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation.cs new file mode 100644 index 00000000..411fdc0d --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation.cs @@ -0,0 +1,127 @@ +// +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OrganizationRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The attributes property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation_attributes? Attributes { get; set; } +#nullable restore +#else + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation_attributes Attributes { get; set; } +#endif + /// The description property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { get; set; } +#nullable restore +#else + public string Description { get; set; } +#endif + /// The domains property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Domains { get; set; } +#nullable restore +#else + public List Domains { get; set; } +#endif + /// The enabled property + public bool? Enabled { get; set; } + /// The id property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Id { get; set; } +#nullable restore +#else + public string Id { get; set; } +#endif + /// The identityProviders property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? IdentityProviders { get; set; } +#nullable restore +#else + public List IdentityProviders { get; set; } +#endif + /// The members property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Members { get; set; } +#nullable restore +#else + public List Members { get; set; } +#endif + /// The name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { get; set; } +#nullable restore +#else + public string Name { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public OrganizationRepresentation() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "attributes", n => { Attributes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "domains", n => { Domains = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationDomainRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "identityProviders", n => { IdentityProviders = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "members", n => { Members = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("attributes", Attributes); + writer.WriteStringValue("description", Description); + writer.WriteCollectionOfObjectValues("domains", Domains); + writer.WriteBoolValue("enabled", Enabled); + writer.WriteStringValue("id", Id); + writer.WriteCollectionOfObjectValues("identityProviders", IdentityProviders); + writer.WriteCollectionOfObjectValues("members", Members); + writer.WriteStringValue("name", Name); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation_attributes.cs new file mode 100644 index 00000000..be80f265 --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation_attributes.cs @@ -0,0 +1,53 @@ +// +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class OrganizationRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public OrganizationRepresentation_attributes() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation_attributes(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission.cs index aec44803..c7714838 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class Permission : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Permission : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The claims property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Permission_claims? Claims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission_claims? Claims { get; set; } #nullable restore #else - public Permission_claims Claims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission_claims Claims { get; set; } #endif /// The rsid property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -41,39 +46,44 @@ public class Permission : IAdditionalDataHolder, IParsable { public List Scopes { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public Permission() { + public Permission() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Permission CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Permission(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"claims", n => { Claims = n.GetObjectValue(Permission_claims.CreateFromDiscriminatorValue); } }, - {"rsid", n => { Rsid = n.GetStringValue(); } }, - {"rsname", n => { Rsname = n.GetStringValue(); } }, - {"scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "claims", n => { Claims = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission_claims.CreateFromDiscriminatorValue); } }, + { "rsid", n => { Rsid = n.GetStringValue(); } }, + { "rsname", n => { Rsname = n.GetStringValue(); } }, + { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("claims", Claims); + writer.WriteObjectValue("claims", Claims); writer.WriteStringValue("rsid", Rsid); writer.WriteStringValue("rsname", Rsname); writer.WriteCollectionOfPrimitiveValues("scopes", Scopes); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission_claims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission_claims.cs index 81e57f02..16559f53 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission_claims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission_claims.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class Permission_claims : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class Permission_claims : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public Permission_claims() { + public Permission_claims() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Permission_claims CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission_claims CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Permission_claims(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission_claims(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEnforcementMode.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEnforcementMode.cs index b90f3c88..99d9e59d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEnforcementMode.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEnforcementMode.cs @@ -1,13 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public enum PolicyEnforcementMode { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public enum PolicyEnforcementMode + #pragma warning restore CS1591 + { [EnumMember(Value = "ENFORCING")] + #pragma warning disable CS1591 ENFORCING, + #pragma warning restore CS1591 [EnumMember(Value = "PERMISSIVE")] + #pragma warning disable CS1591 PERMISSIVE, + #pragma warning restore CS1591 [EnumMember(Value = "DISABLED")] + #pragma warning disable CS1591 DISABLED, + #pragma warning restore CS1591 } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest.cs index 7a832ed2..acc382e4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class PolicyEvaluationRequest : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PolicyEvaluationRequest : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The clientId property @@ -19,20 +24,20 @@ public class PolicyEvaluationRequest : IAdditionalDataHolder, IParsable { /// The context property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PolicyEvaluationRequest_context? Context { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest_context? Context { get; set; } #nullable restore #else - public PolicyEvaluationRequest_context Context { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest_context Context { get; set; } #endif /// The entitlements property public bool? Entitlements { get; set; } /// The resources property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Resources { get; set; } + public List? Resources { get; set; } #nullable restore #else - public List Resources { get; set; } + public List Resources { get; set; } #endif /// The roleIds property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -51,44 +56,49 @@ public class PolicyEvaluationRequest : IAdditionalDataHolder, IParsable { public string UserId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public PolicyEvaluationRequest() { + public PolicyEvaluationRequest() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PolicyEvaluationRequest CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PolicyEvaluationRequest(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"clientId", n => { ClientId = n.GetStringValue(); } }, - {"context", n => { Context = n.GetObjectValue(PolicyEvaluationRequest_context.CreateFromDiscriminatorValue); } }, - {"entitlements", n => { Entitlements = n.GetBoolValue(); } }, - {"resources", n => { Resources = n.GetCollectionOfObjectValues(ResourceRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"roleIds", n => { RoleIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"userId", n => { UserId = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "clientId", n => { ClientId = n.GetStringValue(); } }, + { "context", n => { Context = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest_context.CreateFromDiscriminatorValue); } }, + { "entitlements", n => { Entitlements = n.GetBoolValue(); } }, + { "resources", n => { Resources = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "roleIds", n => { RoleIds = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "userId", n => { UserId = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientId", ClientId); - writer.WriteObjectValue("context", Context); + writer.WriteObjectValue("context", Context); writer.WriteBoolValue("entitlements", Entitlements); - writer.WriteCollectionOfObjectValues("resources", Resources); + writer.WriteCollectionOfObjectValues("resources", Resources); writer.WriteCollectionOfPrimitiveValues("roleIds", RoleIds); writer.WriteStringValue("userId", UserId); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest_context.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest_context.cs index 7ae7dbcb..24ec1cb6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest_context.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest_context.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class PolicyEvaluationRequest_context : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PolicyEvaluationRequest_context : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public PolicyEvaluationRequest_context() { + public PolicyEvaluationRequest_context() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PolicyEvaluationRequest_context CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest_context CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PolicyEvaluationRequest_context(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest_context(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationResponse.cs index 0d14f713..a3b76db0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationResponse.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class PolicyEvaluationResponse : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PolicyEvaluationResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The entitlements property @@ -13,58 +18,63 @@ public class PolicyEvaluationResponse : IAdditionalDataHolder, IParsable { /// The results property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Results { get; set; } + public List? Results { get; set; } #nullable restore #else - public List Results { get; set; } + public List Results { get; set; } #endif /// The rpt property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public AccessToken? Rpt { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken? Rpt { get; set; } #nullable restore #else - public AccessToken Rpt { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken Rpt { get; set; } #endif /// The status property - public DecisionEffect? Status { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.DecisionEffect? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public PolicyEvaluationResponse() { + public PolicyEvaluationResponse() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PolicyEvaluationResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PolicyEvaluationResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationResponse(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"entitlements", n => { Entitlements = n.GetBoolValue(); } }, - {"results", n => { Results = n.GetCollectionOfObjectValues(EvaluationResultRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"rpt", n => { Rpt = n.GetObjectValue(AccessToken.CreateFromDiscriminatorValue); } }, - {"status", n => { Status = n.GetEnumValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "entitlements", n => { Entitlements = n.GetBoolValue(); } }, + { "results", n => { Results = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EvaluationResultRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "rpt", n => { Rpt = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken.CreateFromDiscriminatorValue); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("entitlements", Entitlements); - writer.WriteCollectionOfObjectValues("results", Results); - writer.WriteObjectValue("rpt", Rpt); - writer.WriteEnumValue("status", Status); + writer.WriteCollectionOfObjectValues("results", Results); + writer.WriteObjectValue("rpt", Rpt); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyProviderRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyProviderRepresentation.cs index 1f7c14e9..56f5608a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyProviderRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyProviderRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class PolicyProviderRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PolicyProviderRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The group property @@ -33,36 +38,41 @@ public class PolicyProviderRepresentation : IAdditionalDataHolder, IParsable { public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public PolicyProviderRepresentation() { + public PolicyProviderRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PolicyProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PolicyProviderRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyProviderRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"group", n => { Group = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "group", n => { Group = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("group", Group); writer.WriteStringValue("name", Name); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation.cs index f4842deb..8436bafa 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation.cs @@ -1,23 +1,28 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class PolicyRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PolicyRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PolicyRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation_config? Config { get; set; } #nullable restore #else - public PolicyRepresentation_config Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation_config Config { get; set; } #endif /// The decisionStrategy property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.DecisionStrategy? DecisionStrategy { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.DecisionStrategy? DecisionStrategy { get; set; } /// The description property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -35,7 +40,7 @@ public class PolicyRepresentation : IAdditionalDataHolder, IParsable { public string Id { get; set; } #endif /// The logic property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Logic? Logic { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Logic? Logic { get; set; } /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -71,10 +76,10 @@ public class PolicyRepresentation : IAdditionalDataHolder, IParsable { /// The resourcesData property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ResourcesData { get; set; } + public List? ResourcesData { get; set; } #nullable restore #else - public List ResourcesData { get; set; } + public List ResourcesData { get; set; } #endif /// The scopes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,10 +92,10 @@ public class PolicyRepresentation : IAdditionalDataHolder, IParsable { /// The scopesData property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ScopesData { get; set; } + public List? ScopesData { get; set; } #nullable restore #else - public List ScopesData { get; set; } + public List ScopesData { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -101,59 +106,64 @@ public class PolicyRepresentation : IAdditionalDataHolder, IParsable { public string Type { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public PolicyRepresentation() { + public PolicyRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PolicyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PolicyRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"config", n => { Config = n.GetObjectValue(PolicyRepresentation_config.CreateFromDiscriminatorValue); } }, - {"decisionStrategy", n => { DecisionStrategy = n.GetEnumValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"logic", n => { Logic = n.GetEnumValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"owner", n => { Owner = n.GetStringValue(); } }, - {"policies", n => { Policies = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"resources", n => { Resources = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"resourcesData", n => { ResourcesData = n.GetCollectionOfObjectValues(ResourceRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"scopesData", n => { ScopesData = n.GetCollectionOfObjectValues(ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"type", n => { Type = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation_config.CreateFromDiscriminatorValue); } }, + { "decisionStrategy", n => { DecisionStrategy = n.GetEnumValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "logic", n => { Logic = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetStringValue(); } }, + { "policies", n => { Policies = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "resources", n => { Resources = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "resourcesData", n => { ResourcesData = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "scopesData", n => { ScopesData = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "type", n => { Type = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("config", Config); - writer.WriteEnumValue("decisionStrategy", DecisionStrategy); + writer.WriteObjectValue("config", Config); + writer.WriteEnumValue("decisionStrategy", DecisionStrategy); writer.WriteStringValue("description", Description); writer.WriteStringValue("id", Id); - writer.WriteEnumValue("logic", Logic); + writer.WriteEnumValue("logic", Logic); writer.WriteStringValue("name", Name); writer.WriteStringValue("owner", Owner); writer.WriteCollectionOfPrimitiveValues("policies", Policies); writer.WriteCollectionOfPrimitiveValues("resources", Resources); - writer.WriteCollectionOfObjectValues("resourcesData", ResourcesData); + writer.WriteCollectionOfObjectValues("resourcesData", ResourcesData); writer.WriteCollectionOfPrimitiveValues("scopes", Scopes); - writer.WriteCollectionOfObjectValues("scopesData", ScopesData); + writer.WriteCollectionOfObjectValues("scopesData", ScopesData); writer.WriteStringValue("type", Type); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation_config.cs index 7054a080..186c5112 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation_config.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class PolicyRepresentation_config : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PolicyRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public PolicyRepresentation_config() { + public PolicyRepresentation_config() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PolicyRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PolicyRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation_config(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyResultRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyResultRepresentation.cs index cc52c224..33ec351b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyResultRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyResultRepresentation.cs @@ -1,28 +1,33 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class PolicyResultRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class PolicyResultRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The associatedPolicies property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? AssociatedPolicies { get; set; } + public List? AssociatedPolicies { get; set; } #nullable restore #else - public List AssociatedPolicies { get; set; } + public List AssociatedPolicies { get; set; } #endif /// The policy property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public PolicyRepresentation? Policy { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation? Policy { get; set; } #nullable restore #else - public PolicyRepresentation Policy { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation Policy { get; set; } #endif /// The scopes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -33,44 +38,49 @@ public class PolicyResultRepresentation : IAdditionalDataHolder, IParsable { public List Scopes { get; set; } #endif /// The status property - public DecisionEffect? Status { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.DecisionEffect? Status { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public PolicyResultRepresentation() { + public PolicyResultRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static PolicyResultRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyResultRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PolicyResultRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyResultRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"associatedPolicies", n => { AssociatedPolicies = n.GetCollectionOfObjectValues(PolicyResultRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"policy", n => { Policy = n.GetObjectValue(PolicyRepresentation.CreateFromDiscriminatorValue); } }, - {"scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "associatedPolicies", n => { AssociatedPolicies = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyResultRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "policy", n => { Policy = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation.CreateFromDiscriminatorValue); } }, + { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "status", n => { Status = n.GetEnumValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("associatedPolicies", AssociatedPolicies); - writer.WriteObjectValue("policy", Policy); + writer.WriteCollectionOfObjectValues("associatedPolicies", AssociatedPolicies); + writer.WriteObjectValue("policy", Policy); writer.WriteCollectionOfPrimitiveValues("scopes", Scopes); - writer.WriteEnumValue("status", Status); + writer.WriteEnumValue("status", Status); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperEvaluationRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperEvaluationRepresentation.cs index 644a1273..be5639f8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperEvaluationRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperEvaluationRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ProtocolMapperEvaluationRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ProtocolMapperEvaluationRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The containerId property @@ -57,39 +62,44 @@ public class ProtocolMapperEvaluationRepresentation : IAdditionalDataHolder, IPa public string ProtocolMapper { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ProtocolMapperEvaluationRepresentation() { + public ProtocolMapperEvaluationRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtocolMapperEvaluationRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperEvaluationRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtocolMapperEvaluationRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperEvaluationRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"containerId", n => { ContainerId = n.GetStringValue(); } }, - {"containerName", n => { ContainerName = n.GetStringValue(); } }, - {"containerType", n => { ContainerType = n.GetStringValue(); } }, - {"mapperId", n => { MapperId = n.GetStringValue(); } }, - {"mapperName", n => { MapperName = n.GetStringValue(); } }, - {"protocolMapper", n => { ProtocolMapper = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "containerId", n => { ContainerId = n.GetStringValue(); } }, + { "containerName", n => { ContainerName = n.GetStringValue(); } }, + { "containerType", n => { ContainerType = n.GetStringValue(); } }, + { "mapperId", n => { MapperId = n.GetStringValue(); } }, + { "mapperName", n => { MapperName = n.GetStringValue(); } }, + { "protocolMapper", n => { ProtocolMapper = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("containerId", ContainerId); writer.WriteStringValue("containerName", ContainerName); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation.cs index c12182f2..ea36119b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ProtocolMapperRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ProtocolMapperRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ProtocolMapperRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation_config? Config { get; set; } #nullable restore #else - public ProtocolMapperRepresentation_config Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation_config Config { get; set; } #endif /// The consentRequired property [Obsolete("")] @@ -61,42 +66,47 @@ public class ProtocolMapperRepresentation : IAdditionalDataHolder, IParsable { public string ProtocolMapper { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ProtocolMapperRepresentation() { + public ProtocolMapperRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtocolMapperRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtocolMapperRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"config", n => { Config = n.GetObjectValue(ProtocolMapperRepresentation_config.CreateFromDiscriminatorValue); } }, - {"consentRequired", n => { ConsentRequired = n.GetBoolValue(); } }, - {"consentText", n => { ConsentText = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"protocol", n => { Protocol = n.GetStringValue(); } }, - {"protocolMapper", n => { ProtocolMapper = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation_config.CreateFromDiscriminatorValue); } }, + { "consentRequired", n => { ConsentRequired = n.GetBoolValue(); } }, + { "consentText", n => { ConsentText = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "protocol", n => { Protocol = n.GetStringValue(); } }, + { "protocolMapper", n => { ProtocolMapper = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteBoolValue("consentRequired", ConsentRequired); writer.WriteStringValue("consentText", ConsentText); writer.WriteStringValue("id", Id); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation_config.cs index e5b28d9c..551e8415 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation_config.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ProtocolMapperRepresentation_config : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ProtocolMapperRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ProtocolMapperRepresentation_config() { + public ProtocolMapperRepresentation_config() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ProtocolMapperRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProtocolMapperRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation_config(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmEventsConfigRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmEventsConfigRepresentation.cs index 493dd399..55e7054c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmEventsConfigRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmEventsConfigRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RealmEventsConfigRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RealmEventsConfigRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The adminEventsDetailsEnabled property @@ -33,39 +38,44 @@ public class RealmEventsConfigRepresentation : IAdditionalDataHolder, IParsable public List EventsListeners { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RealmEventsConfigRepresentation() { + public RealmEventsConfigRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RealmEventsConfigRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmEventsConfigRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RealmEventsConfigRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmEventsConfigRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"adminEventsDetailsEnabled", n => { AdminEventsDetailsEnabled = n.GetBoolValue(); } }, - {"adminEventsEnabled", n => { AdminEventsEnabled = n.GetBoolValue(); } }, - {"enabledEventTypes", n => { EnabledEventTypes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"eventsEnabled", n => { EventsEnabled = n.GetBoolValue(); } }, - {"eventsExpiration", n => { EventsExpiration = n.GetLongValue(); } }, - {"eventsListeners", n => { EventsListeners = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "adminEventsDetailsEnabled", n => { AdminEventsDetailsEnabled = n.GetBoolValue(); } }, + { "adminEventsEnabled", n => { AdminEventsEnabled = n.GetBoolValue(); } }, + { "enabledEventTypes", n => { EnabledEventTypes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "eventsEnabled", n => { EventsEnabled = n.GetBoolValue(); } }, + { "eventsExpiration", n => { EventsExpiration = n.GetLongValue(); } }, + { "eventsListeners", n => { EventsListeners = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("adminEventsDetailsEnabled", AdminEventsDetailsEnabled); writer.WriteBoolValue("adminEventsEnabled", AdminEventsEnabled); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs index 5f5189a8..c6972cbc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RealmRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RealmRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The accessCodeLifespan property public int? AccessCodeLifespan { get; set; } /// The accessCodeLifespanLogin property @@ -46,43 +51,43 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Applications { get; set; } + public List? Applications { get; set; } #nullable restore #else - public List Applications { get; set; } + public List Applications { get; set; } #endif /// The applicationScopeMappings property [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RealmRepresentation_applicationScopeMappings? ApplicationScopeMappings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_applicationScopeMappings? ApplicationScopeMappings { get; set; } #nullable restore #else - public RealmRepresentation_applicationScopeMappings ApplicationScopeMappings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_applicationScopeMappings ApplicationScopeMappings { get; set; } #endif /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RealmRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public RealmRepresentation_attributes Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_attributes Attributes { get; set; } #endif /// The authenticationFlows property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? AuthenticationFlows { get; set; } + public List? AuthenticationFlows { get; set; } #nullable restore #else - public List AuthenticationFlows { get; set; } + public List AuthenticationFlows { get; set; } #endif /// The authenticatorConfig property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? AuthenticatorConfig { get; set; } + public List? AuthenticatorConfig { get; set; } #nullable restore #else - public List AuthenticatorConfig { get; set; } + public List AuthenticatorConfig { get; set; } #endif /// The browserFlow property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -95,10 +100,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { /// The browserSecurityHeaders property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RealmRepresentation_browserSecurityHeaders? BrowserSecurityHeaders { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_browserSecurityHeaders? BrowserSecurityHeaders { get; set; } #nullable restore #else - public RealmRepresentation_browserSecurityHeaders BrowserSecurityHeaders { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_browserSecurityHeaders BrowserSecurityHeaders { get; set; } #endif /// The bruteForceProtected property public bool? BruteForceProtected { get; set; } @@ -126,42 +131,42 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { /// The clientPolicies property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ClientPoliciesRepresentation? ClientPolicies { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation? ClientPolicies { get; set; } #nullable restore #else - public ClientPoliciesRepresentation ClientPolicies { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation ClientPolicies { get; set; } #endif /// The clientProfiles property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ClientProfilesRepresentation? ClientProfiles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation? ClientProfiles { get; set; } #nullable restore #else - public ClientProfilesRepresentation ClientProfiles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation ClientProfiles { get; set; } #endif /// The clients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Clients { get; set; } + public List? Clients { get; set; } #nullable restore #else - public List Clients { get; set; } + public List Clients { get; set; } #endif /// The clientScopeMappings property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RealmRepresentation_clientScopeMappings? ClientScopeMappings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_clientScopeMappings? ClientScopeMappings { get; set; } #nullable restore #else - public RealmRepresentation_clientScopeMappings ClientScopeMappings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_clientScopeMappings ClientScopeMappings { get; set; } #endif /// The clientScopes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ClientScopes { get; set; } + public List? ClientScopes { get; set; } #nullable restore #else - public List ClientScopes { get; set; } + public List ClientScopes { get; set; } #endif /// The clientSessionIdleTimeout property public int? ClientSessionIdleTimeout { get; set; } @@ -171,10 +176,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ClientTemplates { get; set; } + public List? ClientTemplates { get; set; } #nullable restore #else - public List ClientTemplates { get; set; } + public List ClientTemplates { get; set; } #endif /// The codeSecret property [Obsolete("")] @@ -188,10 +193,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { /// The components property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MultivaluedHashMapStringComponentExportRepresentation? Components { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringComponentExportRepresentation? Components { get; set; } #nullable restore #else - public MultivaluedHashMapStringComponentExportRepresentation Components { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringComponentExportRepresentation Components { get; set; } #endif /// The defaultDefaultClientScopes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -228,10 +233,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { /// The defaultRole property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RoleRepresentation? DefaultRole { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation? DefaultRole { get; set; } #nullable restore #else - public RoleRepresentation DefaultRole { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation DefaultRole { get; set; } #endif /// The defaultRoles property [Obsolete("")] @@ -321,10 +326,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { /// The federatedUsers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? FederatedUsers { get; set; } + public List? FederatedUsers { get; set; } #nullable restore #else - public List FederatedUsers { get; set; } + public List FederatedUsers { get; set; } #endif /// The firstBrokerLoginFlow property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -337,10 +342,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { /// The groups property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Groups { get; set; } + public List? Groups { get; set; } #nullable restore #else - public List Groups { get; set; } + public List Groups { get; set; } #endif /// The id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -353,18 +358,18 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { /// The identityProviderMappers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? IdentityProviderMappers { get; set; } + public List? IdentityProviderMappers { get; set; } #nullable restore #else - public List IdentityProviderMappers { get; set; } + public List IdentityProviderMappers { get; set; } #endif /// The identityProviders property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? IdentityProviders { get; set; } + public List? IdentityProviders { get; set; } #nullable restore #else - public List IdentityProviders { get; set; } + public List IdentityProviders { get; set; } #endif /// The internationalizationEnabled property public bool? InternationalizationEnabled { get; set; } @@ -379,10 +384,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { /// The localizationTexts property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RealmRepresentation_localizationTexts? LocalizationTexts { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_localizationTexts? LocalizationTexts { get; set; } #nullable restore #else - public RealmRepresentation_localizationTexts LocalizationTexts { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_localizationTexts LocalizationTexts { get; set; } #endif /// The loginTheme property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -412,10 +417,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? OauthClients { get; set; } + public List? OauthClients { get; set; } #nullable restore #else - public List OauthClients { get; set; } + public List OauthClients { get; set; } #endif /// The offlineSessionIdleTimeout property public int? OfflineSessionIdleTimeout { get; set; } @@ -423,6 +428,16 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { public int? OfflineSessionMaxLifespan { get; set; } /// The offlineSessionMaxLifespanEnabled property public bool? OfflineSessionMaxLifespanEnabled { get; set; } + /// The organizations property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Organizations { get; set; } +#nullable restore +#else + public List Organizations { get; set; } +#endif + /// The organizationsEnabled property + public bool? OrganizationsEnabled { get; set; } /// The otpPolicyAlgorithm property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -482,10 +497,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { /// The protocolMappers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ProtocolMappers { get; set; } + public List? ProtocolMappers { get; set; } #nullable restore #else - public List ProtocolMappers { get; set; } + public List ProtocolMappers { get; set; } #endif /// The publicKey property [Obsolete("")] @@ -532,10 +547,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { /// The requiredActions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? RequiredActions { get; set; } + public List? RequiredActions { get; set; } #nullable restore #else - public List RequiredActions { get; set; } + public List RequiredActions { get; set; } #endif /// The requiredCredentials property [Obsolete("")] @@ -561,26 +576,26 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { /// The roles property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RolesRepresentation? Roles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation? Roles { get; set; } #nullable restore #else - public RolesRepresentation Roles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation Roles { get; set; } #endif /// The scopeMappings property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ScopeMappings { get; set; } + public List? ScopeMappings { get; set; } #nullable restore #else - public List ScopeMappings { get; set; } + public List ScopeMappings { get; set; } #endif /// The smtpServer property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RealmRepresentation_smtpServer? SmtpServer { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_smtpServer? SmtpServer { get; set; } #nullable restore #else - public RealmRepresentation_smtpServer SmtpServer { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_smtpServer SmtpServer { get; set; } #endif /// The social property [Obsolete("")] @@ -589,10 +604,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RealmRepresentation_socialProviders? SocialProviders { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_socialProviders? SocialProviders { get; set; } #nullable restore #else - public RealmRepresentation_socialProviders SocialProviders { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_socialProviders SocialProviders { get; set; } #endif /// The sslRequired property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -627,28 +642,28 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { /// The userFederationMappers property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? UserFederationMappers { get; set; } + public List? UserFederationMappers { get; set; } #nullable restore #else - public List UserFederationMappers { get; set; } + public List UserFederationMappers { get; set; } #endif /// The userFederationProviders property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? UserFederationProviders { get; set; } + public List? UserFederationProviders { get; set; } #nullable restore #else - public List UserFederationProviders { get; set; } + public List UserFederationProviders { get; set; } #endif /// The userManagedAccessAllowed property public bool? UserManagedAccessAllowed { get; set; } /// The users property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Users { get; set; } + public List? Users { get; set; } #nullable restore #else - public List Users { get; set; } + public List Users { get; set; } #endif /// The verifyEmail property public bool? VerifyEmail { get; set; } @@ -807,178 +822,185 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable { public string WebAuthnPolicyUserVerificationRequirement { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RealmRepresentation() { + public RealmRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RealmRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"accessCodeLifespan", n => { AccessCodeLifespan = n.GetIntValue(); } }, - {"accessCodeLifespanLogin", n => { AccessCodeLifespanLogin = n.GetIntValue(); } }, - {"accessCodeLifespanUserAction", n => { AccessCodeLifespanUserAction = n.GetIntValue(); } }, - {"accessTokenLifespan", n => { AccessTokenLifespan = n.GetIntValue(); } }, - {"accessTokenLifespanForImplicitFlow", n => { AccessTokenLifespanForImplicitFlow = n.GetIntValue(); } }, - {"accountTheme", n => { AccountTheme = n.GetStringValue(); } }, - {"actionTokenGeneratedByAdminLifespan", n => { ActionTokenGeneratedByAdminLifespan = n.GetIntValue(); } }, - {"actionTokenGeneratedByUserLifespan", n => { ActionTokenGeneratedByUserLifespan = n.GetIntValue(); } }, - {"adminEventsDetailsEnabled", n => { AdminEventsDetailsEnabled = n.GetBoolValue(); } }, - {"adminEventsEnabled", n => { AdminEventsEnabled = n.GetBoolValue(); } }, - {"adminTheme", n => { AdminTheme = n.GetStringValue(); } }, - {"applicationScopeMappings", n => { ApplicationScopeMappings = n.GetObjectValue(RealmRepresentation_applicationScopeMappings.CreateFromDiscriminatorValue); } }, - {"applications", n => { Applications = n.GetCollectionOfObjectValues(ApplicationRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"attributes", n => { Attributes = n.GetObjectValue(RealmRepresentation_attributes.CreateFromDiscriminatorValue); } }, - {"authenticationFlows", n => { AuthenticationFlows = n.GetCollectionOfObjectValues(AuthenticationFlowRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"authenticatorConfig", n => { AuthenticatorConfig = n.GetCollectionOfObjectValues(AuthenticatorConfigRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"browserFlow", n => { BrowserFlow = n.GetStringValue(); } }, - {"browserSecurityHeaders", n => { BrowserSecurityHeaders = n.GetObjectValue(RealmRepresentation_browserSecurityHeaders.CreateFromDiscriminatorValue); } }, - {"bruteForceProtected", n => { BruteForceProtected = n.GetBoolValue(); } }, - {"certificate", n => { Certificate = n.GetStringValue(); } }, - {"clientAuthenticationFlow", n => { ClientAuthenticationFlow = n.GetStringValue(); } }, - {"clientOfflineSessionIdleTimeout", n => { ClientOfflineSessionIdleTimeout = n.GetIntValue(); } }, - {"clientOfflineSessionMaxLifespan", n => { ClientOfflineSessionMaxLifespan = n.GetIntValue(); } }, - {"clientPolicies", n => { ClientPolicies = n.GetObjectValue(ClientPoliciesRepresentation.CreateFromDiscriminatorValue); } }, - {"clientProfiles", n => { ClientProfiles = n.GetObjectValue(ClientProfilesRepresentation.CreateFromDiscriminatorValue); } }, - {"clientScopeMappings", n => { ClientScopeMappings = n.GetObjectValue(RealmRepresentation_clientScopeMappings.CreateFromDiscriminatorValue); } }, - {"clientScopes", n => { ClientScopes = n.GetCollectionOfObjectValues(ClientScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"clientSessionIdleTimeout", n => { ClientSessionIdleTimeout = n.GetIntValue(); } }, - {"clientSessionMaxLifespan", n => { ClientSessionMaxLifespan = n.GetIntValue(); } }, - {"clientTemplates", n => { ClientTemplates = n.GetCollectionOfObjectValues(ClientTemplateRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"clients", n => { Clients = n.GetCollectionOfObjectValues(ClientRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"codeSecret", n => { CodeSecret = n.GetStringValue(); } }, - {"components", n => { Components = n.GetObjectValue(MultivaluedHashMapStringComponentExportRepresentation.CreateFromDiscriminatorValue); } }, - {"defaultDefaultClientScopes", n => { DefaultDefaultClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"defaultGroups", n => { DefaultGroups = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"defaultLocale", n => { DefaultLocale = n.GetStringValue(); } }, - {"defaultOptionalClientScopes", n => { DefaultOptionalClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"defaultRole", n => { DefaultRole = n.GetObjectValue(RoleRepresentation.CreateFromDiscriminatorValue); } }, - {"defaultRoles", n => { DefaultRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"defaultSignatureAlgorithm", n => { DefaultSignatureAlgorithm = n.GetStringValue(); } }, - {"directGrantFlow", n => { DirectGrantFlow = n.GetStringValue(); } }, - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"displayNameHtml", n => { DisplayNameHtml = n.GetStringValue(); } }, - {"dockerAuthenticationFlow", n => { DockerAuthenticationFlow = n.GetStringValue(); } }, - {"duplicateEmailsAllowed", n => { DuplicateEmailsAllowed = n.GetBoolValue(); } }, - {"editUsernameAllowed", n => { EditUsernameAllowed = n.GetBoolValue(); } }, - {"emailTheme", n => { EmailTheme = n.GetStringValue(); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"enabledEventTypes", n => { EnabledEventTypes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"eventsEnabled", n => { EventsEnabled = n.GetBoolValue(); } }, - {"eventsExpiration", n => { EventsExpiration = n.GetLongValue(); } }, - {"eventsListeners", n => { EventsListeners = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"failureFactor", n => { FailureFactor = n.GetIntValue(); } }, - {"federatedUsers", n => { FederatedUsers = n.GetCollectionOfObjectValues(UserRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"firstBrokerLoginFlow", n => { FirstBrokerLoginFlow = n.GetStringValue(); } }, - {"groups", n => { Groups = n.GetCollectionOfObjectValues(GroupRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"identityProviderMappers", n => { IdentityProviderMappers = n.GetCollectionOfObjectValues(IdentityProviderMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"identityProviders", n => { IdentityProviders = n.GetCollectionOfObjectValues(IdentityProviderRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"internationalizationEnabled", n => { InternationalizationEnabled = n.GetBoolValue(); } }, - {"keycloakVersion", n => { KeycloakVersion = n.GetStringValue(); } }, - {"localizationTexts", n => { LocalizationTexts = n.GetObjectValue(RealmRepresentation_localizationTexts.CreateFromDiscriminatorValue); } }, - {"loginTheme", n => { LoginTheme = n.GetStringValue(); } }, - {"loginWithEmailAllowed", n => { LoginWithEmailAllowed = n.GetBoolValue(); } }, - {"maxDeltaTimeSeconds", n => { MaxDeltaTimeSeconds = n.GetIntValue(); } }, - {"maxFailureWaitSeconds", n => { MaxFailureWaitSeconds = n.GetIntValue(); } }, - {"maxTemporaryLockouts", n => { MaxTemporaryLockouts = n.GetIntValue(); } }, - {"minimumQuickLoginWaitSeconds", n => { MinimumQuickLoginWaitSeconds = n.GetIntValue(); } }, - {"notBefore", n => { NotBefore = n.GetIntValue(); } }, - {"oauth2DeviceCodeLifespan", n => { Oauth2DeviceCodeLifespan = n.GetIntValue(); } }, - {"oauth2DevicePollingInterval", n => { Oauth2DevicePollingInterval = n.GetIntValue(); } }, - {"oauthClients", n => { OauthClients = n.GetCollectionOfObjectValues(OAuthClientRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"offlineSessionIdleTimeout", n => { OfflineSessionIdleTimeout = n.GetIntValue(); } }, - {"offlineSessionMaxLifespan", n => { OfflineSessionMaxLifespan = n.GetIntValue(); } }, - {"offlineSessionMaxLifespanEnabled", n => { OfflineSessionMaxLifespanEnabled = n.GetBoolValue(); } }, - {"otpPolicyAlgorithm", n => { OtpPolicyAlgorithm = n.GetStringValue(); } }, - {"otpPolicyCodeReusable", n => { OtpPolicyCodeReusable = n.GetBoolValue(); } }, - {"otpPolicyDigits", n => { OtpPolicyDigits = n.GetIntValue(); } }, - {"otpPolicyInitialCounter", n => { OtpPolicyInitialCounter = n.GetIntValue(); } }, - {"otpPolicyLookAheadWindow", n => { OtpPolicyLookAheadWindow = n.GetIntValue(); } }, - {"otpPolicyPeriod", n => { OtpPolicyPeriod = n.GetIntValue(); } }, - {"otpPolicyType", n => { OtpPolicyType = n.GetStringValue(); } }, - {"otpSupportedApplications", n => { OtpSupportedApplications = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"passwordCredentialGrantAllowed", n => { PasswordCredentialGrantAllowed = n.GetBoolValue(); } }, - {"passwordPolicy", n => { PasswordPolicy = n.GetStringValue(); } }, - {"permanentLockout", n => { PermanentLockout = n.GetBoolValue(); } }, - {"privateKey", n => { PrivateKey = n.GetStringValue(); } }, - {"protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"publicKey", n => { PublicKey = n.GetStringValue(); } }, - {"quickLoginCheckMilliSeconds", n => { QuickLoginCheckMilliSeconds = n.GetLongValue(); } }, - {"realm", n => { Realm = n.GetStringValue(); } }, - {"realmCacheEnabled", n => { RealmCacheEnabled = n.GetBoolValue(); } }, - {"oAuth2DeviceCodeLifespan", n => { RealmRepresentationOAuth2DeviceCodeLifespan = n.GetIntValue(); } }, - {"oAuth2DevicePollingInterval", n => { RealmRepresentationOAuth2DevicePollingInterval = n.GetIntValue(); } }, - {"refreshTokenMaxReuse", n => { RefreshTokenMaxReuse = n.GetIntValue(); } }, - {"registrationAllowed", n => { RegistrationAllowed = n.GetBoolValue(); } }, - {"registrationEmailAsUsername", n => { RegistrationEmailAsUsername = n.GetBoolValue(); } }, - {"registrationFlow", n => { RegistrationFlow = n.GetStringValue(); } }, - {"rememberMe", n => { RememberMe = n.GetBoolValue(); } }, - {"requiredActions", n => { RequiredActions = n.GetCollectionOfObjectValues(RequiredActionProviderRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"requiredCredentials", n => { RequiredCredentials = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"resetCredentialsFlow", n => { ResetCredentialsFlow = n.GetStringValue(); } }, - {"resetPasswordAllowed", n => { ResetPasswordAllowed = n.GetBoolValue(); } }, - {"revokeRefreshToken", n => { RevokeRefreshToken = n.GetBoolValue(); } }, - {"roles", n => { Roles = n.GetObjectValue(RolesRepresentation.CreateFromDiscriminatorValue); } }, - {"scopeMappings", n => { ScopeMappings = n.GetCollectionOfObjectValues(ScopeMappingRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"smtpServer", n => { SmtpServer = n.GetObjectValue(RealmRepresentation_smtpServer.CreateFromDiscriminatorValue); } }, - {"social", n => { Social = n.GetBoolValue(); } }, - {"socialProviders", n => { SocialProviders = n.GetObjectValue(RealmRepresentation_socialProviders.CreateFromDiscriminatorValue); } }, - {"sslRequired", n => { SslRequired = n.GetStringValue(); } }, - {"ssoSessionIdleTimeout", n => { SsoSessionIdleTimeout = n.GetIntValue(); } }, - {"ssoSessionIdleTimeoutRememberMe", n => { SsoSessionIdleTimeoutRememberMe = n.GetIntValue(); } }, - {"ssoSessionMaxLifespan", n => { SsoSessionMaxLifespan = n.GetIntValue(); } }, - {"ssoSessionMaxLifespanRememberMe", n => { SsoSessionMaxLifespanRememberMe = n.GetIntValue(); } }, - {"supportedLocales", n => { SupportedLocales = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"updateProfileOnInitialSocialLogin", n => { UpdateProfileOnInitialSocialLogin = n.GetBoolValue(); } }, - {"userCacheEnabled", n => { UserCacheEnabled = n.GetBoolValue(); } }, - {"userFederationMappers", n => { UserFederationMappers = n.GetCollectionOfObjectValues(UserFederationMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"userFederationProviders", n => { UserFederationProviders = n.GetCollectionOfObjectValues(UserFederationProviderRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"userManagedAccessAllowed", n => { UserManagedAccessAllowed = n.GetBoolValue(); } }, - {"users", n => { Users = n.GetCollectionOfObjectValues(UserRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"verifyEmail", n => { VerifyEmail = n.GetBoolValue(); } }, - {"waitIncrementSeconds", n => { WaitIncrementSeconds = n.GetIntValue(); } }, - {"webAuthnPolicyAcceptableAaguids", n => { WebAuthnPolicyAcceptableAaguids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"webAuthnPolicyAttestationConveyancePreference", n => { WebAuthnPolicyAttestationConveyancePreference = n.GetStringValue(); } }, - {"webAuthnPolicyAuthenticatorAttachment", n => { WebAuthnPolicyAuthenticatorAttachment = n.GetStringValue(); } }, - {"webAuthnPolicyAvoidSameAuthenticatorRegister", n => { WebAuthnPolicyAvoidSameAuthenticatorRegister = n.GetBoolValue(); } }, - {"webAuthnPolicyCreateTimeout", n => { WebAuthnPolicyCreateTimeout = n.GetIntValue(); } }, - {"webAuthnPolicyExtraOrigins", n => { WebAuthnPolicyExtraOrigins = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"webAuthnPolicyPasswordlessAcceptableAaguids", n => { WebAuthnPolicyPasswordlessAcceptableAaguids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"webAuthnPolicyPasswordlessAttestationConveyancePreference", n => { WebAuthnPolicyPasswordlessAttestationConveyancePreference = n.GetStringValue(); } }, - {"webAuthnPolicyPasswordlessAuthenticatorAttachment", n => { WebAuthnPolicyPasswordlessAuthenticatorAttachment = n.GetStringValue(); } }, - {"webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister", n => { WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister = n.GetBoolValue(); } }, - {"webAuthnPolicyPasswordlessCreateTimeout", n => { WebAuthnPolicyPasswordlessCreateTimeout = n.GetIntValue(); } }, - {"webAuthnPolicyPasswordlessExtraOrigins", n => { WebAuthnPolicyPasswordlessExtraOrigins = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"webAuthnPolicyPasswordlessRequireResidentKey", n => { WebAuthnPolicyPasswordlessRequireResidentKey = n.GetStringValue(); } }, - {"webAuthnPolicyPasswordlessRpEntityName", n => { WebAuthnPolicyPasswordlessRpEntityName = n.GetStringValue(); } }, - {"webAuthnPolicyPasswordlessRpId", n => { WebAuthnPolicyPasswordlessRpId = n.GetStringValue(); } }, - {"webAuthnPolicyPasswordlessSignatureAlgorithms", n => { WebAuthnPolicyPasswordlessSignatureAlgorithms = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"webAuthnPolicyPasswordlessUserVerificationRequirement", n => { WebAuthnPolicyPasswordlessUserVerificationRequirement = n.GetStringValue(); } }, - {"webAuthnPolicyRequireResidentKey", n => { WebAuthnPolicyRequireResidentKey = n.GetStringValue(); } }, - {"webAuthnPolicyRpEntityName", n => { WebAuthnPolicyRpEntityName = n.GetStringValue(); } }, - {"webAuthnPolicyRpId", n => { WebAuthnPolicyRpId = n.GetStringValue(); } }, - {"webAuthnPolicySignatureAlgorithms", n => { WebAuthnPolicySignatureAlgorithms = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"webAuthnPolicyUserVerificationRequirement", n => { WebAuthnPolicyUserVerificationRequirement = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "accessCodeLifespan", n => { AccessCodeLifespan = n.GetIntValue(); } }, + { "accessCodeLifespanLogin", n => { AccessCodeLifespanLogin = n.GetIntValue(); } }, + { "accessCodeLifespanUserAction", n => { AccessCodeLifespanUserAction = n.GetIntValue(); } }, + { "accessTokenLifespan", n => { AccessTokenLifespan = n.GetIntValue(); } }, + { "accessTokenLifespanForImplicitFlow", n => { AccessTokenLifespanForImplicitFlow = n.GetIntValue(); } }, + { "accountTheme", n => { AccountTheme = n.GetStringValue(); } }, + { "actionTokenGeneratedByAdminLifespan", n => { ActionTokenGeneratedByAdminLifespan = n.GetIntValue(); } }, + { "actionTokenGeneratedByUserLifespan", n => { ActionTokenGeneratedByUserLifespan = n.GetIntValue(); } }, + { "adminEventsDetailsEnabled", n => { AdminEventsDetailsEnabled = n.GetBoolValue(); } }, + { "adminEventsEnabled", n => { AdminEventsEnabled = n.GetBoolValue(); } }, + { "adminTheme", n => { AdminTheme = n.GetStringValue(); } }, + { "applicationScopeMappings", n => { ApplicationScopeMappings = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_applicationScopeMappings.CreateFromDiscriminatorValue); } }, + { "applications", n => { Applications = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "attributes", n => { Attributes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "authenticationFlows", n => { AuthenticationFlows = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "authenticatorConfig", n => { AuthenticatorConfig = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "browserFlow", n => { BrowserFlow = n.GetStringValue(); } }, + { "browserSecurityHeaders", n => { BrowserSecurityHeaders = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_browserSecurityHeaders.CreateFromDiscriminatorValue); } }, + { "bruteForceProtected", n => { BruteForceProtected = n.GetBoolValue(); } }, + { "certificate", n => { Certificate = n.GetStringValue(); } }, + { "clientAuthenticationFlow", n => { ClientAuthenticationFlow = n.GetStringValue(); } }, + { "clientOfflineSessionIdleTimeout", n => { ClientOfflineSessionIdleTimeout = n.GetIntValue(); } }, + { "clientOfflineSessionMaxLifespan", n => { ClientOfflineSessionMaxLifespan = n.GetIntValue(); } }, + { "clientPolicies", n => { ClientPolicies = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation.CreateFromDiscriminatorValue); } }, + { "clientProfiles", n => { ClientProfiles = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation.CreateFromDiscriminatorValue); } }, + { "clientScopeMappings", n => { ClientScopeMappings = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_clientScopeMappings.CreateFromDiscriminatorValue); } }, + { "clientScopes", n => { ClientScopes = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "clientSessionIdleTimeout", n => { ClientSessionIdleTimeout = n.GetIntValue(); } }, + { "clientSessionMaxLifespan", n => { ClientSessionMaxLifespan = n.GetIntValue(); } }, + { "clientTemplates", n => { ClientTemplates = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "clients", n => { Clients = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "codeSecret", n => { CodeSecret = n.GetStringValue(); } }, + { "components", n => { Components = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringComponentExportRepresentation.CreateFromDiscriminatorValue); } }, + { "defaultDefaultClientScopes", n => { DefaultDefaultClientScopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "defaultGroups", n => { DefaultGroups = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "defaultLocale", n => { DefaultLocale = n.GetStringValue(); } }, + { "defaultOptionalClientScopes", n => { DefaultOptionalClientScopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "defaultRole", n => { DefaultRole = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue); } }, + { "defaultRoles", n => { DefaultRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "defaultSignatureAlgorithm", n => { DefaultSignatureAlgorithm = n.GetStringValue(); } }, + { "directGrantFlow", n => { DirectGrantFlow = n.GetStringValue(); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "displayNameHtml", n => { DisplayNameHtml = n.GetStringValue(); } }, + { "dockerAuthenticationFlow", n => { DockerAuthenticationFlow = n.GetStringValue(); } }, + { "duplicateEmailsAllowed", n => { DuplicateEmailsAllowed = n.GetBoolValue(); } }, + { "editUsernameAllowed", n => { EditUsernameAllowed = n.GetBoolValue(); } }, + { "emailTheme", n => { EmailTheme = n.GetStringValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "enabledEventTypes", n => { EnabledEventTypes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "eventsEnabled", n => { EventsEnabled = n.GetBoolValue(); } }, + { "eventsExpiration", n => { EventsExpiration = n.GetLongValue(); } }, + { "eventsListeners", n => { EventsListeners = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "failureFactor", n => { FailureFactor = n.GetIntValue(); } }, + { "federatedUsers", n => { FederatedUsers = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "firstBrokerLoginFlow", n => { FirstBrokerLoginFlow = n.GetStringValue(); } }, + { "groups", n => { Groups = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "identityProviderMappers", n => { IdentityProviderMappers = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "identityProviders", n => { IdentityProviders = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "internationalizationEnabled", n => { InternationalizationEnabled = n.GetBoolValue(); } }, + { "keycloakVersion", n => { KeycloakVersion = n.GetStringValue(); } }, + { "localizationTexts", n => { LocalizationTexts = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_localizationTexts.CreateFromDiscriminatorValue); } }, + { "loginTheme", n => { LoginTheme = n.GetStringValue(); } }, + { "loginWithEmailAllowed", n => { LoginWithEmailAllowed = n.GetBoolValue(); } }, + { "maxDeltaTimeSeconds", n => { MaxDeltaTimeSeconds = n.GetIntValue(); } }, + { "maxFailureWaitSeconds", n => { MaxFailureWaitSeconds = n.GetIntValue(); } }, + { "maxTemporaryLockouts", n => { MaxTemporaryLockouts = n.GetIntValue(); } }, + { "minimumQuickLoginWaitSeconds", n => { MinimumQuickLoginWaitSeconds = n.GetIntValue(); } }, + { "notBefore", n => { NotBefore = n.GetIntValue(); } }, + { "oauth2DeviceCodeLifespan", n => { Oauth2DeviceCodeLifespan = n.GetIntValue(); } }, + { "oauth2DevicePollingInterval", n => { Oauth2DevicePollingInterval = n.GetIntValue(); } }, + { "oauthClients", n => { OauthClients = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "offlineSessionIdleTimeout", n => { OfflineSessionIdleTimeout = n.GetIntValue(); } }, + { "offlineSessionMaxLifespan", n => { OfflineSessionMaxLifespan = n.GetIntValue(); } }, + { "offlineSessionMaxLifespanEnabled", n => { OfflineSessionMaxLifespanEnabled = n.GetBoolValue(); } }, + { "organizations", n => { Organizations = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "organizationsEnabled", n => { OrganizationsEnabled = n.GetBoolValue(); } }, + { "otpPolicyAlgorithm", n => { OtpPolicyAlgorithm = n.GetStringValue(); } }, + { "otpPolicyCodeReusable", n => { OtpPolicyCodeReusable = n.GetBoolValue(); } }, + { "otpPolicyDigits", n => { OtpPolicyDigits = n.GetIntValue(); } }, + { "otpPolicyInitialCounter", n => { OtpPolicyInitialCounter = n.GetIntValue(); } }, + { "otpPolicyLookAheadWindow", n => { OtpPolicyLookAheadWindow = n.GetIntValue(); } }, + { "otpPolicyPeriod", n => { OtpPolicyPeriod = n.GetIntValue(); } }, + { "otpPolicyType", n => { OtpPolicyType = n.GetStringValue(); } }, + { "otpSupportedApplications", n => { OtpSupportedApplications = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "passwordCredentialGrantAllowed", n => { PasswordCredentialGrantAllowed = n.GetBoolValue(); } }, + { "passwordPolicy", n => { PasswordPolicy = n.GetStringValue(); } }, + { "permanentLockout", n => { PermanentLockout = n.GetBoolValue(); } }, + { "privateKey", n => { PrivateKey = n.GetStringValue(); } }, + { "protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "publicKey", n => { PublicKey = n.GetStringValue(); } }, + { "quickLoginCheckMilliSeconds", n => { QuickLoginCheckMilliSeconds = n.GetLongValue(); } }, + { "realm", n => { Realm = n.GetStringValue(); } }, + { "realmCacheEnabled", n => { RealmCacheEnabled = n.GetBoolValue(); } }, + { "oAuth2DeviceCodeLifespan", n => { RealmRepresentationOAuth2DeviceCodeLifespan = n.GetIntValue(); } }, + { "oAuth2DevicePollingInterval", n => { RealmRepresentationOAuth2DevicePollingInterval = n.GetIntValue(); } }, + { "refreshTokenMaxReuse", n => { RefreshTokenMaxReuse = n.GetIntValue(); } }, + { "registrationAllowed", n => { RegistrationAllowed = n.GetBoolValue(); } }, + { "registrationEmailAsUsername", n => { RegistrationEmailAsUsername = n.GetBoolValue(); } }, + { "registrationFlow", n => { RegistrationFlow = n.GetStringValue(); } }, + { "rememberMe", n => { RememberMe = n.GetBoolValue(); } }, + { "requiredActions", n => { RequiredActions = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "requiredCredentials", n => { RequiredCredentials = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "resetCredentialsFlow", n => { ResetCredentialsFlow = n.GetStringValue(); } }, + { "resetPasswordAllowed", n => { ResetPasswordAllowed = n.GetBoolValue(); } }, + { "revokeRefreshToken", n => { RevokeRefreshToken = n.GetBoolValue(); } }, + { "roles", n => { Roles = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation.CreateFromDiscriminatorValue); } }, + { "scopeMappings", n => { ScopeMappings = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeMappingRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "smtpServer", n => { SmtpServer = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_smtpServer.CreateFromDiscriminatorValue); } }, + { "social", n => { Social = n.GetBoolValue(); } }, + { "socialProviders", n => { SocialProviders = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_socialProviders.CreateFromDiscriminatorValue); } }, + { "sslRequired", n => { SslRequired = n.GetStringValue(); } }, + { "ssoSessionIdleTimeout", n => { SsoSessionIdleTimeout = n.GetIntValue(); } }, + { "ssoSessionIdleTimeoutRememberMe", n => { SsoSessionIdleTimeoutRememberMe = n.GetIntValue(); } }, + { "ssoSessionMaxLifespan", n => { SsoSessionMaxLifespan = n.GetIntValue(); } }, + { "ssoSessionMaxLifespanRememberMe", n => { SsoSessionMaxLifespanRememberMe = n.GetIntValue(); } }, + { "supportedLocales", n => { SupportedLocales = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "updateProfileOnInitialSocialLogin", n => { UpdateProfileOnInitialSocialLogin = n.GetBoolValue(); } }, + { "userCacheEnabled", n => { UserCacheEnabled = n.GetBoolValue(); } }, + { "userFederationMappers", n => { UserFederationMappers = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "userFederationProviders", n => { UserFederationProviders = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "userManagedAccessAllowed", n => { UserManagedAccessAllowed = n.GetBoolValue(); } }, + { "users", n => { Users = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "verifyEmail", n => { VerifyEmail = n.GetBoolValue(); } }, + { "waitIncrementSeconds", n => { WaitIncrementSeconds = n.GetIntValue(); } }, + { "webAuthnPolicyAcceptableAaguids", n => { WebAuthnPolicyAcceptableAaguids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "webAuthnPolicyAttestationConveyancePreference", n => { WebAuthnPolicyAttestationConveyancePreference = n.GetStringValue(); } }, + { "webAuthnPolicyAuthenticatorAttachment", n => { WebAuthnPolicyAuthenticatorAttachment = n.GetStringValue(); } }, + { "webAuthnPolicyAvoidSameAuthenticatorRegister", n => { WebAuthnPolicyAvoidSameAuthenticatorRegister = n.GetBoolValue(); } }, + { "webAuthnPolicyCreateTimeout", n => { WebAuthnPolicyCreateTimeout = n.GetIntValue(); } }, + { "webAuthnPolicyExtraOrigins", n => { WebAuthnPolicyExtraOrigins = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "webAuthnPolicyPasswordlessAcceptableAaguids", n => { WebAuthnPolicyPasswordlessAcceptableAaguids = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "webAuthnPolicyPasswordlessAttestationConveyancePreference", n => { WebAuthnPolicyPasswordlessAttestationConveyancePreference = n.GetStringValue(); } }, + { "webAuthnPolicyPasswordlessAuthenticatorAttachment", n => { WebAuthnPolicyPasswordlessAuthenticatorAttachment = n.GetStringValue(); } }, + { "webAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister", n => { WebAuthnPolicyPasswordlessAvoidSameAuthenticatorRegister = n.GetBoolValue(); } }, + { "webAuthnPolicyPasswordlessCreateTimeout", n => { WebAuthnPolicyPasswordlessCreateTimeout = n.GetIntValue(); } }, + { "webAuthnPolicyPasswordlessExtraOrigins", n => { WebAuthnPolicyPasswordlessExtraOrigins = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "webAuthnPolicyPasswordlessRequireResidentKey", n => { WebAuthnPolicyPasswordlessRequireResidentKey = n.GetStringValue(); } }, + { "webAuthnPolicyPasswordlessRpEntityName", n => { WebAuthnPolicyPasswordlessRpEntityName = n.GetStringValue(); } }, + { "webAuthnPolicyPasswordlessRpId", n => { WebAuthnPolicyPasswordlessRpId = n.GetStringValue(); } }, + { "webAuthnPolicyPasswordlessSignatureAlgorithms", n => { WebAuthnPolicyPasswordlessSignatureAlgorithms = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "webAuthnPolicyPasswordlessUserVerificationRequirement", n => { WebAuthnPolicyPasswordlessUserVerificationRequirement = n.GetStringValue(); } }, + { "webAuthnPolicyRequireResidentKey", n => { WebAuthnPolicyRequireResidentKey = n.GetStringValue(); } }, + { "webAuthnPolicyRpEntityName", n => { WebAuthnPolicyRpEntityName = n.GetStringValue(); } }, + { "webAuthnPolicyRpId", n => { WebAuthnPolicyRpId = n.GetStringValue(); } }, + { "webAuthnPolicySignatureAlgorithms", n => { WebAuthnPolicySignatureAlgorithms = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "webAuthnPolicyUserVerificationRequirement", n => { WebAuthnPolicyUserVerificationRequirement = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("accessCodeLifespan", AccessCodeLifespan); writer.WriteIntValue("accessCodeLifespanLogin", AccessCodeLifespanLogin); @@ -991,33 +1013,33 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteBoolValue("adminEventsDetailsEnabled", AdminEventsDetailsEnabled); writer.WriteBoolValue("adminEventsEnabled", AdminEventsEnabled); writer.WriteStringValue("adminTheme", AdminTheme); - writer.WriteCollectionOfObjectValues("applications", Applications); - writer.WriteObjectValue("applicationScopeMappings", ApplicationScopeMappings); - writer.WriteObjectValue("attributes", Attributes); - writer.WriteCollectionOfObjectValues("authenticationFlows", AuthenticationFlows); - writer.WriteCollectionOfObjectValues("authenticatorConfig", AuthenticatorConfig); + writer.WriteCollectionOfObjectValues("applications", Applications); + writer.WriteObjectValue("applicationScopeMappings", ApplicationScopeMappings); + writer.WriteObjectValue("attributes", Attributes); + writer.WriteCollectionOfObjectValues("authenticationFlows", AuthenticationFlows); + writer.WriteCollectionOfObjectValues("authenticatorConfig", AuthenticatorConfig); writer.WriteStringValue("browserFlow", BrowserFlow); - writer.WriteObjectValue("browserSecurityHeaders", BrowserSecurityHeaders); + writer.WriteObjectValue("browserSecurityHeaders", BrowserSecurityHeaders); writer.WriteBoolValue("bruteForceProtected", BruteForceProtected); writer.WriteStringValue("certificate", Certificate); writer.WriteStringValue("clientAuthenticationFlow", ClientAuthenticationFlow); writer.WriteIntValue("clientOfflineSessionIdleTimeout", ClientOfflineSessionIdleTimeout); writer.WriteIntValue("clientOfflineSessionMaxLifespan", ClientOfflineSessionMaxLifespan); - writer.WriteObjectValue("clientPolicies", ClientPolicies); - writer.WriteObjectValue("clientProfiles", ClientProfiles); - writer.WriteCollectionOfObjectValues("clients", Clients); - writer.WriteObjectValue("clientScopeMappings", ClientScopeMappings); - writer.WriteCollectionOfObjectValues("clientScopes", ClientScopes); + writer.WriteObjectValue("clientPolicies", ClientPolicies); + writer.WriteObjectValue("clientProfiles", ClientProfiles); + writer.WriteCollectionOfObjectValues("clients", Clients); + writer.WriteObjectValue("clientScopeMappings", ClientScopeMappings); + writer.WriteCollectionOfObjectValues("clientScopes", ClientScopes); writer.WriteIntValue("clientSessionIdleTimeout", ClientSessionIdleTimeout); writer.WriteIntValue("clientSessionMaxLifespan", ClientSessionMaxLifespan); - writer.WriteCollectionOfObjectValues("clientTemplates", ClientTemplates); + writer.WriteCollectionOfObjectValues("clientTemplates", ClientTemplates); writer.WriteStringValue("codeSecret", CodeSecret); - writer.WriteObjectValue("components", Components); + writer.WriteObjectValue("components", Components); writer.WriteCollectionOfPrimitiveValues("defaultDefaultClientScopes", DefaultDefaultClientScopes); writer.WriteCollectionOfPrimitiveValues("defaultGroups", DefaultGroups); writer.WriteStringValue("defaultLocale", DefaultLocale); writer.WriteCollectionOfPrimitiveValues("defaultOptionalClientScopes", DefaultOptionalClientScopes); - writer.WriteObjectValue("defaultRole", DefaultRole); + writer.WriteObjectValue("defaultRole", DefaultRole); writer.WriteCollectionOfPrimitiveValues("defaultRoles", DefaultRoles); writer.WriteStringValue("defaultSignatureAlgorithm", DefaultSignatureAlgorithm); writer.WriteStringValue("directGrantFlow", DirectGrantFlow); @@ -1033,15 +1055,15 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteLongValue("eventsExpiration", EventsExpiration); writer.WriteCollectionOfPrimitiveValues("eventsListeners", EventsListeners); writer.WriteIntValue("failureFactor", FailureFactor); - writer.WriteCollectionOfObjectValues("federatedUsers", FederatedUsers); + writer.WriteCollectionOfObjectValues("federatedUsers", FederatedUsers); writer.WriteStringValue("firstBrokerLoginFlow", FirstBrokerLoginFlow); - writer.WriteCollectionOfObjectValues("groups", Groups); + writer.WriteCollectionOfObjectValues("groups", Groups); writer.WriteStringValue("id", Id); - writer.WriteCollectionOfObjectValues("identityProviderMappers", IdentityProviderMappers); - writer.WriteCollectionOfObjectValues("identityProviders", IdentityProviders); + writer.WriteCollectionOfObjectValues("identityProviderMappers", IdentityProviderMappers); + writer.WriteCollectionOfObjectValues("identityProviders", IdentityProviders); writer.WriteBoolValue("internationalizationEnabled", InternationalizationEnabled); writer.WriteStringValue("keycloakVersion", KeycloakVersion); - writer.WriteObjectValue("localizationTexts", LocalizationTexts); + writer.WriteObjectValue("localizationTexts", LocalizationTexts); writer.WriteStringValue("loginTheme", LoginTheme); writer.WriteBoolValue("loginWithEmailAllowed", LoginWithEmailAllowed); writer.WriteIntValue("maxDeltaTimeSeconds", MaxDeltaTimeSeconds); @@ -1051,10 +1073,12 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteIntValue("notBefore", NotBefore); writer.WriteIntValue("oauth2DeviceCodeLifespan", Oauth2DeviceCodeLifespan); writer.WriteIntValue("oauth2DevicePollingInterval", Oauth2DevicePollingInterval); - writer.WriteCollectionOfObjectValues("oauthClients", OauthClients); + writer.WriteCollectionOfObjectValues("oauthClients", OauthClients); writer.WriteIntValue("offlineSessionIdleTimeout", OfflineSessionIdleTimeout); writer.WriteIntValue("offlineSessionMaxLifespan", OfflineSessionMaxLifespan); writer.WriteBoolValue("offlineSessionMaxLifespanEnabled", OfflineSessionMaxLifespanEnabled); + writer.WriteCollectionOfObjectValues("organizations", Organizations); + writer.WriteBoolValue("organizationsEnabled", OrganizationsEnabled); writer.WriteStringValue("otpPolicyAlgorithm", OtpPolicyAlgorithm); writer.WriteBoolValue("otpPolicyCodeReusable", OtpPolicyCodeReusable); writer.WriteIntValue("otpPolicyDigits", OtpPolicyDigits); @@ -1067,7 +1091,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteStringValue("passwordPolicy", PasswordPolicy); writer.WriteBoolValue("permanentLockout", PermanentLockout); writer.WriteStringValue("privateKey", PrivateKey); - writer.WriteCollectionOfObjectValues("protocolMappers", ProtocolMappers); + writer.WriteCollectionOfObjectValues("protocolMappers", ProtocolMappers); writer.WriteStringValue("publicKey", PublicKey); writer.WriteLongValue("quickLoginCheckMilliSeconds", QuickLoginCheckMilliSeconds); writer.WriteStringValue("realm", Realm); @@ -1079,16 +1103,16 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteBoolValue("registrationEmailAsUsername", RegistrationEmailAsUsername); writer.WriteStringValue("registrationFlow", RegistrationFlow); writer.WriteBoolValue("rememberMe", RememberMe); - writer.WriteCollectionOfObjectValues("requiredActions", RequiredActions); + writer.WriteCollectionOfObjectValues("requiredActions", RequiredActions); writer.WriteCollectionOfPrimitiveValues("requiredCredentials", RequiredCredentials); writer.WriteStringValue("resetCredentialsFlow", ResetCredentialsFlow); writer.WriteBoolValue("resetPasswordAllowed", ResetPasswordAllowed); writer.WriteBoolValue("revokeRefreshToken", RevokeRefreshToken); - writer.WriteObjectValue("roles", Roles); - writer.WriteCollectionOfObjectValues("scopeMappings", ScopeMappings); - writer.WriteObjectValue("smtpServer", SmtpServer); + writer.WriteObjectValue("roles", Roles); + writer.WriteCollectionOfObjectValues("scopeMappings", ScopeMappings); + writer.WriteObjectValue("smtpServer", SmtpServer); writer.WriteBoolValue("social", Social); - writer.WriteObjectValue("socialProviders", SocialProviders); + writer.WriteObjectValue("socialProviders", SocialProviders); writer.WriteStringValue("sslRequired", SslRequired); writer.WriteIntValue("ssoSessionIdleTimeout", SsoSessionIdleTimeout); writer.WriteIntValue("ssoSessionIdleTimeoutRememberMe", SsoSessionIdleTimeoutRememberMe); @@ -1097,10 +1121,10 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfPrimitiveValues("supportedLocales", SupportedLocales); writer.WriteBoolValue("updateProfileOnInitialSocialLogin", UpdateProfileOnInitialSocialLogin); writer.WriteBoolValue("userCacheEnabled", UserCacheEnabled); - writer.WriteCollectionOfObjectValues("userFederationMappers", UserFederationMappers); - writer.WriteCollectionOfObjectValues("userFederationProviders", UserFederationProviders); + writer.WriteCollectionOfObjectValues("userFederationMappers", UserFederationMappers); + writer.WriteCollectionOfObjectValues("userFederationProviders", UserFederationProviders); writer.WriteBoolValue("userManagedAccessAllowed", UserManagedAccessAllowed); - writer.WriteCollectionOfObjectValues("users", Users); + writer.WriteCollectionOfObjectValues("users", Users); writer.WriteBoolValue("verifyEmail", VerifyEmail); writer.WriteIntValue("waitIncrementSeconds", WaitIncrementSeconds); writer.WriteCollectionOfPrimitiveValues("webAuthnPolicyAcceptableAaguids", WebAuthnPolicyAcceptableAaguids); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_applicationScopeMappings.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_applicationScopeMappings.cs index 99383af5..f795dca7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_applicationScopeMappings.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_applicationScopeMappings.cs @@ -1,42 +1,52 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ [Obsolete("")] - public class RealmRepresentation_applicationScopeMappings : IAdditionalDataHolder, IParsable { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RealmRepresentation_applicationScopeMappings : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RealmRepresentation_applicationScopeMappings() { + public RealmRepresentation_applicationScopeMappings() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation_applicationScopeMappings CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_applicationScopeMappings CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RealmRepresentation_applicationScopeMappings(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_applicationScopeMappings(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_attributes.cs index 91d13e3f..a446defd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_attributes.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RealmRepresentation_attributes : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RealmRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RealmRepresentation_attributes() { + public RealmRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RealmRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_attributes(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_browserSecurityHeaders.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_browserSecurityHeaders.cs index dfe85799..426f1bce 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_browserSecurityHeaders.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_browserSecurityHeaders.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RealmRepresentation_browserSecurityHeaders : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RealmRepresentation_browserSecurityHeaders : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RealmRepresentation_browserSecurityHeaders() { + public RealmRepresentation_browserSecurityHeaders() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation_browserSecurityHeaders CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_browserSecurityHeaders CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RealmRepresentation_browserSecurityHeaders(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_browserSecurityHeaders(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_clientScopeMappings.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_clientScopeMappings.cs index 5c6036ec..02f6a657 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_clientScopeMappings.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_clientScopeMappings.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RealmRepresentation_clientScopeMappings : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RealmRepresentation_clientScopeMappings : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RealmRepresentation_clientScopeMappings() { + public RealmRepresentation_clientScopeMappings() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation_clientScopeMappings CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_clientScopeMappings CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RealmRepresentation_clientScopeMappings(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_clientScopeMappings(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_localizationTexts.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_localizationTexts.cs index ceac6ca3..a78320d8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_localizationTexts.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_localizationTexts.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RealmRepresentation_localizationTexts : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RealmRepresentation_localizationTexts : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RealmRepresentation_localizationTexts() { + public RealmRepresentation_localizationTexts() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation_localizationTexts CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_localizationTexts CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RealmRepresentation_localizationTexts(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_localizationTexts(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_smtpServer.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_smtpServer.cs index e40427cf..ac90150f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_smtpServer.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_smtpServer.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RealmRepresentation_smtpServer : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RealmRepresentation_smtpServer : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RealmRepresentation_smtpServer() { + public RealmRepresentation_smtpServer() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation_smtpServer CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_smtpServer CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RealmRepresentation_smtpServer(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_smtpServer(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_socialProviders.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_socialProviders.cs index 41d05d00..8c181b8a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_socialProviders.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_socialProviders.cs @@ -1,42 +1,52 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ [Obsolete("")] - public class RealmRepresentation_socialProviders : IAdditionalDataHolder, IParsable { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RealmRepresentation_socialProviders : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RealmRepresentation_socialProviders() { + public RealmRepresentation_socialProviders() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RealmRepresentation_socialProviders CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_socialProviders CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RealmRepresentation_socialProviders(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_socialProviders(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigInfoRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigInfoRepresentation.cs new file mode 100644 index 00000000..96a9481f --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigInfoRepresentation.cs @@ -0,0 +1,63 @@ +// +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RequiredActionConfigInfoRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The properties property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Properties { get; set; } +#nullable restore +#else + public List Properties { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RequiredActionConfigInfoRepresentation() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigInfoRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigInfoRepresentation(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "properties", n => { Properties = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ConfigPropertyRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("properties", Properties); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation.cs new file mode 100644 index 00000000..4798311c --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation.cs @@ -0,0 +1,63 @@ +// +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RequiredActionConfigRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The config property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config? Config { get; set; } +#nullable restore +#else + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config Config { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RequiredActionConfigRepresentation() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("config", Config); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation_config.cs new file mode 100644 index 00000000..4763caaa --- /dev/null +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation_config.cs @@ -0,0 +1,53 @@ +// +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RequiredActionConfigRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public RequiredActionConfigRepresentation_config() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation.cs index 5bb737a7..3edff7aa 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RequiredActionProviderRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RequiredActionProviderRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The alias property @@ -19,10 +24,10 @@ public class RequiredActionProviderRepresentation : IAdditionalDataHolder, IPars /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequiredActionProviderRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation_config? Config { get; set; } #nullable restore #else - public RequiredActionProviderRepresentation_config Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation_config Config { get; set; } #endif /// The defaultAction property public bool? DefaultAction { get; set; } @@ -47,43 +52,48 @@ public class RequiredActionProviderRepresentation : IAdditionalDataHolder, IPars public string ProviderId { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RequiredActionProviderRepresentation() { + public RequiredActionProviderRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RequiredActionProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RequiredActionProviderRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"alias", n => { Alias = n.GetStringValue(); } }, - {"config", n => { Config = n.GetObjectValue(RequiredActionProviderRepresentation_config.CreateFromDiscriminatorValue); } }, - {"defaultAction", n => { DefaultAction = n.GetBoolValue(); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"priority", n => { Priority = n.GetIntValue(); } }, - {"providerId", n => { ProviderId = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "alias", n => { Alias = n.GetStringValue(); } }, + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation_config.CreateFromDiscriminatorValue); } }, + { "defaultAction", n => { DefaultAction = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "priority", n => { Priority = n.GetIntValue(); } }, + { "providerId", n => { ProviderId = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("alias", Alias); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteBoolValue("defaultAction", DefaultAction); writer.WriteBoolValue("enabled", Enabled); writer.WriteStringValue("name", Name); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation_config.cs index e76c1458..d989ef35 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation_config.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RequiredActionProviderRepresentation_config : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RequiredActionProviderRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RequiredActionProviderRepresentation_config() { + public RequiredActionProviderRepresentation_config() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RequiredActionProviderRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RequiredActionProviderRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation_config(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceOwnerRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceOwnerRepresentation.cs index 18002d6a..da86f8ba 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceOwnerRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceOwnerRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ResourceOwnerRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ResourceOwnerRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The id property @@ -25,35 +30,40 @@ public class ResourceOwnerRepresentation : IAdditionalDataHolder, IParsable { public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ResourceOwnerRepresentation() { + public ResourceOwnerRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ResourceOwnerRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceOwnerRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ResourceOwnerRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceOwnerRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "id", n => { Id = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("id", Id); writer.WriteStringValue("name", Name); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation.cs index b73ab2ec..ca306ff0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ResourceRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ResourceRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ResourceRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public ResourceRepresentation_attributes Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_attributes Attributes { get; set; } #endif /// The displayName property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -51,28 +56,28 @@ public class ResourceRepresentation : IAdditionalDataHolder, IParsable { /// The owner property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ResourceRepresentation_owner? Owner { get; private set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_owner? Owner { get; private set; } #nullable restore #else - public ResourceRepresentation_owner Owner { get; private set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_owner Owner { get; private set; } #endif /// The ownerManagedAccess property public bool? OwnerManagedAccess { get; set; } /// The scopes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Scopes { get; set; } + public List? Scopes { get; set; } #nullable restore #else - public List Scopes { get; set; } + public List Scopes { get; set; } #endif /// The scopesUma property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ScopesUma { get; set; } + public List? ScopesUma { get; set; } #nullable restore #else - public List ScopesUma { get; set; } + public List ScopesUma { get; set; } #endif /// The type property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,54 +105,59 @@ public class ResourceRepresentation : IAdditionalDataHolder, IParsable { public List Uris { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ResourceRepresentation() { + public ResourceRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ResourceRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ResourceRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"attributes", n => { Attributes = n.GetObjectValue(ResourceRepresentation_attributes.CreateFromDiscriminatorValue); } }, - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"icon_uri", n => { IconUri = n.GetStringValue(); } }, - {"_id", n => { Id = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"owner", n => { Owner = n.GetObjectValue(ResourceRepresentation_owner.CreateFromDiscriminatorValue); } }, - {"ownerManagedAccess", n => { OwnerManagedAccess = n.GetBoolValue(); } }, - {"scopes", n => { Scopes = n.GetCollectionOfObjectValues(ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"scopesUma", n => { ScopesUma = n.GetCollectionOfObjectValues(ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"uri", n => { Uri = n.GetStringValue(); } }, - {"uris", n => { Uris = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "attributes", n => { Attributes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "icon_uri", n => { IconUri = n.GetStringValue(); } }, + { "_id", n => { Id = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_owner.CreateFromDiscriminatorValue); } }, + { "ownerManagedAccess", n => { OwnerManagedAccess = n.GetBoolValue(); } }, + { "scopes", n => { Scopes = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "scopesUma", n => { ScopesUma = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + { "uri", n => { Uri = n.GetStringValue(); } }, + { "uris", n => { Uris = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("attributes", Attributes); + writer.WriteObjectValue("attributes", Attributes); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("icon_uri", IconUri); writer.WriteStringValue("_id", Id); writer.WriteStringValue("name", Name); writer.WriteBoolValue("ownerManagedAccess", OwnerManagedAccess); - writer.WriteCollectionOfObjectValues("scopes", Scopes); - writer.WriteCollectionOfObjectValues("scopesUma", ScopesUma); + writer.WriteCollectionOfObjectValues("scopes", Scopes); + writer.WriteCollectionOfObjectValues("scopesUma", ScopesUma); writer.WriteStringValue("type", Type); writer.WriteStringValue("uri", Uri); writer.WriteCollectionOfPrimitiveValues("uris", Uris); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_attributes.cs index aefc3641..2569a75b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_attributes.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ResourceRepresentation_attributes : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ResourceRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ResourceRepresentation_attributes() { + public ResourceRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ResourceRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ResourceRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_attributes(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_owner.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_owner.cs index 3a89d43a..01ebe078 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_owner.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_owner.cs @@ -1,33 +1,42 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ResourceRepresentation_owner : ResourceOwnerRepresentation, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ResourceRepresentation_owner : global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceOwnerRepresentation, IParsable + #pragma warning restore CS1591 + { /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new ResourceRepresentation_owner CreateFromDiscriminatorValue(IParseNode parseNode) { + public static new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_owner CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ResourceRepresentation_owner(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_owner(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public override IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) { + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public override void Serialize(ISerializationWriter writer) { + public override void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceServerRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceServerRepresentation.cs index 6161ee3b..102e9e31 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceServerRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceServerRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ResourceServerRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ResourceServerRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The allowRemoteResourceManagement property @@ -19,7 +24,7 @@ public class ResourceServerRepresentation : IAdditionalDataHolder, IParsable { public string ClientId { get; set; } #endif /// The decisionStrategy property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.DecisionStrategy? DecisionStrategy { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.DecisionStrategy? DecisionStrategy { get; set; } /// The id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -39,76 +44,81 @@ public class ResourceServerRepresentation : IAdditionalDataHolder, IParsable { /// The policies property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Policies { get; set; } + public List? Policies { get; set; } #nullable restore #else - public List Policies { get; set; } + public List Policies { get; set; } #endif /// The policyEnforcementMode property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEnforcementMode? PolicyEnforcementMode { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEnforcementMode? PolicyEnforcementMode { get; set; } /// The resources property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Resources { get; set; } + public List? Resources { get; set; } #nullable restore #else - public List Resources { get; set; } + public List Resources { get; set; } #endif /// The scopes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Scopes { get; set; } + public List? Scopes { get; set; } #nullable restore #else - public List Scopes { get; set; } + public List Scopes { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ResourceServerRepresentation() { + public ResourceServerRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ResourceServerRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ResourceServerRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"allowRemoteResourceManagement", n => { AllowRemoteResourceManagement = n.GetBoolValue(); } }, - {"clientId", n => { ClientId = n.GetStringValue(); } }, - {"decisionStrategy", n => { DecisionStrategy = n.GetEnumValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"policies", n => { Policies = n.GetCollectionOfObjectValues(PolicyRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"policyEnforcementMode", n => { PolicyEnforcementMode = n.GetEnumValue(); } }, - {"resources", n => { Resources = n.GetCollectionOfObjectValues(ResourceRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"scopes", n => { Scopes = n.GetCollectionOfObjectValues(ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "allowRemoteResourceManagement", n => { AllowRemoteResourceManagement = n.GetBoolValue(); } }, + { "clientId", n => { ClientId = n.GetStringValue(); } }, + { "decisionStrategy", n => { DecisionStrategy = n.GetEnumValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "policies", n => { Policies = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "policyEnforcementMode", n => { PolicyEnforcementMode = n.GetEnumValue(); } }, + { "resources", n => { Resources = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "scopes", n => { Scopes = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowRemoteResourceManagement", AllowRemoteResourceManagement); writer.WriteStringValue("clientId", ClientId); - writer.WriteEnumValue("decisionStrategy", DecisionStrategy); + writer.WriteEnumValue("decisionStrategy", DecisionStrategy); writer.WriteStringValue("id", Id); writer.WriteStringValue("name", Name); - writer.WriteCollectionOfObjectValues("policies", Policies); - writer.WriteEnumValue("policyEnforcementMode", PolicyEnforcementMode); - writer.WriteCollectionOfObjectValues("resources", Resources); - writer.WriteCollectionOfObjectValues("scopes", Scopes); + writer.WriteCollectionOfObjectValues("policies", Policies); + writer.WriteEnumValue("policyEnforcementMode", PolicyEnforcementMode); + writer.WriteCollectionOfObjectValues("resources", Resources); + writer.WriteCollectionOfObjectValues("scopes", Scopes); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation.cs index c79a8eb4..29952285 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RoleRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RoleRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RoleRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public RoleRepresentation_attributes Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation_attributes Attributes { get; set; } #endif /// The clientRole property public bool? ClientRole { get; set; } @@ -23,10 +28,10 @@ public class RoleRepresentation : IAdditionalDataHolder, IParsable { /// The composites property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites? Composites { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites? Composites { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites Composites { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites Composites { get; set; } #endif /// The containerId property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -64,47 +69,52 @@ public class RoleRepresentation : IAdditionalDataHolder, IParsable { [Obsolete("")] public bool? ScopeParamRequired { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RoleRepresentation() { + public RoleRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RoleRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RoleRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"attributes", n => { Attributes = n.GetObjectValue(RoleRepresentation_attributes.CreateFromDiscriminatorValue); } }, - {"clientRole", n => { ClientRole = n.GetBoolValue(); } }, - {"composite", n => { Composite = n.GetBoolValue(); } }, - {"composites", n => { Composites = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites.CreateFromDiscriminatorValue); } }, - {"containerId", n => { ContainerId = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"scopeParamRequired", n => { ScopeParamRequired = n.GetBoolValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "attributes", n => { Attributes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "clientRole", n => { ClientRole = n.GetBoolValue(); } }, + { "composite", n => { Composite = n.GetBoolValue(); } }, + { "composites", n => { Composites = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites.CreateFromDiscriminatorValue); } }, + { "containerId", n => { ContainerId = n.GetStringValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "scopeParamRequired", n => { ScopeParamRequired = n.GetBoolValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("attributes", Attributes); + writer.WriteObjectValue("attributes", Attributes); writer.WriteBoolValue("clientRole", ClientRole); writer.WriteBoolValue("composite", Composite); - writer.WriteObjectValue("composites", Composites); + writer.WriteObjectValue("composites", Composites); writer.WriteStringValue("containerId", ContainerId); writer.WriteStringValue("description", Description); writer.WriteStringValue("id", Id); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation_attributes.cs index 870e13f1..b0caee22 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation_attributes.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RoleRepresentation_attributes : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RoleRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RoleRepresentation_attributes() { + public RoleRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RoleRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RoleRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation_attributes(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation.cs index 50c73283..474bb35b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation.cs @@ -1,73 +1,83 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RolesRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RolesRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The application property [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RolesRepresentation_application? Application { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_application? Application { get; set; } #nullable restore #else - public RolesRepresentation_application Application { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_application Application { get; set; } #endif /// The client property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RolesRepresentation_client? Client { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_client? Client { get; set; } #nullable restore #else - public RolesRepresentation_client Client { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_client Client { get; set; } #endif /// The realm property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Realm { get; set; } + public List? Realm { get; set; } #nullable restore #else - public List Realm { get; set; } + public List Realm { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RolesRepresentation() { + public RolesRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RolesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RolesRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"application", n => { Application = n.GetObjectValue(RolesRepresentation_application.CreateFromDiscriminatorValue); } }, - {"client", n => { Client = n.GetObjectValue(RolesRepresentation_client.CreateFromDiscriminatorValue); } }, - {"realm", n => { Realm = n.GetCollectionOfObjectValues(RoleRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "application", n => { Application = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_application.CreateFromDiscriminatorValue); } }, + { "client", n => { Client = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_client.CreateFromDiscriminatorValue); } }, + { "realm", n => { Realm = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("application", Application); - writer.WriteObjectValue("client", Client); - writer.WriteCollectionOfObjectValues("realm", Realm); + writer.WriteObjectValue("application", Application); + writer.WriteObjectValue("client", Client); + writer.WriteCollectionOfObjectValues("realm", Realm); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_application.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_application.cs index e65f5226..0515f224 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_application.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_application.cs @@ -1,42 +1,52 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ [Obsolete("")] - public class RolesRepresentation_application : IAdditionalDataHolder, IParsable { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RolesRepresentation_application : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RolesRepresentation_application() { + public RolesRepresentation_application() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RolesRepresentation_application CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_application CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RolesRepresentation_application(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_application(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_client.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_client.cs index cf9390aa..877be5e4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_client.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_client.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class RolesRepresentation_client : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class RolesRepresentation_client : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public RolesRepresentation_client() { + public RolesRepresentation_client() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static RolesRepresentation_client CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_client CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RolesRepresentation_client(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_client(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeMappingRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeMappingRepresentation.cs index c7d56389..2db475b3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeMappingRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeMappingRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ScopeMappingRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ScopeMappingRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The client property @@ -50,38 +55,43 @@ public class ScopeMappingRepresentation : IAdditionalDataHolder, IParsable { public string Self { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ScopeMappingRepresentation() { + public ScopeMappingRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScopeMappingRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeMappingRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScopeMappingRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeMappingRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"client", n => { Client = n.GetStringValue(); } }, - {"clientScope", n => { ClientScope = n.GetStringValue(); } }, - {"clientTemplate", n => { ClientTemplate = n.GetStringValue(); } }, - {"roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"self", n => { Self = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "client", n => { Client = n.GetStringValue(); } }, + { "clientScope", n => { ClientScope = n.GetStringValue(); } }, + { "clientTemplate", n => { ClientTemplate = n.GetStringValue(); } }, + { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "self", n => { Self = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("client", Client); writer.WriteStringValue("clientScope", ClientScope); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeRepresentation.cs index 985638f5..63a2d3ab 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class ScopeRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class ScopeRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The displayName property @@ -43,60 +48,65 @@ public class ScopeRepresentation : IAdditionalDataHolder, IParsable { /// The policies property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Policies { get; set; } + public List? Policies { get; set; } #nullable restore #else - public List Policies { get; set; } + public List Policies { get; set; } #endif /// The resources property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Resources { get; set; } + public List? Resources { get; set; } #nullable restore #else - public List Resources { get; set; } + public List Resources { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public ScopeRepresentation() { + public ScopeRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ScopeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ScopeRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"iconUri", n => { IconUri = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"policies", n => { Policies = n.GetCollectionOfObjectValues(PolicyRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"resources", n => { Resources = n.GetCollectionOfObjectValues(ResourceRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "iconUri", n => { IconUri = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "policies", n => { Policies = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "resources", n => { Resources = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("iconUri", IconUri); writer.WriteStringValue("id", Id); writer.WriteStringValue("name", Name); - writer.WriteCollectionOfObjectValues("policies", Policies); - writer.WriteCollectionOfObjectValues("resources", Resources); + writer.WriteCollectionOfObjectValues("policies", Policies); + writer.WriteCollectionOfObjectValues("resources", Resources); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/SocialLinkRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/SocialLinkRepresentation.cs index 10c1cdde..f4170072 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/SocialLinkRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/SocialLinkRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class SocialLinkRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class SocialLinkRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The socialProvider property @@ -33,36 +38,41 @@ public class SocialLinkRepresentation : IAdditionalDataHolder, IParsable { public string SocialUsername { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public SocialLinkRepresentation() { + public SocialLinkRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SocialLinkRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.SocialLinkRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SocialLinkRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.SocialLinkRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"socialProvider", n => { SocialProvider = n.GetStringValue(); } }, - {"socialUserId", n => { SocialUserId = n.GetStringValue(); } }, - {"socialUsername", n => { SocialUsername = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "socialProvider", n => { SocialProvider = n.GetStringValue(); } }, + { "socialUserId", n => { SocialUserId = n.GetStringValue(); } }, + { "socialUsername", n => { SocialUsername = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("socialProvider", SocialProvider); writer.WriteStringValue("socialUserId", SocialUserId); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute.cs index e0c0acb4..fa279ad8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPAttribute : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UPAttribute : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The annotations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UPAttribute_annotations? Annotations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_annotations? Annotations { get; set; } #nullable restore #else - public UPAttribute_annotations Annotations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_annotations Annotations { get; set; } #endif /// The displayName property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -45,82 +50,87 @@ public class UPAttribute : IAdditionalDataHolder, IParsable { /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UPAttributePermissions? Permissions { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributePermissions? Permissions { get; set; } #nullable restore #else - public UPAttributePermissions Permissions { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributePermissions Permissions { get; set; } #endif /// The required property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UPAttributeRequired? Required { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeRequired? Required { get; set; } #nullable restore #else - public UPAttributeRequired Required { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeRequired Required { get; set; } #endif /// The selector property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UPAttributeSelector? Selector { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeSelector? Selector { get; set; } #nullable restore #else - public UPAttributeSelector Selector { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeSelector Selector { get; set; } #endif /// The validations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UPAttribute_validations? Validations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_validations? Validations { get; set; } #nullable restore #else - public UPAttribute_validations Validations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_validations Validations { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UPAttribute() { + public UPAttribute() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UPAttribute CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UPAttribute(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"annotations", n => { Annotations = n.GetObjectValue(UPAttribute_annotations.CreateFromDiscriminatorValue); } }, - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"group", n => { Group = n.GetStringValue(); } }, - {"multivalued", n => { Multivalued = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"permissions", n => { Permissions = n.GetObjectValue(UPAttributePermissions.CreateFromDiscriminatorValue); } }, - {"required", n => { Required = n.GetObjectValue(UPAttributeRequired.CreateFromDiscriminatorValue); } }, - {"selector", n => { Selector = n.GetObjectValue(UPAttributeSelector.CreateFromDiscriminatorValue); } }, - {"validations", n => { Validations = n.GetObjectValue(UPAttribute_validations.CreateFromDiscriminatorValue); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "annotations", n => { Annotations = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_annotations.CreateFromDiscriminatorValue); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "group", n => { Group = n.GetStringValue(); } }, + { "multivalued", n => { Multivalued = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "permissions", n => { Permissions = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributePermissions.CreateFromDiscriminatorValue); } }, + { "required", n => { Required = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeRequired.CreateFromDiscriminatorValue); } }, + { "selector", n => { Selector = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeSelector.CreateFromDiscriminatorValue); } }, + { "validations", n => { Validations = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_validations.CreateFromDiscriminatorValue); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("annotations", Annotations); + writer.WriteObjectValue("annotations", Annotations); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("group", Group); writer.WriteBoolValue("multivalued", Multivalued); writer.WriteStringValue("name", Name); - writer.WriteObjectValue("permissions", Permissions); - writer.WriteObjectValue("required", Required); - writer.WriteObjectValue("selector", Selector); - writer.WriteObjectValue("validations", Validations); + writer.WriteObjectValue("permissions", Permissions); + writer.WriteObjectValue("required", Required); + writer.WriteObjectValue("selector", Selector); + writer.WriteObjectValue("validations", Validations); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributePermissions.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributePermissions.cs index 1e592760..6d3b8cf0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributePermissions.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributePermissions.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPAttributePermissions : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UPAttributePermissions : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The edit property @@ -25,35 +30,40 @@ public class UPAttributePermissions : IAdditionalDataHolder, IParsable { public List View { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UPAttributePermissions() { + public UPAttributePermissions() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UPAttributePermissions CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributePermissions CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UPAttributePermissions(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributePermissions(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"edit", n => { Edit = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"view", n => { View = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "edit", n => { Edit = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "view", n => { View = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("edit", Edit); writer.WriteCollectionOfPrimitiveValues("view", View); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeRequired.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeRequired.cs index eb041b3a..5428176a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeRequired.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeRequired.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPAttributeRequired : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UPAttributeRequired : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The roles property @@ -25,35 +30,40 @@ public class UPAttributeRequired : IAdditionalDataHolder, IParsable { public List Scopes { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UPAttributeRequired() { + public UPAttributeRequired() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UPAttributeRequired CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeRequired CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UPAttributeRequired(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeRequired(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("roles", Roles); writer.WriteCollectionOfPrimitiveValues("scopes", Scopes); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeSelector.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeSelector.cs index 6f9668f9..1b423ae4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeSelector.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeSelector.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPAttributeSelector : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UPAttributeSelector : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The scopes property @@ -17,34 +22,39 @@ public class UPAttributeSelector : IAdditionalDataHolder, IParsable { public List Scopes { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UPAttributeSelector() { + public UPAttributeSelector() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UPAttributeSelector CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeSelector CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UPAttributeSelector(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeSelector(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteCollectionOfPrimitiveValues("scopes", Scopes); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_annotations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_annotations.cs index ad604d1c..afbfd2d6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_annotations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_annotations.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPAttribute_annotations : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UPAttribute_annotations : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UPAttribute_annotations() { + public UPAttribute_annotations() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UPAttribute_annotations CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_annotations CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UPAttribute_annotations(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_annotations(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_validations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_validations.cs index f21b5252..9df8ce9b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_validations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_validations.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPAttribute_validations : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UPAttribute_validations : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UPAttribute_validations() { + public UPAttribute_validations() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UPAttribute_validations CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_validations CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UPAttribute_validations(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_validations(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPConfig.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPConfig.cs index 80afb562..cfcf92c9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPConfig.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPConfig.cs @@ -1,66 +1,76 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPConfig : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UPConfig : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Attributes { get; set; } + public List? Attributes { get; set; } #nullable restore #else - public List Attributes { get; set; } + public List Attributes { get; set; } #endif /// The groups property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Groups { get; set; } + public List? Groups { get; set; } #nullable restore #else - public List Groups { get; set; } + public List Groups { get; set; } #endif /// The unmanagedAttributePolicy property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UnmanagedAttributePolicy? UnmanagedAttributePolicy { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UnmanagedAttributePolicy? UnmanagedAttributePolicy { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UPConfig() { + public UPConfig() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UPConfig CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPConfig CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UPConfig(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPConfig(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"attributes", n => { Attributes = n.GetCollectionOfObjectValues(UPAttribute.CreateFromDiscriminatorValue)?.ToList(); } }, - {"groups", n => { Groups = n.GetCollectionOfObjectValues(UPGroup.CreateFromDiscriminatorValue)?.ToList(); } }, - {"unmanagedAttributePolicy", n => { UnmanagedAttributePolicy = n.GetEnumValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "attributes", n => { Attributes = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute.CreateFromDiscriminatorValue)?.AsList(); } }, + { "groups", n => { Groups = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup.CreateFromDiscriminatorValue)?.AsList(); } }, + { "unmanagedAttributePolicy", n => { UnmanagedAttributePolicy = n.GetEnumValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("attributes", Attributes); - writer.WriteCollectionOfObjectValues("groups", Groups); - writer.WriteEnumValue("unmanagedAttributePolicy", UnmanagedAttributePolicy); + writer.WriteCollectionOfObjectValues("attributes", Attributes); + writer.WriteCollectionOfObjectValues("groups", Groups); + writer.WriteEnumValue("unmanagedAttributePolicy", UnmanagedAttributePolicy); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup.cs index 1c83ee02..cba98537 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPGroup : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UPGroup : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The annotations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UPGroup_annotations? Annotations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup_annotations? Annotations { get; set; } #nullable restore #else - public UPGroup_annotations Annotations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup_annotations Annotations { get; set; } #endif /// The displayDescription property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -41,39 +46,44 @@ public class UPGroup : IAdditionalDataHolder, IParsable { public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UPGroup() { + public UPGroup() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UPGroup CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UPGroup(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"annotations", n => { Annotations = n.GetObjectValue(UPGroup_annotations.CreateFromDiscriminatorValue); } }, - {"displayDescription", n => { DisplayDescription = n.GetStringValue(); } }, - {"displayHeader", n => { DisplayHeader = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "annotations", n => { Annotations = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup_annotations.CreateFromDiscriminatorValue); } }, + { "displayDescription", n => { DisplayDescription = n.GetStringValue(); } }, + { "displayHeader", n => { DisplayHeader = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("annotations", Annotations); + writer.WriteObjectValue("annotations", Annotations); writer.WriteStringValue("displayDescription", DisplayDescription); writer.WriteStringValue("displayHeader", DisplayHeader); writer.WriteStringValue("name", Name); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup_annotations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup_annotations.cs index c05216f9..3464b825 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup_annotations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup_annotations.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UPGroup_annotations : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UPGroup_annotations : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UPGroup_annotations() { + public UPGroup_annotations() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UPGroup_annotations CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup_annotations CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UPGroup_annotations(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup_annotations(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UnmanagedAttributePolicy.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UnmanagedAttributePolicy.cs index cad824b4..3a539d20 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UnmanagedAttributePolicy.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UnmanagedAttributePolicy.cs @@ -1,13 +1,24 @@ // using System.Runtime.Serialization; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public enum UnmanagedAttributePolicy { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public enum UnmanagedAttributePolicy + #pragma warning restore CS1591 + { [EnumMember(Value = "ENABLED")] + #pragma warning disable CS1591 ENABLED, + #pragma warning restore CS1591 [EnumMember(Value = "ADMIN_VIEW")] + #pragma warning disable CS1591 ADMIN_VIEW, + #pragma warning restore CS1591 [EnumMember(Value = "ADMIN_EDIT")] + #pragma warning disable CS1591 ADMIN_EDIT, + #pragma warning restore CS1591 } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserConsentRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserConsentRepresentation.cs index ee20e2c3..dcbd2ccf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserConsentRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserConsentRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserConsentRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserConsentRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The clientId property @@ -38,38 +43,43 @@ public class UserConsentRepresentation : IAdditionalDataHolder, IParsable { /// The lastUpdatedDate property public long? LastUpdatedDate { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserConsentRepresentation() { + public UserConsentRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserConsentRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserConsentRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserConsentRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserConsentRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"clientId", n => { ClientId = n.GetStringValue(); } }, - {"createdDate", n => { CreatedDate = n.GetLongValue(); } }, - {"grantedClientScopes", n => { GrantedClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"grantedRealmRoles", n => { GrantedRealmRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"lastUpdatedDate", n => { LastUpdatedDate = n.GetLongValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "clientId", n => { ClientId = n.GetStringValue(); } }, + { "createdDate", n => { CreatedDate = n.GetLongValue(); } }, + { "grantedClientScopes", n => { GrantedClientScopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "grantedRealmRoles", n => { GrantedRealmRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "lastUpdatedDate", n => { LastUpdatedDate = n.GetLongValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("clientId", ClientId); writer.WriteLongValue("createdDate", CreatedDate); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation.cs index a16ac773..4f498213 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserFederationMapperRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserFederationMapperRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UserFederationMapperRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation_config? Config { get; set; } #nullable restore #else - public UserFederationMapperRepresentation_config Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation_config Config { get; set; } #endif /// The federationMapperType property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -49,40 +54,45 @@ public class UserFederationMapperRepresentation : IAdditionalDataHolder, IParsab public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserFederationMapperRepresentation() { + public UserFederationMapperRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserFederationMapperRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserFederationMapperRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"config", n => { Config = n.GetObjectValue(UserFederationMapperRepresentation_config.CreateFromDiscriminatorValue); } }, - {"federationMapperType", n => { FederationMapperType = n.GetStringValue(); } }, - {"federationProviderDisplayName", n => { FederationProviderDisplayName = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation_config.CreateFromDiscriminatorValue); } }, + { "federationMapperType", n => { FederationMapperType = n.GetStringValue(); } }, + { "federationProviderDisplayName", n => { FederationProviderDisplayName = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteStringValue("federationMapperType", FederationMapperType); writer.WriteStringValue("federationProviderDisplayName", FederationProviderDisplayName); writer.WriteStringValue("id", Id); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation_config.cs index 54939013..2c15c5cf 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation_config.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserFederationMapperRepresentation_config : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserFederationMapperRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserFederationMapperRepresentation_config() { + public UserFederationMapperRepresentation_config() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserFederationMapperRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserFederationMapperRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation_config(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation.cs index f1d115a4..515377c0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation.cs @@ -1,11 +1,16 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserFederationProviderRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserFederationProviderRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The changedSyncPeriod property @@ -13,10 +18,10 @@ public class UserFederationProviderRepresentation : IAdditionalDataHolder, IPars /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UserFederationProviderRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation_config? Config { get; set; } #nullable restore #else - public UserFederationProviderRepresentation_config Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation_config Config { get; set; } #endif /// The displayName property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -49,44 +54,49 @@ public class UserFederationProviderRepresentation : IAdditionalDataHolder, IPars public string ProviderName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserFederationProviderRepresentation() { + public UserFederationProviderRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserFederationProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserFederationProviderRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"changedSyncPeriod", n => { ChangedSyncPeriod = n.GetIntValue(); } }, - {"config", n => { Config = n.GetObjectValue(UserFederationProviderRepresentation_config.CreateFromDiscriminatorValue); } }, - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"fullSyncPeriod", n => { FullSyncPeriod = n.GetIntValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"lastSync", n => { LastSync = n.GetIntValue(); } }, - {"priority", n => { Priority = n.GetIntValue(); } }, - {"providerName", n => { ProviderName = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "changedSyncPeriod", n => { ChangedSyncPeriod = n.GetIntValue(); } }, + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation_config.CreateFromDiscriminatorValue); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "fullSyncPeriod", n => { FullSyncPeriod = n.GetIntValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "lastSync", n => { LastSync = n.GetIntValue(); } }, + { "priority", n => { Priority = n.GetIntValue(); } }, + { "providerName", n => { ProviderName = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteIntValue("changedSyncPeriod", ChangedSyncPeriod); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteStringValue("displayName", DisplayName); writer.WriteIntValue("fullSyncPeriod", FullSyncPeriod); writer.WriteStringValue("id", Id); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation_config.cs index 871c822d..9a7a07f8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation_config.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserFederationProviderRepresentation_config : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserFederationProviderRepresentation_config : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserFederationProviderRepresentation_config() { + public UserFederationProviderRepresentation_config() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserFederationProviderRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserFederationProviderRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation_config(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata.cs index ecc1808d..d4a02fbe 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserProfileAttributeGroupMetadata : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserProfileAttributeGroupMetadata : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The annotations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UserProfileAttributeGroupMetadata_annotations? Annotations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata_annotations? Annotations { get; set; } #nullable restore #else - public UserProfileAttributeGroupMetadata_annotations Annotations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata_annotations Annotations { get; set; } #endif /// The displayDescription property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -41,39 +46,44 @@ public class UserProfileAttributeGroupMetadata : IAdditionalDataHolder, IParsabl public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserProfileAttributeGroupMetadata() { + public UserProfileAttributeGroupMetadata() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserProfileAttributeGroupMetadata CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserProfileAttributeGroupMetadata(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"annotations", n => { Annotations = n.GetObjectValue(UserProfileAttributeGroupMetadata_annotations.CreateFromDiscriminatorValue); } }, - {"displayDescription", n => { DisplayDescription = n.GetStringValue(); } }, - {"displayHeader", n => { DisplayHeader = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "annotations", n => { Annotations = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata_annotations.CreateFromDiscriminatorValue); } }, + { "displayDescription", n => { DisplayDescription = n.GetStringValue(); } }, + { "displayHeader", n => { DisplayHeader = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("annotations", Annotations); + writer.WriteObjectValue("annotations", Annotations); writer.WriteStringValue("displayDescription", DisplayDescription); writer.WriteStringValue("displayHeader", DisplayHeader); writer.WriteStringValue("name", Name); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata_annotations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata_annotations.cs index 1f66174b..b69fcca5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata_annotations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata_annotations.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserProfileAttributeGroupMetadata_annotations : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserProfileAttributeGroupMetadata_annotations : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserProfileAttributeGroupMetadata_annotations() { + public UserProfileAttributeGroupMetadata_annotations() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserProfileAttributeGroupMetadata_annotations CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata_annotations CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserProfileAttributeGroupMetadata_annotations(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata_annotations(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata.cs index 5db21e75..725d46a3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserProfileAttributeMetadata : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserProfileAttributeMetadata : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The annotations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UserProfileAttributeMetadata_annotations? Annotations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_annotations? Annotations { get; set; } #nullable restore #else - public UserProfileAttributeMetadata_annotations Annotations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_annotations Annotations { get; set; } #endif /// The displayName property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -49,56 +54,61 @@ public class UserProfileAttributeMetadata : IAdditionalDataHolder, IParsable { /// The validators property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UserProfileAttributeMetadata_validators? Validators { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_validators? Validators { get; set; } #nullable restore #else - public UserProfileAttributeMetadata_validators Validators { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_validators Validators { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserProfileAttributeMetadata() { + public UserProfileAttributeMetadata() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserProfileAttributeMetadata CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserProfileAttributeMetadata(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"annotations", n => { Annotations = n.GetObjectValue(UserProfileAttributeMetadata_annotations.CreateFromDiscriminatorValue); } }, - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"group", n => { Group = n.GetStringValue(); } }, - {"multivalued", n => { Multivalued = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"readOnly", n => { ReadOnly = n.GetBoolValue(); } }, - {"required", n => { Required = n.GetBoolValue(); } }, - {"validators", n => { Validators = n.GetObjectValue(UserProfileAttributeMetadata_validators.CreateFromDiscriminatorValue); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "annotations", n => { Annotations = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_annotations.CreateFromDiscriminatorValue); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "group", n => { Group = n.GetStringValue(); } }, + { "multivalued", n => { Multivalued = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "readOnly", n => { ReadOnly = n.GetBoolValue(); } }, + { "required", n => { Required = n.GetBoolValue(); } }, + { "validators", n => { Validators = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_validators.CreateFromDiscriminatorValue); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("annotations", Annotations); + writer.WriteObjectValue("annotations", Annotations); writer.WriteStringValue("displayName", DisplayName); writer.WriteStringValue("group", Group); writer.WriteBoolValue("multivalued", Multivalued); writer.WriteStringValue("name", Name); writer.WriteBoolValue("readOnly", ReadOnly); writer.WriteBoolValue("required", Required); - writer.WriteObjectValue("validators", Validators); + writer.WriteObjectValue("validators", Validators); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_annotations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_annotations.cs index 3fe8ef66..85ac17d2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_annotations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_annotations.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserProfileAttributeMetadata_annotations : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserProfileAttributeMetadata_annotations : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserProfileAttributeMetadata_annotations() { + public UserProfileAttributeMetadata_annotations() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserProfileAttributeMetadata_annotations CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_annotations CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserProfileAttributeMetadata_annotations(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_annotations(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_validators.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_validators.cs index c7e9fff7..888e9781 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_validators.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_validators.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserProfileAttributeMetadata_validators : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserProfileAttributeMetadata_validators : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserProfileAttributeMetadata_validators() { + public UserProfileAttributeMetadata_validators() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserProfileAttributeMetadata_validators CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_validators CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserProfileAttributeMetadata_validators(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_validators(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileMetadata.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileMetadata.cs index 9b90d3a5..43d6ea76 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileMetadata.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileMetadata.cs @@ -1,62 +1,72 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserProfileMetadata : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserProfileMetadata : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Attributes { get; set; } + public List? Attributes { get; set; } #nullable restore #else - public List Attributes { get; set; } + public List Attributes { get; set; } #endif /// The groups property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Groups { get; set; } + public List? Groups { get; set; } #nullable restore #else - public List Groups { get; set; } + public List Groups { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserProfileMetadata() { + public UserProfileMetadata() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserProfileMetadata CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserProfileMetadata(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"attributes", n => { Attributes = n.GetCollectionOfObjectValues(UserProfileAttributeMetadata.CreateFromDiscriminatorValue)?.ToList(); } }, - {"groups", n => { Groups = n.GetCollectionOfObjectValues(UserProfileAttributeGroupMetadata.CreateFromDiscriminatorValue)?.ToList(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "attributes", n => { Attributes = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata.CreateFromDiscriminatorValue)?.AsList(); } }, + { "groups", n => { Groups = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("attributes", Attributes); - writer.WriteCollectionOfObjectValues("groups", Groups); + writer.WriteCollectionOfObjectValues("attributes", Attributes); + writer.WriteCollectionOfObjectValues("groups", Groups); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation.cs index 320bd400..b51e25ad 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation.cs @@ -1,18 +1,23 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// The access property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UserRepresentation_access? Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_access? Access { get; set; } #nullable restore #else - public UserRepresentation_access Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_access Access { get; set; } #endif /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -20,44 +25,44 @@ public class UserRepresentation : IAdditionalDataHolder, IParsable { [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UserRepresentation_applicationRoles? ApplicationRoles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_applicationRoles? ApplicationRoles { get; set; } #nullable restore #else - public UserRepresentation_applicationRoles ApplicationRoles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_applicationRoles ApplicationRoles { get; set; } #endif /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UserRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public UserRepresentation_attributes Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_attributes Attributes { get; set; } #endif /// The clientConsents property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ClientConsents { get; set; } + public List? ClientConsents { get; set; } #nullable restore #else - public List ClientConsents { get; set; } + public List ClientConsents { get; set; } #endif /// The clientRoles property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UserRepresentation_clientRoles? ClientRoles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_clientRoles? ClientRoles { get; set; } #nullable restore #else - public UserRepresentation_clientRoles ClientRoles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_clientRoles ClientRoles { get; set; } #endif /// The createdTimestamp property public long? CreatedTimestamp { get; set; } /// The credentials property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Credentials { get; set; } + public List? Credentials { get; set; } #nullable restore #else - public List Credentials { get; set; } + public List Credentials { get; set; } #endif /// The disableableCredentialTypes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -82,10 +87,10 @@ public class UserRepresentation : IAdditionalDataHolder, IParsable { /// The federatedIdentities property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? FederatedIdentities { get; set; } + public List? FederatedIdentities { get; set; } #nullable restore #else - public List FederatedIdentities { get; set; } + public List FederatedIdentities { get; set; } #endif /// The federationLink property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -173,10 +178,10 @@ public class UserRepresentation : IAdditionalDataHolder, IParsable { [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? SocialLinks { get; set; } + public List? SocialLinks { get; set; } #nullable restore #else - public List SocialLinks { get; set; } + public List SocialLinks { get; set; } #endif /// The totp property public bool? Totp { get; set; } @@ -191,79 +196,84 @@ public class UserRepresentation : IAdditionalDataHolder, IParsable { /// The userProfileMetadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata? UserProfileMetadata { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata? UserProfileMetadata { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata UserProfileMetadata { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata UserProfileMetadata { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserRepresentation() { + public UserRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"access", n => { Access = n.GetObjectValue(UserRepresentation_access.CreateFromDiscriminatorValue); } }, - {"applicationRoles", n => { ApplicationRoles = n.GetObjectValue(UserRepresentation_applicationRoles.CreateFromDiscriminatorValue); } }, - {"attributes", n => { Attributes = n.GetObjectValue(UserRepresentation_attributes.CreateFromDiscriminatorValue); } }, - {"clientConsents", n => { ClientConsents = n.GetCollectionOfObjectValues(UserConsentRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"clientRoles", n => { ClientRoles = n.GetObjectValue(UserRepresentation_clientRoles.CreateFromDiscriminatorValue); } }, - {"createdTimestamp", n => { CreatedTimestamp = n.GetLongValue(); } }, - {"credentials", n => { Credentials = n.GetCollectionOfObjectValues(CredentialRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"disableableCredentialTypes", n => { DisableableCredentialTypes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"email", n => { Email = n.GetStringValue(); } }, - {"emailVerified", n => { EmailVerified = n.GetBoolValue(); } }, - {"enabled", n => { Enabled = n.GetBoolValue(); } }, - {"federatedIdentities", n => { FederatedIdentities = n.GetCollectionOfObjectValues(FederatedIdentityRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"federationLink", n => { FederationLink = n.GetStringValue(); } }, - {"firstName", n => { FirstName = n.GetStringValue(); } }, - {"groups", n => { Groups = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"lastName", n => { LastName = n.GetStringValue(); } }, - {"notBefore", n => { NotBefore = n.GetIntValue(); } }, - {"origin", n => { Origin = n.GetStringValue(); } }, - {"realmRoles", n => { RealmRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"requiredActions", n => { RequiredActions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"self", n => { Self = n.GetStringValue(); } }, - {"serviceAccountClientId", n => { ServiceAccountClientId = n.GetStringValue(); } }, - {"socialLinks", n => { SocialLinks = n.GetCollectionOfObjectValues(SocialLinkRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - {"totp", n => { Totp = n.GetBoolValue(); } }, - {"userProfileMetadata", n => { UserProfileMetadata = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata.CreateFromDiscriminatorValue); } }, - {"username", n => { Username = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "access", n => { Access = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_access.CreateFromDiscriminatorValue); } }, + { "applicationRoles", n => { ApplicationRoles = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_applicationRoles.CreateFromDiscriminatorValue); } }, + { "attributes", n => { Attributes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "clientConsents", n => { ClientConsents = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserConsentRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "clientRoles", n => { ClientRoles = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_clientRoles.CreateFromDiscriminatorValue); } }, + { "createdTimestamp", n => { CreatedTimestamp = n.GetLongValue(); } }, + { "credentials", n => { Credentials = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "disableableCredentialTypes", n => { DisableableCredentialTypes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "email", n => { Email = n.GetStringValue(); } }, + { "emailVerified", n => { EmailVerified = n.GetBoolValue(); } }, + { "enabled", n => { Enabled = n.GetBoolValue(); } }, + { "federatedIdentities", n => { FederatedIdentities = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.FederatedIdentityRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "federationLink", n => { FederationLink = n.GetStringValue(); } }, + { "firstName", n => { FirstName = n.GetStringValue(); } }, + { "groups", n => { Groups = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "lastName", n => { LastName = n.GetStringValue(); } }, + { "notBefore", n => { NotBefore = n.GetIntValue(); } }, + { "origin", n => { Origin = n.GetStringValue(); } }, + { "realmRoles", n => { RealmRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "requiredActions", n => { RequiredActions = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "self", n => { Self = n.GetStringValue(); } }, + { "serviceAccountClientId", n => { ServiceAccountClientId = n.GetStringValue(); } }, + { "socialLinks", n => { SocialLinks = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.SocialLinkRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "totp", n => { Totp = n.GetBoolValue(); } }, + { "userProfileMetadata", n => { UserProfileMetadata = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata.CreateFromDiscriminatorValue); } }, + { "username", n => { Username = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("access", Access); - writer.WriteObjectValue("applicationRoles", ApplicationRoles); - writer.WriteObjectValue("attributes", Attributes); - writer.WriteCollectionOfObjectValues("clientConsents", ClientConsents); - writer.WriteObjectValue("clientRoles", ClientRoles); + writer.WriteObjectValue("access", Access); + writer.WriteObjectValue("applicationRoles", ApplicationRoles); + writer.WriteObjectValue("attributes", Attributes); + writer.WriteCollectionOfObjectValues("clientConsents", ClientConsents); + writer.WriteObjectValue("clientRoles", ClientRoles); writer.WriteLongValue("createdTimestamp", CreatedTimestamp); - writer.WriteCollectionOfObjectValues("credentials", Credentials); + writer.WriteCollectionOfObjectValues("credentials", Credentials); writer.WriteCollectionOfPrimitiveValues("disableableCredentialTypes", DisableableCredentialTypes); writer.WriteStringValue("email", Email); writer.WriteBoolValue("emailVerified", EmailVerified); writer.WriteBoolValue("enabled", Enabled); - writer.WriteCollectionOfObjectValues("federatedIdentities", FederatedIdentities); + writer.WriteCollectionOfObjectValues("federatedIdentities", FederatedIdentities); writer.WriteStringValue("federationLink", FederationLink); writer.WriteStringValue("firstName", FirstName); writer.WriteCollectionOfPrimitiveValues("groups", Groups); @@ -275,10 +285,10 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfPrimitiveValues("requiredActions", RequiredActions); writer.WriteStringValue("self", Self); writer.WriteStringValue("serviceAccountClientId", ServiceAccountClientId); - writer.WriteCollectionOfObjectValues("socialLinks", SocialLinks); + writer.WriteCollectionOfObjectValues("socialLinks", SocialLinks); writer.WriteBoolValue("totp", Totp); writer.WriteStringValue("username", Username); - writer.WriteObjectValue("userProfileMetadata", UserProfileMetadata); + writer.WriteObjectValue("userProfileMetadata", UserProfileMetadata); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_access.cs index a5f6496f..b11cfddb 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_access.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserRepresentation_access : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserRepresentation_access : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserRepresentation_access() { + public UserRepresentation_access() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserRepresentation_access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_access(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_applicationRoles.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_applicationRoles.cs index 98798a86..83fed1c2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_applicationRoles.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_applicationRoles.cs @@ -1,42 +1,52 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ [Obsolete("")] - public class UserRepresentation_applicationRoles : IAdditionalDataHolder, IParsable { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserRepresentation_applicationRoles : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserRepresentation_applicationRoles() { + public UserRepresentation_applicationRoles() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserRepresentation_applicationRoles CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_applicationRoles CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserRepresentation_applicationRoles(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_applicationRoles(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_attributes.cs index d4b86a72..6b311b5c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_attributes.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserRepresentation_attributes : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserRepresentation_attributes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserRepresentation_attributes() { + public UserRepresentation_attributes() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_attributes(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_clientRoles.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_clientRoles.cs index b475d9f6..b548d9c8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_clientRoles.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_clientRoles.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserRepresentation_clientRoles : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserRepresentation_clientRoles : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserRepresentation_clientRoles() { + public UserRepresentation_clientRoles() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserRepresentation_clientRoles CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_clientRoles CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserRepresentation_clientRoles(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_clientRoles(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation.cs index ae28a74b..b9584bb3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation.cs @@ -1,20 +1,25 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserSessionRepresentation : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserSessionRepresentation : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The clients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public UserSessionRepresentation_clients? Clients { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation_clients? Clients { get; set; } #nullable restore #else - public UserSessionRepresentation_clients Clients { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation_clients Clients { get; set; } #endif /// The id property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -38,6 +43,8 @@ public class UserSessionRepresentation : IAdditionalDataHolder, IParsable { public bool? RememberMe { get; set; } /// The start property public long? Start { get; set; } + /// The transientUser property + public bool? TransientUser { get; set; } /// The userId property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -55,48 +62,55 @@ public class UserSessionRepresentation : IAdditionalDataHolder, IParsable { public string Username { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserSessionRepresentation() { + public UserSessionRepresentation() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserSessionRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserSessionRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"clients", n => { Clients = n.GetObjectValue(UserSessionRepresentation_clients.CreateFromDiscriminatorValue); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"ipAddress", n => { IpAddress = n.GetStringValue(); } }, - {"lastAccess", n => { LastAccess = n.GetLongValue(); } }, - {"rememberMe", n => { RememberMe = n.GetBoolValue(); } }, - {"start", n => { Start = n.GetLongValue(); } }, - {"userId", n => { UserId = n.GetStringValue(); } }, - {"username", n => { Username = n.GetStringValue(); } }, + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "clients", n => { Clients = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation_clients.CreateFromDiscriminatorValue); } }, + { "id", n => { Id = n.GetStringValue(); } }, + { "ipAddress", n => { IpAddress = n.GetStringValue(); } }, + { "lastAccess", n => { LastAccess = n.GetLongValue(); } }, + { "rememberMe", n => { RememberMe = n.GetBoolValue(); } }, + { "start", n => { Start = n.GetLongValue(); } }, + { "transientUser", n => { TransientUser = n.GetBoolValue(); } }, + { "userId", n => { UserId = n.GetStringValue(); } }, + { "username", n => { Username = n.GetStringValue(); } }, }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("clients", Clients); + writer.WriteObjectValue("clients", Clients); writer.WriteStringValue("id", Id); writer.WriteStringValue("ipAddress", IpAddress); writer.WriteLongValue("lastAccess", LastAccess); writer.WriteBoolValue("rememberMe", RememberMe); writer.WriteLongValue("start", Start); + writer.WriteBoolValue("transientUser", TransientUser); writer.WriteStringValue("userId", UserId); writer.WriteStringValue("username", Username); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation_clients.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation_clients.cs index bd032fc5..17a7cb54 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation_clients.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation_clients.cs @@ -1,41 +1,51 @@ // +using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; -using System.Linq; using System; -namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { - public class UserSessionRepresentation_clients : IAdditionalDataHolder, IParsable { +namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.16.0")] + #pragma warning disable CS1591 + public partial class UserSessionRepresentation_clients : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// - public UserSessionRepresentation_clients() { + public UserSessionRepresentation_clients() + { AdditionalData = new Dictionary(); } /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static UserSessionRepresentation_clients CreateFromDiscriminatorValue(IParseNode parseNode) { + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation_clients CreateFromDiscriminatorValue(IParseNode parseNode) + { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserSessionRepresentation_clients(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation_clients(); } /// /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { }; } /// /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { + public virtual void Serialize(ISerializationWriter writer) + { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/kiota-lock.json b/src/Keycloak.AuthServices.Sdk.Kiota/kiota-lock.json index fd176107..de737ec3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/kiota-lock.json +++ b/src/Keycloak.AuthServices.Sdk.Kiota/kiota-lock.json @@ -1,14 +1,15 @@ { - "descriptionHash": "0C850ED5B6555F46112A623464E3147D6F0AC5FE9147E377E032FFFCE81E392305975F60B0D57EB8419E3DF834B6E54B1140F4C52C11B796016C62A89B15AB02", - "descriptionLocation": "https://www.keycloak.org/docs-api/24.0.1/rest-api/openapi.json", + "descriptionHash": "136EC0484489931BA29BC141F2D4E405C2A9455F2EE0150C92E381C3B884F51E525E1814787B0D9C39E290DB3AF95D7545B7A3E03612A1600DD2E76C422E6B5C", + "descriptionLocation": "https://www.keycloak.org/docs-api/25.0.2/rest-api/openapi.json", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.12.0", + "kiotaVersion": "1.16.0", "clientClassName": "KeycloakAdminApiClient", "clientNamespaceName": "Keycloak.AuthServices.Sdk.Kiota.Admin", "language": "CSharp", "usesBackingStore": false, "excludeBackwardCompatible": true, "includeAdditionalData": true, + "disableSSLValidation": false, "serializers": [ "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory", "Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",