From 330b4efec865d9d9b1482c90b567c654a957e6d4 Mon Sep 17 00:00:00 2001 From: Dakota Clark Date: Sun, 10 Nov 2024 21:18:40 -0800 Subject: [PATCH] feat: build with latest kiota versions --- .../Admin/AdminRequestBuilder.cs | 15 +- .../AdminEvents/AdminEventsRequestBuilder.cs | 34 +- .../AttackDetectionRequestBuilder.cs | 15 +- .../BruteForce/BruteForceRequestBuilder.cs | 15 +- .../Users/Item/WithUserGetResponse.cs | 15 +- .../Users/Item/WithUserItemRequestBuilder.cs | 25 +- .../BruteForce/Users/UsersRequestBuilder.cs | 23 +- .../AuthenticationRequestBuilder.cs | 59 ++-- .../AuthenticatorProviders.cs | 15 +- .../AuthenticatorProvidersRequestBuilder.cs | 27 +- .../ClientAuthenticatorProviders.cs | 15 +- ...entAuthenticatorProvidersRequestBuilder.cs | 27 +- .../Config/ConfigRequestBuilder.cs | 31 +- .../Config/Item/ConfigItemRequestBuilder.cs | 33 +- .../ConfigDescriptionRequestBuilder.cs | 17 +- .../Item/WithProviderItemRequestBuilder.cs | 25 +- .../Executions/ExecutionsRequestBuilder.cs | 31 +- .../Item/Config/ConfigRequestBuilder.cs | 31 +- .../Config/Item/ConfigItemRequestBuilder.cs | 25 +- .../LowerPriorityRequestBuilder.cs | 17 +- .../RaisePriorityRequestBuilder.cs | 17 +- .../Item/WithExecutionItemRequestBuilder.cs | 37 ++- .../Flows/FlowsRequestBuilder.cs | 41 +-- .../Flows/Item/Copy/CopyPostRequestBody.cs | 15 +- .../Flows/Item/Copy/CopyRequestBuilder.cs | 25 +- .../Execution/ExecutionPostRequestBody.cs | 15 +- .../Execution/ExecutionRequestBuilder.cs | 25 +- .../Executions/ExecutionsRequestBuilder.cs | 43 +-- .../Executions/Flow/FlowPostRequestBody.cs | 15 +- .../Executions/Flow/FlowRequestBuilder.cs | 25 +- .../Flows/Item/FlowAliasItemRequestBuilder.cs | 41 +-- .../FormActionProviders.cs | 15 +- .../FormActionProvidersRequestBuilder.cs | 27 +- .../FormProviders/FormProviders.cs | 15 +- .../FormProvidersRequestBuilder.cs | 27 +- .../PerClientConfigDescriptionGetResponse.cs | 15 +- ...erClientConfigDescriptionRequestBuilder.cs | 25 +- .../RegisterRequiredActionPostRequestBody.cs | 15 +- .../RegisterRequiredActionRequestBuilder.cs | 25 +- .../Item/Config/ConfigRequestBuilder.cs | 33 +- .../ConfigDescriptionRequestBuilder.cs | 25 +- .../LowerPriorityRequestBuilder.cs | 17 +- .../RaisePriorityRequestBuilder.cs | 17 +- .../Item/WithAliasItemRequestBuilder.cs | 49 +-- .../RequiredActionsRequestBuilder.cs | 33 +- .../UnregisteredRequiredActions.cs | 15 +- ...registeredRequiredActionsRequestBuilder.cs | 27 +- ...lientDescriptionConverterRequestBuilder.cs | 25 +- .../ClientPoliciesRequestBuilder.cs | 19 +- .../Policies/PoliciesRequestBuilder.cs | 40 +-- .../Profiles/ProfilesRequestBuilder.cs | 40 +-- .../ClientRegistrationPolicyRequestBuilder.cs | 15 +- .../Providers/ProvidersRequestBuilder.cs | 27 +- .../ClientScopesRequestBuilder.cs | 41 +-- .../Item/ClientScopeItemRequestBuilder.cs | 41 +-- .../AddModels/AddModelsRequestBuilder.cs | 25 +- .../Item/ModelsItemRequestBuilder.cs | 33 +- .../ModelsRequests/ModelsRequestBuilder.cs | 41 +-- .../Item/WithProtocolItemRequestBuilder.cs | 27 +- .../Protocol/ProtocolRequestBuilder.cs | 17 +- .../ProtocolMappersRequestBuilder.cs | 23 +- .../Clients/ClientsRequestBuilder.cs | 17 +- .../Item/Available/AvailableRequestBuilder.cs | 27 +- .../Item/Composite/CompositeRequestBuilder.cs | 34 +- .../Item/WithClientItemRequestBuilder.cs | 51 +-- .../Available/AvailableRequestBuilder.cs | 27 +- .../Composite/CompositeRequestBuilder.cs | 34 +- .../Realm/RealmRequestBuilder.cs | 51 +-- .../ScopeMappingsRequestBuilder.cs | 33 +- .../ClientSessionStats/ClientSessionStats.cs | 15 +- .../ClientSessionStatsRequestBuilder.cs | 27 +- .../ClientTemplatesRequestBuilder.cs | 41 +-- .../Item/ClientScopeItemRequestBuilder.cs | 41 +-- .../AddModels/AddModelsRequestBuilder.cs | 25 +- .../Item/ModelsItemRequestBuilder.cs | 33 +- .../ModelsRequests/ModelsRequestBuilder.cs | 41 +-- .../Item/WithProtocolItemRequestBuilder.cs | 27 +- .../Protocol/ProtocolRequestBuilder.cs | 17 +- .../ProtocolMappersRequestBuilder.cs | 23 +- .../Clients/ClientsRequestBuilder.cs | 17 +- .../Item/Available/AvailableRequestBuilder.cs | 27 +- .../Item/Composite/CompositeRequestBuilder.cs | 34 +- .../Item/WithClientItemRequestBuilder.cs | 51 +-- .../Available/AvailableRequestBuilder.cs | 27 +- .../Composite/CompositeRequestBuilder.cs | 34 +- .../Realm/RealmRequestBuilder.cs | 51 +-- .../ScopeMappingsRequestBuilder.cs | 33 +- .../ClientTypes/ClientTypesRequestBuilder.cs | 33 +- .../Item/Clients/ClientsRequestBuilder.cs | 48 +-- .../Clients/Item/Authz/AuthzRequestBuilder.cs | 15 +- .../Import/ImportRequestBuilder.cs | 25 +- .../Evaluate/EvaluateRequestBuilder.cs | 29 +- .../Permission/PermissionRequestBuilder.cs | 46 +-- .../Providers/ProvidersRequestBuilder.cs | 27 +- .../Permission/Search/SearchRequestBuilder.cs | 32 +- .../Policy/Evaluate/EvaluateRequestBuilder.cs | 29 +- .../Policy/PolicyRequestBuilder.cs | 46 +-- .../Providers/ProvidersRequestBuilder.cs | 27 +- .../Policy/Search/SearchRequestBuilder.cs | 32 +- .../Attributes/AttributesRequestBuilder.cs | 28 +- .../Permissions/PermissionsRequestBuilder.cs | 34 +- .../Item/ResourceItemRequestBuilder.cs | 66 ++-- .../Item/Scopes/ScopesRequestBuilder.cs | 34 +- .../Resource/ResourceRequestBuilder.cs | 59 ++-- .../Resource/Search/SearchRequestBuilder.cs | 32 +- .../ResourceServerRequestBuilder.cs | 57 ++-- .../Permissions/PermissionsRequestBuilder.cs | 27 +- .../Item/Resources/ResourcesRequestBuilder.cs | 27 +- .../Scope/Item/ScopeItemRequestBuilder.cs | 41 +-- .../Scope/ScopeRequestBuilder.cs | 52 ++-- .../Scope/Search/SearchRequestBuilder.cs | 34 +- .../Settings/SettingsRequestBuilder.cs | 25 +- .../CertificatesRequestBuilder.cs | 17 +- .../Item/Download/DownloadRequestBuilder.cs | 25 +- .../Item/Generate/GenerateRequestBuilder.cs | 25 +- .../GenerateAndDownloadRequestBuilder.cs | 25 +- .../Item/Upload/UploadRequestBuilder.cs | 25 +- .../UploadCertificateRequestBuilder.cs | 25 +- .../Item/WithAttrItemRequestBuilder.cs | 45 +-- .../ClientSecretRequestBuilder.cs | 37 ++- .../Rotated/RotatedRequestBuilder.cs | 25 +- .../Item/ClientUuItemRequestBuilder.cs | 113 +++---- .../DefaultClientScopesRequestBuilder.cs | 33 +- .../Item/WithClientScopeItemRequestBuilder.cs | 17 +- .../EvaluateScopesRequestBuilder.cs | 31 +- ...enerateExampleAccessTokenRequestBuilder.cs | 32 +- .../GenerateExampleIdTokenRequestBuilder.cs | 32 +- .../GenerateExampleUserinfoGetResponse.cs | 15 +- .../GenerateExampleUserinfoRequestBuilder.cs | 32 +- .../ProtocolMappersRequestBuilder.cs | 34 +- .../Item/Granted/GrantedRequestBuilder.cs | 34 +- .../NotGranted/NotGrantedRequestBuilder.cs | 34 +- .../WithRoleContainerItemRequestBuilder.cs | 19 +- .../ScopeMappingsRequestBuilder.cs | 17 +- .../InstallationRequestBuilder.cs | 15 +- .../Item/WithProviderItemRequestBuilder.cs | 17 +- .../Providers/ProvidersRequestBuilder.cs | 17 +- .../Management/ManagementRequestBuilder.cs | 15 +- .../Permissions/PermissionsRequestBuilder.cs | 37 ++- .../Nodes/Item/WithNodeItemRequestBuilder.cs | 17 +- .../Item/Nodes/NodesPostRequestBody.cs | 15 +- .../Clients/Item/Nodes/NodesRequestBuilder.cs | 31 +- .../OfflineSessionCountGetResponse.cs | 15 +- .../OfflineSessionCountRequestBuilder.cs | 25 +- .../OfflineSessionsRequestBuilder.cs | 34 +- .../Item/WithClientScopeItemRequestBuilder.cs | 17 +- .../OptionalClientScopesRequestBuilder.cs | 33 +- .../AddModels/AddModelsRequestBuilder.cs | 25 +- .../Item/ModelsItemRequestBuilder.cs | 33 +- .../ModelsRequests/ModelsRequestBuilder.cs | 41 +-- .../Item/WithProtocolItemRequestBuilder.cs | 27 +- .../Protocol/ProtocolRequestBuilder.cs | 17 +- .../ProtocolMappersRequestBuilder.cs | 23 +- .../PushRevocationRequestBuilder.cs | 25 +- .../RegistrationAccessTokenRequestBuilder.cs | 25 +- .../Clients/ClientsRequestBuilder.cs | 17 +- .../Item/ClientUuItemRequestBuilder.cs | 27 +- .../Composites/CompositesRequestBuilder.cs | 51 +-- .../Composites/Realm/RealmRequestBuilder.cs | 27 +- .../Roles/Item/Groups/GroupsRequestBuilder.cs | 34 +- .../Management/ManagementRequestBuilder.cs | 15 +- .../Permissions/PermissionsRequestBuilder.cs | 37 ++- .../Roles/Item/RoleNameItemRequestBuilder.cs | 49 +-- .../Roles/Item/Users/UsersRequestBuilder.cs | 34 +- .../Clients/Item/Roles/RolesRequestBuilder.cs | 48 +-- .../Clients/ClientsRequestBuilder.cs | 17 +- .../Item/Available/AvailableRequestBuilder.cs | 27 +- .../Item/Composite/CompositeRequestBuilder.cs | 34 +- .../Item/WithClientItemRequestBuilder.cs | 51 +-- .../Available/AvailableRequestBuilder.cs | 27 +- .../Composite/CompositeRequestBuilder.cs | 34 +- .../Realm/RealmRequestBuilder.cs | 51 +-- .../ScopeMappingsRequestBuilder.cs | 33 +- .../ServiceAccountUserRequestBuilder.cs | 25 +- .../SessionCount/SessionCountGetResponse.cs | 15 +- .../SessionCountRequestBuilder.cs | 25 +- .../TestNodesAvailableRequestBuilder.cs | 25 +- .../UserSessionsRequestBuilder.cs | 34 +- .../ClientsInitialAccessRequestBuilder.cs | 45 +-- .../ClientsInitialAccessItemRequestBuilder.cs | 17 +- .../Components/ComponentsRequestBuilder.cs | 48 +-- .../Item/ComponentsItemRequestBuilder.cs | 37 ++- .../SubComponentTypesRequestBuilder.cs | 34 +- .../CredentialRegistratorsRequestBuilder.cs | 19 +- ...efaultDefaultClientScopesRequestBuilder.cs | 33 +- .../Item/WithClientScopeItemRequestBuilder.cs | 17 +- .../DefaultGroupsRequestBuilder.cs | 33 +- .../Item/WithGroupItemRequestBuilder.cs | 17 +- ...faultOptionalClientScopesRequestBuilder.cs | 33 +- .../Item/WithClientScopeItemRequestBuilder.cs | 17 +- .../Events/Config/ConfigRequestBuilder.cs | 33 +- .../Item/Events/EventsRequestBuilder.cs | 38 ++- .../GroupByPath/GroupByPathRequestBuilder.cs | 17 +- .../Item/WithPathItemRequestBuilder.cs | 25 +- .../Item/Groups/Count/CountGetResponse.cs | 15 +- .../Item/Groups/Count/CountRequestBuilder.cs | 32 +- .../Item/Groups/GroupsRequestBuilder.cs | 52 ++-- .../Item/Children/ChildrenRequestBuilder.cs | 42 +-- .../Groups/Item/GroupItemRequestBuilder.cs | 49 +-- .../Management/ManagementRequestBuilder.cs | 15 +- .../Permissions/PermissionsRequestBuilder.cs | 37 ++- .../Item/Members/MembersRequestBuilder.cs | 34 +- .../Clients/ClientsRequestBuilder.cs | 17 +- .../Item/Available/AvailableRequestBuilder.cs | 27 +- .../Clients/Item/ClientItemRequestBuilder.cs | 51 +-- .../Item/Composite/CompositeRequestBuilder.cs | 34 +- .../Available/AvailableRequestBuilder.cs | 27 +- .../Composite/CompositeRequestBuilder.cs | 34 +- .../RoleMappings/Realm/RealmRequestBuilder.cs | 51 +-- .../RoleMappingsRequestBuilder.cs | 33 +- .../IdentityProviderRequestBuilder.cs | 23 +- .../ImportConfigPostRequestBody.cs | 15 +- .../ImportConfig/ImportConfigPostResponse.cs | 15 +- .../ImportConfigRequestBuilder.cs | 29 +- .../Instances/InstancesRequestBuilder.cs | 48 +-- .../Item/Export/ExportRequestBuilder.cs | 28 +- .../Management/ManagementRequestBuilder.cs | 15 +- .../Permissions/PermissionsRequestBuilder.cs | 37 ++- .../MapperTypes/MapperTypesRequestBuilder.cs | 17 +- .../Mappers/Item/MappersItemRequestBuilder.cs | 33 +- .../Item/Mappers/MappersRequestBuilder.cs | 41 +-- .../ReloadKeys/ReloadKeysRequestBuilder.cs | 17 +- .../Item/WithAliasItemRequestBuilder.cs | 53 ++-- .../Item/WithProvider_GetResponse.cs | 15 +- .../Item/WithProvider_ItemRequestBuilder.cs | 25 +- .../Providers/ProvidersRequestBuilder.cs | 17 +- .../Realms/Item/Keys/KeysRequestBuilder.cs | 25 +- .../Item/Item/WithKeyItemRequestBuilder.cs | 17 +- .../Item/WithLocaleGetResponse.cs | 15 +- .../Item/WithLocaleItemRequestBuilder.cs | 46 +-- .../Item/WithLocalePostRequestBody.cs | 15 +- .../LocalizationRequestBuilder.cs | 25 +- .../Item/LogoutAll/LogoutAllRequestBuilder.cs | 25 +- .../IdentityProvidersRequestBuilder.cs | 33 +- .../Item/WithAliasItemRequestBuilder.cs | 25 +- .../Item/Members/Count/CountRequestBuilder.cs | 17 +- .../InviteExistingUserPostRequestBody.cs | 15 +- .../InviteExistingUserRequestBuilder.cs | 25 +- .../InviteUser/InviteUserPostRequestBody.cs | 15 +- .../InviteUser/InviteUserRequestBuilder.cs | 25 +- .../Members/Item/MembersItemRequestBuilder.cs | 29 +- .../OrganizationsRequestBuilder.cs | 27 +- .../Item/Members/MembersRequestBuilder.cs | 52 ++-- .../Item/OrganizationsItemRequestBuilder.cs | 41 +-- .../Members/Item/MembersItemRequestBuilder.cs | 15 +- .../OrganizationsRequestBuilder.cs | 27 +- .../Members/MembersRequestBuilder.cs | 17 +- .../OrganizationsRequestBuilder.cs | 52 ++-- .../PartialExportRequestBuilder.cs | 28 +- .../PartialImportRequestBuilder.cs | 17 +- .../PushRevocationRequestBuilder.cs | 25 +- .../Clients/ClientsRequestBuilder.cs | 17 +- .../Item/ClientUuItemRequestBuilder.cs | 27 +- .../Composites/CompositesRequestBuilder.cs | 51 +-- .../Composites/Realm/RealmRequestBuilder.cs | 27 +- .../Roles/Item/Groups/GroupsRequestBuilder.cs | 34 +- .../Management/ManagementRequestBuilder.cs | 15 +- .../Permissions/PermissionsRequestBuilder.cs | 37 ++- .../Roles/Item/RoleNameItemRequestBuilder.cs | 49 +-- .../Roles/Item/Users/UsersRequestBuilder.cs | 34 +- .../Realms/Item/Roles/RolesRequestBuilder.cs | 48 +-- .../Clients/ClientsRequestBuilder.cs | 17 +- .../Item/WithClientUuItemRequestBuilder.cs | 27 +- .../Composites/CompositesRequestBuilder.cs | 58 ++-- .../Composites/Realm/RealmRequestBuilder.cs | 27 +- .../Management/ManagementRequestBuilder.cs | 15 +- .../Permissions/PermissionsRequestBuilder.cs | 37 ++- .../RolesById/Item/RoleItemRequestBuilder.cs | 41 +-- .../Item/RolesById/RolesByIdRequestBuilder.cs | 17 +- .../Item/WithSessionItemRequestBuilder.cs | 28 +- .../Item/Sessions/SessionsRequestBuilder.cs | 17 +- .../TestSMTPConnectionPostRequestBody.cs | 15 +- .../TestSMTPConnectionRequestBuilder.cs | 25 +- .../Item/Users/Count/CountRequestBuilder.cs | 28 +- ...serStorageCredentialTypesRequestBuilder.cs | 19 +- .../Item/Users/Item/Consents/Consents.cs | 15 +- .../Item/Consents/ConsentsRequestBuilder.cs | 33 +- .../Item/WithClientItemRequestBuilder.cs | 17 +- .../Credentials/CredentialsRequestBuilder.cs | 33 +- ...NewPreviousCredentialItemRequestBuilder.cs | 17 +- .../Item/MoveAfter/MoveAfterRequestBuilder.cs | 17 +- .../MoveToFirst/MoveToFirstRequestBuilder.cs | 17 +- .../Item/UserLabel/UserLabelRequestBuilder.cs | 17 +- .../Item/WithCredentialItemRequestBuilder.cs | 29 +- .../DisableCredentialTypesRequestBuilder.cs | 17 +- .../ExecuteActionsEmailRequestBuilder.cs | 28 +- .../FederatedIdentityRequestBuilder.cs | 33 +- .../Item/WithProviderItemRequestBuilder.cs | 17 +- .../Item/Groups/Count/CountGetResponse.cs | 15 +- .../Item/Groups/Count/CountRequestBuilder.cs | 32 +- .../Users/Item/Groups/GroupsRequestBuilder.cs | 44 +-- .../Item/WithGroupItemRequestBuilder.cs | 17 +- .../ImpersonationPostResponse.cs | 15 +- .../ImpersonationRequestBuilder.cs | 25 +- .../Users/Item/Logout/LogoutRequestBuilder.cs | 17 +- .../Item/WithClientUuItemRequestBuilder.cs | 27 +- .../OfflineSessionsRequestBuilder.cs | 17 +- .../ResetPasswordRequestBuilder.cs | 25 +- .../ResetPasswordEmailRequestBuilder.cs | 28 +- .../Clients/ClientsRequestBuilder.cs | 17 +- .../Item/Available/AvailableRequestBuilder.cs | 27 +- .../Clients/Item/ClientItemRequestBuilder.cs | 51 +-- .../Item/Composite/CompositeRequestBuilder.cs | 34 +- .../Available/AvailableRequestBuilder.cs | 27 +- .../Composite/CompositeRequestBuilder.cs | 34 +- .../RoleMappings/Realm/RealmRequestBuilder.cs | 51 +-- .../RoleMappingsRequestBuilder.cs | 33 +- .../SendVerifyEmailRequestBuilder.cs | 28 +- .../Item/Sessions/SessionsRequestBuilder.cs | 27 +- .../UnmanagedAttributesGetResponse.cs | 15 +- .../UnmanagedAttributesRequestBuilder.cs | 25 +- .../Item/Users/Item/UserItemRequestBuilder.cs | 104 ++++--- .../Metadata/MetadataRequestBuilder.cs | 25 +- .../Users/Profile/ProfileRequestBuilder.cs | 41 +-- .../Realms/Item/Users/UsersRequestBuilder.cs | 56 ++-- ...sersManagementPermissionsRequestBuilder.cs | 37 ++- .../Item/WithRealmItemRequestBuilder.cs | 169 +++++----- .../Admin/Realms/RealmsRequestBuilder.cs | 40 +-- .../KeycloakAdminApiClient.cs | 12 +- .../Models/AbstractPolicyRepresentation.cs | 49 +-- .../Models/Access.cs | 17 +- .../Models/AccessToken.cs | 67 ++-- .../Models/AccessToken_otherClaims.cs | 15 +- .../Models/AccessToken_resource_access.cs | 15 +- .../Models/AddressClaimSet.cs | 15 +- .../Models/AdminEventRepresentation.cs | 23 +- .../Models/ApplicationRepresentation.cs | 81 ++--- .../ApplicationRepresentation_access.cs | 15 +- .../ApplicationRepresentation_attributes.cs | 15 +- ...tion_authenticationFlowBindingOverrides.cs | 15 +- .../ApplicationRepresentation_claims.cs | 13 +- ...plicationRepresentation_registeredNodes.cs | 15 +- .../Models/AuthDetailsRepresentation.cs | 15 +- ...enticationExecutionExportRepresentation.cs | 15 +- ...thenticationExecutionInfoRepresentation.cs | 17 +- .../AuthenticationExecutionRepresentation.cs | 15 +- .../AuthenticationFlowRepresentation.cs | 23 +- .../AuthenticatorConfigInfoRepresentation.cs | 23 +- .../AuthenticatorConfigRepresentation.cs | 23 +- ...uthenticatorConfigRepresentation_config.cs | 15 +- .../Models/Authorization.cs | 23 +- .../Models/BruteForceStrategy.cs | 1 + .../Models/CertificateRepresentation.cs | 15 +- .../Models/ClaimRepresentation.cs | 15 +- .../ClientInitialAccessCreatePresentation.cs | 15 +- .../Models/ClientInitialAccessPresentation.cs | 15 +- .../Models/ClientPoliciesRepresentation.cs | 31 +- .../ClientPolicyConditionRepresentation.cs | 15 +- .../ClientPolicyExecutorRepresentation.cs | 15 +- .../Models/ClientPolicyRepresentation.cs | 25 +- .../Models/ClientProfileRepresentation.cs | 23 +- .../Models/ClientProfilesRepresentation.cs | 31 +- .../Models/ClientRepresentation.cs | 73 ++--- .../Models/ClientRepresentation_access.cs | 15 +- .../Models/ClientRepresentation_attributes.cs | 15 +- ...tion_authenticationFlowBindingOverrides.cs | 15 +- .../ClientRepresentation_registeredNodes.cs | 15 +- .../Models/ClientScopeRepresentation.cs | 31 +- .../ClientScopeRepresentation_attributes.cs | 15 +- .../Models/ClientTemplateRepresentation.cs | 31 +- ...ClientTemplateRepresentation_attributes.cs | 15 +- .../Models/ClientTypeRepresentation.cs | 23 +- .../Models/ClientTypeRepresentation_config.cs | 15 +- .../Models/ClientTypesRepresentation.cs | 31 +- .../Models/ComponentRepresentation.cs | 23 +- .../Models/ComponentTypeRepresentation.cs | 31 +- .../ComponentTypeRepresentation_metadata.cs | 15 +- .../Models/Composites.cs | 33 +- .../Models/Composites_application.cs | 15 +- .../Models/Composites_client.cs | 15 +- .../Models/ConfigPropertyRepresentation.cs | 17 +- .../Models/Confirmation.cs | 15 +- .../Models/CredentialRepresentation.cs | 23 +- .../Models/CredentialRepresentation_config.cs | 13 +- .../Models/DecisionEffect.cs | 1 + .../Models/DecisionStrategy.cs | 1 + .../Models/EvaluationResultRepresentation.cs | 53 ++-- .../Models/EventRepresentation.cs | 23 +- .../Models/EventRepresentation_details.cs | 15 +- .../Models/FederatedIdentityRepresentation.cs | 15 +- .../Models/GlobalRequestResult.cs | 19 +- .../Models/GroupRepresentation.cs | 49 +-- .../Models/GroupRepresentation_access.cs | 15 +- .../Models/GroupRepresentation_attributes.cs | 15 +- .../Models/GroupRepresentation_clientRoles.cs | 15 +- .../Models/IDToken.cs | 31 +- .../Models/IDToken_otherClaims.cs | 15 +- .../IdentityProviderMapperRepresentation.cs | 23 +- ...tityProviderMapperRepresentation_config.cs | 15 +- .../Models/IdentityProviderRepresentation.cs | 23 +- .../IdentityProviderRepresentation_config.cs | 15 +- .../Models/KeyMetadataRepresentation.cs | 21 +- .../Models/KeyStoreConfig.cs | 15 +- .../Models/KeyUse.cs | 1 + .../Models/KeysMetadataRepresentation.cs | 31 +- .../KeysMetadataRepresentation_active.cs | 15 +- .../Models/Logic.cs | 1 + .../Models/ManagementPermissionReference.cs | 23 +- ...entPermissionReference_scopePermissions.cs | 15 +- .../Models/MappingsRepresentation.cs | 31 +- .../MappingsRepresentation_clientMappings.cs | 15 +- .../Models/MemberRepresentation.cs | 101 +++--- .../Models/MemberRepresentation_access.cs | 15 +- .../MemberRepresentation_applicationRoles.cs | 15 +- .../Models/MemberRepresentation_attributes.cs | 15 +- .../MemberRepresentation_clientRoles.cs | 15 +- .../Models/MembershipType.cs | 1 + ...hMapStringComponentExportRepresentation.cs | 15 +- .../Models/MultivaluedHashMapStringString.cs | 15 +- .../Models/OAuthClientRepresentation.cs | 81 ++--- .../OAuthClientRepresentation_access.cs | 15 +- .../OAuthClientRepresentation_attributes.cs | 15 +- ...tion_authenticationFlowBindingOverrides.cs | 15 +- .../OAuthClientRepresentation_claims.cs | 13 +- ...uthClientRepresentation_registeredNodes.cs | 15 +- .../OrganizationDomainRepresentation.cs | 15 +- .../Models/OrganizationRepresentation.cs | 47 +-- .../OrganizationRepresentation_attributes.cs | 15 +- .../Models/Permission.cs | 25 +- .../Models/Permission_claims.cs | 15 +- .../Models/PolicyEnforcementMode.cs | 1 + .../Models/PolicyEvaluationRequest.cs | 33 +- .../Models/PolicyEvaluationRequest_context.cs | 15 +- .../Models/PolicyEvaluationResponse.cs | 37 ++- .../Models/PolicyProviderRepresentation.cs | 15 +- .../Models/PolicyRepresentation.cs | 57 ++-- .../Models/PolicyRepresentation_config.cs | 15 +- .../Models/PolicyResultRepresentation.cs | 39 +-- .../ProtocolMapperEvaluationRepresentation.cs | 15 +- .../Models/ProtocolMapperRepresentation.cs | 23 +- .../ProtocolMapperRepresentation_config.cs | 15 +- .../Models/RealmEventsConfigRepresentation.cs | 19 +- .../Models/RealmRepresentation.cs | 291 +++++++++--------- ...Representation_applicationScopeMappings.cs | 15 +- .../Models/RealmRepresentation_attributes.cs | 15 +- ...lmRepresentation_browserSecurityHeaders.cs | 15 +- ...RealmRepresentation_clientScopeMappings.cs | 15 +- .../RealmRepresentation_localizationTexts.cs | 15 +- .../Models/RealmRepresentation_smtpServer.cs | 15 +- .../RealmRepresentation_socialProviders.cs | 15 +- .../RequiredActionConfigInfoRepresentation.cs | 23 +- .../RequiredActionConfigRepresentation.cs | 23 +- ...quiredActionConfigRepresentation_config.cs | 15 +- .../RequiredActionProviderRepresentation.cs | 23 +- ...iredActionProviderRepresentation_config.cs | 15 +- .../Models/ResourceOwnerRepresentation.cs | 15 +- .../Models/ResourceRepresentation.cs | 47 +-- .../ResourceRepresentation_attributes.cs | 15 +- .../Models/ResourceRepresentation_owner.cs | 13 +- .../Models/ResourceServerRepresentation.cs | 51 +-- .../Models/RoleRepresentation.cs | 31 +- .../Models/RoleRepresentation_attributes.cs | 15 +- .../Models/RolesRepresentation.cs | 39 +-- .../Models/RolesRepresentation_application.cs | 15 +- .../Models/RolesRepresentation_client.cs | 15 +- .../Models/ScopeMappingRepresentation.cs | 17 +- .../Models/ScopeRepresentation.cs | 31 +- .../Models/SocialLinkRepresentation.cs | 15 +- .../Models/UPAttribute.cs | 55 ++-- .../Models/UPAttributePermissions.cs | 19 +- .../Models/UPAttributeRequired.cs | 19 +- .../Models/UPAttributeSelector.cs | 17 +- .../Models/UPAttribute_annotations.cs | 15 +- .../Models/UPAttribute_validations.cs | 15 +- .../Models/UPConfig.cs | 37 ++- .../Models/UPGroup.cs | 23 +- .../Models/UPGroup_annotations.cs | 15 +- .../Models/UnmanagedAttributePolicy.cs | 1 + .../Models/UserConsentRepresentation.cs | 19 +- .../UserFederationMapperRepresentation.cs | 23 +- ...erFederationMapperRepresentation_config.cs | 15 +- .../UserFederationProviderRepresentation.cs | 23 +- ...FederationProviderRepresentation_config.cs | 15 +- .../UserProfileAttributeGroupMetadata.cs | 23 +- ...ofileAttributeGroupMetadata_annotations.cs | 15 +- .../Models/UserProfileAttributeMetadata.cs | 31 +- ...serProfileAttributeMetadata_annotations.cs | 15 +- ...UserProfileAttributeMetadata_validators.cs | 15 +- .../Models/UserProfileMetadata.cs | 31 +- .../Models/UserRepresentation.cs | 95 +++--- .../Models/UserRepresentation_access.cs | 15 +- .../UserRepresentation_applicationRoles.cs | 15 +- .../Models/UserRepresentation_attributes.cs | 15 +- .../Models/UserRepresentation_clientRoles.cs | 15 +- .../Models/UserSessionRepresentation.cs | 23 +- .../UserSessionRepresentation_clients.cs | 15 +- 486 files changed, 7453 insertions(+), 5945 deletions(-) diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/AdminRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/AdminRequestBuilder.cs index 4208e7f1..c1ca97a2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/AdminRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/AdminRequestBuilder.cs @@ -1,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,15 +12,16 @@ 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.0.0")] + public partial class AdminRequestBuilder : BaseRequestBuilder { /// The realms property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.RealmsRequestBuilder Realms + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.RealmsRequestBuilder Realms { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.RealmsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -27,7 +29,7 @@ public AdminRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,3 +38,4 @@ public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base } } } +#pragma warning restore CS0618 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 4a5515b8..cf48204d 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ 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.0.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. @@ -24,7 +26,7 @@ public AdminEventsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,21 +53,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<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -92,11 +94,11 @@ 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); @@ -107,16 +109,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents.AdminEventsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents.AdminEventsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents.AdminEventsRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class AdminEventsRequestBuilderGetQueryParameters { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -208,3 +211,4 @@ public class AdminEventsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 901109b1..f450b1dd 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,15 +12,16 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetectio /// /// Builds and executes requests for operations under \admin\realms\{realm}\attack-detection /// - public class AttackDetectionRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttackDetectionRequestBuilder : BaseRequestBuilder { /// The bruteForce property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.BruteForceRequestBuilder BruteForce + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.BruteForceRequestBuilder BruteForce { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.BruteForceRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -27,7 +29,7 @@ public AttackDetectionRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,3 +38,4 @@ public AttackDetectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapt } } } +#pragma warning restore CS0618 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 23a39553..16698cf0 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,15 +12,16 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetectio /// /// 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.0.0")] + public partial class BruteForceRequestBuilder : BaseRequestBuilder { /// The users property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.UsersRequestBuilder Users + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.UsersRequestBuilder Users { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.UsersRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -27,7 +29,7 @@ public BruteForceRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,3 +38,4 @@ public BruteForceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } } } +#pragma warning restore CS0618 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 c51a94a0..1647a58f 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class WithUserGetResponse : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public WithUserGetResponse() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserGetResponse(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 eb8cbef2..25b45262 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetectio /// /// 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.0.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. @@ -23,7 +25,7 @@ public WithUserItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -50,20 +52,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.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 @@ -105,11 +107,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 54261d68..af55bdd3 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,22 +14,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetectio /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.Item.WithUserItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -81,11 +83,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.UsersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.UsersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.UsersRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.BruteForce.Users.UsersRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 8231b84f..8c9ac569 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 @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config; @@ -11,10 +12,10 @@ 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 @@ -22,70 +23,71 @@ 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.0.0")] + public partial class AuthenticationRequestBuilder : BaseRequestBuilder { /// The authenticatorProviders property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProvidersRequestBuilder AuthenticatorProviders + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProvidersRequestBuilder AuthenticatorProviders { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProvidersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The clientAuthenticatorProviders property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProvidersRequestBuilder ClientAuthenticatorProviders + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProvidersRequestBuilder ClientAuthenticatorProviders { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProvidersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The config property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.ConfigRequestBuilder Config + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.ConfigRequestBuilder Config { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.ConfigRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.ConfigRequestBuilder(PathParameters, RequestAdapter); } /// The configDescription property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.ConfigDescriptionRequestBuilder ConfigDescription + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.ConfigDescriptionRequestBuilder ConfigDescription { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.ConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.ConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); } /// The executions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.ExecutionsRequestBuilder Executions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.ExecutionsRequestBuilder Executions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.ExecutionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.ExecutionsRequestBuilder(PathParameters, RequestAdapter); } /// The flows property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.FlowsRequestBuilder Flows + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.FlowsRequestBuilder Flows { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.FlowsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.FlowsRequestBuilder(PathParameters, RequestAdapter); } /// The formActionProviders property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProvidersRequestBuilder FormActionProviders + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProvidersRequestBuilder FormActionProviders { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProvidersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The formProviders property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProvidersRequestBuilder FormProviders + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProvidersRequestBuilder FormProviders { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProvidersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The perClientConfigDescription property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionRequestBuilder PerClientConfigDescription + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionRequestBuilder PerClientConfigDescription { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); } /// The registerRequiredAction property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionRequestBuilder RegisterRequiredAction + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionRequestBuilder RegisterRequiredAction { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionRequestBuilder(PathParameters, RequestAdapter); } /// The requiredActions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.RequiredActionsRequestBuilder RequiredActions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.RequiredActionsRequestBuilder RequiredActions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.RequiredActionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.RequiredActionsRequestBuilder(PathParameters, RequestAdapter); } /// The unregisteredRequiredActions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActionsRequestBuilder UnregisteredRequiredActions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActionsRequestBuilder UnregisteredRequiredActions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActionsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -93,7 +95,7 @@ public AuthenticationRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -102,3 +104,4 @@ public AuthenticationRequestBuilder(string rawUrl, IRequestAdapter requestAdapte } } } +#pragma warning restore CS0618 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 776c56e0..f9ecc0f1 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AuthenticatorProviders : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public AuthenticatorProviders() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProviders(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProviders(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 fcec3fb1..aae2028b 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\authenticator-providers /// - public class AuthenticatorProvidersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -23,7 +25,7 @@ public AuthenticatorProvidersRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,21 +35,21 @@ public AuthenticatorProvidersRequestBuilder(string rawUrl, IRequestAdapter reque /// /// Get authenticator providers Returns a stream of authenticator providers. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.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. @@ -71,11 +73,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProvidersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProvidersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProvidersRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticatorProviders.AuthenticatorProvidersRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 9abc72f4..00460ec0 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientAuthenticatorProviders : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ClientAuthenticatorProviders() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProviders(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProviders(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 be9d9cd6..7599e340 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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. @@ -23,7 +25,7 @@ public ClientAuthenticatorProvidersRequestBuilder(Dictionary pat { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,21 +35,21 @@ public ClientAuthenticatorProvidersRequestBuilder(string rawUrl, IRequestAdapter /// /// Get client authenticator providers Returns a stream of client authenticator providers. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.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. @@ -71,11 +73,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProvidersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProvidersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProvidersRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ClientAuthenticatorProviders.ClientAuthenticatorProvidersRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 caaba6cf..793771da 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\config /// - public class ConfigRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.Item.ConfigItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.Item.ConfigItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public ConfigRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -53,11 +55,11 @@ public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -73,11 +75,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Authent [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -89,12 +91,13 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.ConfigRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.ConfigRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 901bab80..c34d302b 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\config\{id} /// - public class ConfigItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -24,7 +26,7 @@ public ConfigItemRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,20 +53,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -74,11 +76,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -130,11 +132,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -146,11 +148,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.Item.ConfigItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.Item.ConfigItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.Item.ConfigItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Config.Item.ConfigItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 3e089784..793df1dd 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\config-description /// - public class ConfigDescriptionRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.Item.WithProviderItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.Item.WithProviderItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ConfigDescriptionRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ConfigDescriptionRequestBuilder(string rawUrl, IRequestAdapter requestAda } } } +#pragma warning restore CS0618 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 98001538..45791f2a 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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. @@ -24,7 +26,7 @@ public WithProviderItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public WithProviderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -71,11 +73,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.Item.WithProviderItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.Item.WithProviderItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.Item.WithProviderItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.ConfigDescription.Item.WithProviderItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 72ef01e6..9a4fefb4 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\executions /// - public class ExecutionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.WithExecutionItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.WithExecutionItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public ExecutionsRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,11 +54,11 @@ public ExecutionsRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -71,11 +73,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Authent /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -87,11 +89,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.ExecutionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.ExecutionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.ExecutionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.ExecutionsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 f678f53a..c2e93c24 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,23 +15,24 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.Item.ConfigItemRequestBuilder this[string position] + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.Item.ConfigItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -38,7 +40,7 @@ public ConfigRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -53,11 +55,11 @@ public ConfigRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -72,11 +74,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Authent /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -88,11 +90,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.ConfigRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.ConfigRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 5467d4c6..ee803bf1 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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. @@ -24,7 +26,7 @@ public ConfigItemRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public ConfigItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -73,12 +75,13 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.Item.ConfigItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.Item.ConfigItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.Item.ConfigItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.Item.ConfigItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 559b42d3..05ea17ff 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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. @@ -23,7 +25,7 @@ public LowerPriorityRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority.LowerPriorityRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority.LowerPriorityRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority.LowerPriorityRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority.LowerPriorityRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 416bec9e..95555420 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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. @@ -23,7 +25,7 @@ public RaisePriorityRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.RaisePriority.RaisePriorityRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.RaisePriority.RaisePriorityRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.RaisePriority.RaisePriorityRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.RaisePriority.RaisePriorityRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 a5e5d90d..f5e75b3f 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 @@ -1,13 +1,14 @@ // +#pragma warning disable CS0618 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; @@ -16,25 +17,26 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\executions\{executionId} /// - public class WithExecutionItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WithExecutionItemRequestBuilder : BaseRequestBuilder { /// The config property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.ConfigRequestBuilder Config + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.ConfigRequestBuilder Config { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.ConfigRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.Config.ConfigRequestBuilder(PathParameters, RequestAdapter); } /// The lowerPriority property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority.LowerPriorityRequestBuilder LowerPriority + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority.LowerPriorityRequestBuilder LowerPriority { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority.LowerPriorityRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.LowerPriority.LowerPriorityRequestBuilder(PathParameters, RequestAdapter); } /// The raisePriority property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.RaisePriority.RaisePriorityRequestBuilder RaisePriority + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.RaisePriority.RaisePriorityRequestBuilder RaisePriority { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.RaisePriority.RaisePriorityRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -42,7 +44,7 @@ public WithExecutionItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -69,20 +71,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.SendAsync(requestInfo, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Delete execution @@ -124,11 +126,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.WithExecutionItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.WithExecutionItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.WithExecutionItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Executions.Item.WithExecutionItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 34d809b5..84f4806b 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\flows /// - public class FlowsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.FlowAliasItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.FlowAliasItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public FlowsRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public FlowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Get authentication flows Returns a stream of authentication flows. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -71,11 +73,11 @@ public FlowsRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -109,11 +111,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -125,11 +127,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.FlowsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.FlowsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.FlowsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.FlowsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 3d0ebd6f..4767c137 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CopyPostRequestBody : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public CopyPostRequestBody() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyPostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyPostRequestBody(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 daffb1fd..7b2b08f4 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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. @@ -23,7 +25,7 @@ public CopyRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -38,11 +40,11 @@ public CopyRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.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)); @@ -57,11 +59,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.I /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.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)); @@ -73,11 +75,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 299687bd..2c492d2c 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ExecutionPostRequestBody : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ExecutionPostRequestBody() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.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 @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 f8d7d498..360c7ccb 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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. @@ -23,7 +25,7 @@ public ExecutionRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -38,11 +40,11 @@ public ExecutionRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.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)); @@ -57,11 +59,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.I /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.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)); @@ -73,11 +75,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 5d6911aa..07a14b2f 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.0")] + public partial class ExecutionsRequestBuilder : BaseRequestBuilder { /// The execution property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionRequestBuilder Execution + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionRequestBuilder Execution { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Execution.ExecutionRequestBuilder(PathParameters, RequestAdapter); } /// The flow property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowRequestBuilder Flow + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowRequestBuilder Flow { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public ExecutionsRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,21 +48,21 @@ public ExecutionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get authentication executions for a flow /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionInfoRepresentation> + /// 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); - var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionInfoRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + 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 @@ -70,11 +72,11 @@ public ExecutionsRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -108,11 +110,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -124,11 +126,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.ExecutionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.ExecutionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.ExecutionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.ExecutionsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 213fd85c..4132dd42 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FlowPostRequestBody : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public FlowPostRequestBody() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.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 @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 0ca3c26c..dbe697b6 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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. @@ -23,7 +25,7 @@ public FlowRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -38,11 +40,11 @@ public FlowRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.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)); @@ -57,11 +59,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.I /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.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)); @@ -73,11 +75,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.Flow.FlowRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 47fc16bd..65341212 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.0")] + public partial class FlowAliasItemRequestBuilder : BaseRequestBuilder { /// The copy property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyRequestBuilder Copy + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyRequestBuilder Copy { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Copy.CopyRequestBuilder(PathParameters, RequestAdapter); } /// The executions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.ExecutionsRequestBuilder Executions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.ExecutionsRequestBuilder Executions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.Executions.ExecutionsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public FlowAliasItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -63,20 +65,20 @@ 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -86,11 +88,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -142,11 +144,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -158,11 +160,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.FlowAliasItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.FlowAliasItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.FlowAliasItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.Flows.Item.FlowAliasItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 3548f63f..9e716048 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FormActionProviders : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public FormActionProviders() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProviders(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProviders(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 860f458d..62020d05 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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. @@ -23,7 +25,7 @@ public FormActionProvidersRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,21 +35,21 @@ public FormActionProvidersRequestBuilder(string rawUrl, IRequestAdapter requestA /// /// Get form action providers Returns a stream of form action providers. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.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. @@ -71,11 +73,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProvidersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProvidersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProvidersRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormActionProviders.FormActionProvidersRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 2fd21ab8..e5b02945 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FormProviders : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public FormProviders() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProviders(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProviders(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 a4dc7218..3799e16f 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\form-providers /// - public class FormProvidersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -23,7 +25,7 @@ public FormProvidersRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,21 +35,21 @@ public FormProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Get form providers Returns a stream of form providers. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.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. @@ -71,11 +73,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProvidersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProvidersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProvidersRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.FormProviders.FormProvidersRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 a6e1368d..81c5b40d 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PerClientConfigDescriptionGetResponse : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public PerClientConfigDescriptionGetResponse() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionGetResponse(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 e45b455d..57760b94 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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. @@ -23,7 +25,7 @@ public PerClientConfigDescriptionRequestBuilder(Dictionary pathP { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public PerClientConfigDescriptionRequestBuilder(string rawUrl, IRequestAdapter r /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.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 @@ -70,11 +72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.PerClientConfigDescription.PerClientConfigDescriptionRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 1c729f55..d42b521b 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RegisterRequiredActionPostRequestBody : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public RegisterRequiredActionPostRequestBody() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionPostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionPostRequestBody(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 f5a33203..e333893c 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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. @@ -23,7 +25,7 @@ public RegisterRequiredActionRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -38,11 +40,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.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)); @@ -57,11 +59,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.I /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.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)); @@ -73,11 +75,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RegisterRequiredAction.RegisterRequiredActionRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 index 4d587c8a..9a9c4e02 100644 --- 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 @@ -1,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\required-actions\{alias}\config /// - public class ConfigRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -24,7 +26,7 @@ public ConfigRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,20 +53,20 @@ public async Task DeleteAsync(Action /// Get RequiredAction 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Update RequiredAction configuration @@ -74,11 +76,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + 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)); @@ -130,11 +132,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -146,11 +148,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.Config.ConfigRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.Config.ConfigRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 index 73de432f..8c4d8f38 100644 --- 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 @@ -1,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\required-actions\{alias}\config-description /// - public class ConfigDescriptionRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ConfigDescriptionRequestBuilder : 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. @@ -24,7 +26,7 @@ public ConfigDescriptionRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public ConfigDescriptionRequestBuilder(string rawUrl, IRequestAdapter requestAda /// /// Get RequiredAction provider 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigInfoRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigInfoRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Get RequiredAction provider configuration description @@ -71,11 +73,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.ConfigDescription.ConfigDescriptionRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.ConfigDescription.ConfigDescriptionRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.ConfigDescription.ConfigDescriptionRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.ConfigDescription.ConfigDescriptionRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 753f1dcb..50137154 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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. @@ -23,7 +25,7 @@ public LowerPriorityRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority.LowerPriorityRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority.LowerPriorityRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority.LowerPriorityRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority.LowerPriorityRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 a6f3bc13..5023427e 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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. @@ -23,7 +25,7 @@ public RaisePriorityRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.RaisePriority.RaisePriorityRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.RaisePriority.RaisePriorityRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.RaisePriority.RaisePriorityRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.RaisePriority.RaisePriorityRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 a23c9c55..300658ab 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,14 +1,15 @@ // +#pragma warning disable CS0618 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; @@ -17,30 +18,31 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.0")] + public partial class WithAliasItemRequestBuilder : BaseRequestBuilder { /// The config property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.Config.ConfigRequestBuilder Config + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.Config.ConfigRequestBuilder Config { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.Config.ConfigRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.Config.ConfigRequestBuilder(PathParameters, RequestAdapter); } /// The configDescription property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.ConfigDescription.ConfigDescriptionRequestBuilder ConfigDescription + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.ConfigDescription.ConfigDescriptionRequestBuilder ConfigDescription { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.ConfigDescription.ConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.ConfigDescription.ConfigDescriptionRequestBuilder(PathParameters, RequestAdapter); } /// The lowerPriority property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority.LowerPriorityRequestBuilder LowerPriority + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority.LowerPriorityRequestBuilder LowerPriority { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority.LowerPriorityRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.LowerPriority.LowerPriorityRequestBuilder(PathParameters, RequestAdapter); } /// The raisePriority property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.RaisePriority.RaisePriorityRequestBuilder RaisePriority + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.RaisePriority.RaisePriorityRequestBuilder RaisePriority { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.RaisePriority.RaisePriorityRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -48,7 +50,7 @@ public WithAliasItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -75,20 +77,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -98,11 +100,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -154,11 +156,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -170,11 +172,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.WithAliasItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.WithAliasItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.WithAliasItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.WithAliasItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 4ef2b60a..3a4b8340 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// Builds and executes requests for operations under \admin\realms\{realm}\authentication\required-actions /// - public class RequiredActionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.WithAliasItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.Item.WithAliasItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public RequiredActionsRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public RequiredActionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// /// Get required actions Returns a stream of required actions. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -85,11 +87,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.RequiredActionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.RequiredActionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.RequiredActionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.RequiredActions.RequiredActionsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 d79fcdbb..581522d1 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnregisteredRequiredActions : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public UnregisteredRequiredActions() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActions(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActions(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 0e897480..c360d9c6 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication /// /// 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.0.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. @@ -23,7 +25,7 @@ public UnregisteredRequiredActionsRequestBuilder(Dictionary path { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,21 +35,21 @@ public UnregisteredRequiredActionsRequestBuilder(string rawUrl, IRequestAdapter /// /// Get unregistered required actions Returns a stream of unregistered required actions. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.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. @@ -71,11 +73,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.UnregisteredRequiredActions.UnregisteredRequiredActionsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 9fd62586..02d90770 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescript /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-description-converter /// - public class ClientDescriptionConverterRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -24,7 +26,7 @@ public ClientDescriptionConverterRequestBuilder(Dictionary pathP { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,22 +36,22 @@ public ClientDescriptionConverterRequestBuilder(string rawUrl, IRequestAdapter r /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -76,11 +78,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescriptionConverter.ClientDescriptionConverterRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescriptionConverter.ClientDescriptionConverterRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescriptionConverter.ClientDescriptionConverterRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescriptionConverter.ClientDescriptionConverterRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 54c202bb..3b00e4f3 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,10 +1,11 @@ // +#pragma warning disable CS0618 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 @@ -12,20 +13,21 @@ 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.0.0")] + public partial class ClientPoliciesRequestBuilder : BaseRequestBuilder { /// The policies property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies.PoliciesRequestBuilder Policies + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies.PoliciesRequestBuilder Policies { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies.PoliciesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies.PoliciesRequestBuilder(PathParameters, RequestAdapter); } /// The profiles property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Profiles.ProfilesRequestBuilder Profiles + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Profiles.ProfilesRequestBuilder Profiles { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Profiles.ProfilesRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -33,7 +35,7 @@ public ClientPoliciesRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -42,3 +44,4 @@ public ClientPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapte } } } +#pragma warning restore CS0618 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 4932ccc6..55e39746 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-policies\policies /// - public class PoliciesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -24,27 +26,27 @@ public PoliciesRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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{?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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -52,11 +54,11 @@ public PoliciesRequestBuilder(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 PutAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -67,11 +69,11 @@ public async Task PutAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models. /// 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); @@ -84,11 +86,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -100,14 +102,15 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies.PoliciesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies.PoliciesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies.PoliciesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Policies.PoliciesRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PoliciesRequestBuilderGetQueryParameters + public partial class PoliciesRequestBuilderGetQueryParameters #pragma warning restore CS1591 { [QueryParameter("include%2Dglobal%2Dpolicies")] @@ -115,3 +118,4 @@ public class PoliciesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 127c61b6..d628108a 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-policies\profiles /// - public class ProfilesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -24,27 +26,27 @@ public ProfilesRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -52,11 +54,11 @@ public ProfilesRequestBuilder(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 PutAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -67,11 +69,11 @@ public async Task PutAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models. /// 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); @@ -84,11 +86,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -100,14 +102,15 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Profiles.ProfilesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Profiles.ProfilesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Profiles.ProfilesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.Profiles.ProfilesRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ProfilesRequestBuilderGetQueryParameters + public partial class ProfilesRequestBuilderGetQueryParameters #pragma warning restore CS1591 { [QueryParameter("include%2Dglobal%2Dprofiles")] @@ -115,3 +118,4 @@ public class ProfilesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 9e673b7e..8fd14370 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,15 +12,16 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistra /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-registration-policy /// - public class ClientRegistrationPolicyRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClientRegistrationPolicyRequestBuilder : BaseRequestBuilder { /// The providers property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.Providers.ProvidersRequestBuilder Providers + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.Providers.ProvidersRequestBuilder Providers { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.Providers.ProvidersRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -27,7 +29,7 @@ public ClientRegistrationPolicyRequestBuilder(Dictionary pathPar { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,3 +38,4 @@ public ClientRegistrationPolicyRequestBuilder(string rawUrl, IRequestAdapter req } } } +#pragma warning restore CS0618 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 744a6174..698ef882 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistra /// /// 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.0.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. @@ -24,7 +26,7 @@ public ProvidersRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Base path for retrieve providers with the configProperties properly filled /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.Providers.ProvidersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.Providers.ProvidersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.Providers.ProvidersRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.Providers.ProvidersRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 af22ad1d..a5d2296e 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ClientScopeItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public ClientScopesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public ClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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! @@ -72,11 +74,11 @@ public ClientScopesRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -110,11 +112,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -126,11 +128,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.ClientScopesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.ClientScopesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.ClientScopesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.ClientScopesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 f1b6b8c1..1bc7d34f 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.0")] + public partial class ClientScopeItemRequestBuilder : BaseRequestBuilder { /// The protocolMappers property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ProtocolMappersRequestBuilder ProtocolMappers + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ProtocolMappersRequestBuilder ProtocolMappers { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); } /// The scopeMappings property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.ScopeMappingsRequestBuilder ScopeMappings + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.ScopeMappingsRequestBuilder ScopeMappings { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public ClientScopeItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -64,20 +66,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -88,11 +90,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -144,11 +146,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -160,11 +162,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ClientScopeItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ClientScopeItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ClientScopeItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 61f448d6..bd4250f3 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.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. @@ -24,7 +26,7 @@ public AddModelsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -39,11 +41,11 @@ 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)); @@ -58,11 +60,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -74,11 +76,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 267c1b6e..3f774f53 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.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. @@ -24,7 +26,7 @@ public ModelsItemRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,20 +53,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -74,11 +76,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -130,11 +132,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -146,11 +148,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 fdbde559..d33c40c6 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public ModelsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Get mappers /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,11 +74,11 @@ public ModelsRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -110,11 +112,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -126,11 +128,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 c801d370..a4d817e0 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.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. @@ -24,7 +26,7 @@ public WithProtocolItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Get mappers by name for a specific protocol /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 b960d525..32cb081f 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ProtocolRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } } } +#pragma warning restore CS0618 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 1baa69c7..a5c598a6 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 @@ -1,11 +1,12 @@ // +#pragma warning disable CS0618 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 @@ -13,25 +14,26 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.0")] + public partial class ProtocolMappersRequestBuilder : BaseRequestBuilder { /// The addModels property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder AddModels + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder AddModels { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(PathParameters, RequestAdapter); } /// The models property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder Models + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder Models { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(PathParameters, RequestAdapter); } /// The protocol property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder Protocol + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder Protocol { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -39,7 +41,7 @@ public ProtocolMappersRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -48,3 +50,4 @@ public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapt } } } +#pragma warning restore CS0618 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 74988051..f14a8ff3 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ClientsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } } } +#pragma warning restore CS0618 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 9dd3f709..8f0ca7d0 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.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. @@ -24,7 +26,7 @@ public AvailableRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// The available client-level roles Returns the roles for the client that can be associated with the client's scope /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 a70ae707..1e8fd5d1 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.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. @@ -24,7 +26,7 @@ public CompositeRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -57,11 +59,11 @@ public CompositeRequestBuilder(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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class CompositeRequestBuilderGetQueryParameters { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] @@ -89,3 +92,4 @@ public class CompositeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 684241e0..f0aaf31f 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.0")] + public partial class WithClientItemRequestBuilder : BaseRequestBuilder { /// The available property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder Available + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder Available { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder Composite + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder Composite { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public WithClientItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,11 +53,11 @@ 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)); @@ -65,21 +67,21 @@ public async Task DeleteAsync(List /// Get the roles associated with a client's scope Returns roles for the client. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -89,11 +91,11 @@ public async Task DeleteAsync(ListConfiguration for 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)); @@ -108,11 +110,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -148,11 +150,11 @@ 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)); @@ -164,11 +166,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 10b4e01a..169f2f14 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.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. @@ -24,7 +26,7 @@ public AvailableRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get realm-level roles that are available to attach to this client's scope /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 c6013ec3..daecbaed 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.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. @@ -24,7 +26,7 @@ public CompositeRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -57,11 +59,11 @@ public CompositeRequestBuilder(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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class CompositeRequestBuilderGetQueryParameters { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] @@ -89,3 +92,4 @@ public class CompositeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 f1bc8893..61c58588 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.0")] + public partial class RealmRequestBuilder : BaseRequestBuilder { /// The available property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder Available + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder Available { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder Composite + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder Composite { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public RealmRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,11 +53,11 @@ 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)); @@ -65,21 +67,21 @@ public async Task DeleteAsync(List /// Get realm-level roles associated with the client's scope /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -89,11 +91,11 @@ public async Task DeleteAsync(ListConfiguration for 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)); @@ -108,11 +110,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -148,11 +150,11 @@ 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)); @@ -164,11 +166,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 08222cc1..89bd475f 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,22 +16,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.I /// /// 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.0.0")] + public partial class ScopeMappingsRequestBuilder : BaseRequestBuilder { /// The clients property [Obsolete("")] - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.ClientsRequestBuilder Clients + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.ClientsRequestBuilder Clients { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property [Obsolete("")] - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.RealmRequestBuilder Realm + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.RealmRequestBuilder Realm { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -38,7 +40,7 @@ public ScopeMappingsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -48,21 +50,21 @@ public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -87,12 +89,13 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.ScopeMappingsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.ScopeMappingsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.Item.ScopeMappings.ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 28f04092..2fabfa45 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientSessionStats : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ClientSessionStats() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStats(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStats(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 60d36ae7..02272bb5 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionS /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-session-stats /// - public class ClientSessionStatsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -23,7 +25,7 @@ public ClientSessionStatsRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,21 +35,21 @@ public ClientSessionStatsRequestBuilder(string rawUrl, IRequestAdapter requestAd /// /// 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<Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.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. @@ -71,11 +73,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStatsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStatsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStatsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStatsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 36e3cea2..1620006a 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-templates /// - public class ClientTemplatesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ClientScopeItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public ClientTemplatesRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public ClientTemplatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// /// Get client scopes belonging to the realm Returns a list of client scopes belonging to the realm /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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! @@ -72,11 +74,11 @@ public ClientTemplatesRequestBuilder(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 PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -110,11 +112,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -126,11 +128,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.ClientTemplatesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.ClientTemplatesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.ClientTemplatesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.ClientTemplatesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 7725bb1a..a08db459 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.0")] + public partial class ClientScopeItemRequestBuilder : BaseRequestBuilder { /// The protocolMappers property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ProtocolMappersRequestBuilder ProtocolMappers + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ProtocolMappersRequestBuilder ProtocolMappers { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); } /// The scopeMappings property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.ScopeMappingsRequestBuilder ScopeMappings + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.ScopeMappingsRequestBuilder ScopeMappings { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public ClientScopeItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -64,20 +66,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -88,11 +90,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -144,11 +146,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -160,11 +162,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ClientScopeItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ClientScopeItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ClientScopeItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 18745355..70d31963 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.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. @@ -24,7 +26,7 @@ public AddModelsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -39,11 +41,11 @@ 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)); @@ -58,11 +60,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -74,11 +76,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 b98fbc0a..57ab1dda 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.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. @@ -24,7 +26,7 @@ public ModelsItemRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,20 +53,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -74,11 +76,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -130,11 +132,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -146,11 +148,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 fbacdf90..84a402a2 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public ModelsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Get mappers /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,11 +74,11 @@ public ModelsRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -110,11 +112,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -126,11 +128,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 7a9835c7..ee64d9f4 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.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. @@ -24,7 +26,7 @@ public WithProtocolItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Get mappers by name for a specific protocol /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 0634e511..b12ccc53 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ProtocolRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } } } +#pragma warning restore CS0618 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 856206ec..331b7191 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 @@ -1,11 +1,12 @@ // +#pragma warning disable CS0618 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 @@ -13,25 +14,26 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.0")] + public partial class ProtocolMappersRequestBuilder : BaseRequestBuilder { /// The addModels property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder AddModels + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder AddModels { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(PathParameters, RequestAdapter); } /// The models property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder Models + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder Models { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(PathParameters, RequestAdapter); } /// The protocol property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder Protocol + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder Protocol { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -39,7 +41,7 @@ public ProtocolMappersRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -48,3 +50,4 @@ public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapt } } } +#pragma warning restore CS0618 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 f6fc8da8..475d3a73 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ClientsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } } } +#pragma warning restore CS0618 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 5ae818fa..f9db9d5f 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.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. @@ -24,7 +26,7 @@ public AvailableRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// The available client-level roles Returns the roles for the client that can be associated with the client's scope /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 3129dcd8..09dea607 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.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. @@ -24,7 +26,7 @@ public CompositeRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -57,11 +59,11 @@ public CompositeRequestBuilder(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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class CompositeRequestBuilderGetQueryParameters { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] @@ -89,3 +92,4 @@ public class CompositeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 d9e726ac..fe7d2426 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.0")] + public partial class WithClientItemRequestBuilder : BaseRequestBuilder { /// The available property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder Available + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder Available { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder Composite + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder Composite { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public WithClientItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,11 +53,11 @@ 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)); @@ -65,21 +67,21 @@ public async Task DeleteAsync(List /// Get the roles associated with a client's scope Returns roles for the client. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -89,11 +91,11 @@ public async Task DeleteAsync(ListConfiguration for 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)); @@ -108,11 +110,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -148,11 +150,11 @@ 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)); @@ -164,11 +166,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 c69692c5..9df9d993 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.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. @@ -24,7 +26,7 @@ public AvailableRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get realm-level roles that are available to attach to this client's scope /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 b76e2e7d..3c914150 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.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. @@ -24,7 +26,7 @@ public CompositeRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -57,11 +59,11 @@ public CompositeRequestBuilder(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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class CompositeRequestBuilderGetQueryParameters { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] @@ -89,3 +92,4 @@ public class CompositeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 a65dc973..8152be3a 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.0")] + public partial class RealmRequestBuilder : BaseRequestBuilder { /// The available property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder Available + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder Available { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder Composite + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder Composite { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public RealmRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,11 +53,11 @@ 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)); @@ -65,21 +67,21 @@ public async Task DeleteAsync(List /// Get realm-level roles associated with the client's scope /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -89,11 +91,11 @@ public async Task DeleteAsync(ListConfiguration for 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)); @@ -108,11 +110,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -148,11 +150,11 @@ 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)); @@ -164,11 +166,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 f981278a..1005ab08 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,22 +16,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplate /// /// 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.0.0")] + public partial class ScopeMappingsRequestBuilder : BaseRequestBuilder { /// The clients property [Obsolete("")] - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.ClientsRequestBuilder Clients + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.ClientsRequestBuilder Clients { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property [Obsolete("")] - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.RealmRequestBuilder Realm + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.RealmRequestBuilder Realm { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -38,7 +40,7 @@ public ScopeMappingsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -48,21 +50,21 @@ public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -87,12 +89,13 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.ScopeMappingsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.ScopeMappingsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.Item.ScopeMappings.ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 index 91a87e43..dfffa7ea 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTypes/ClientTypesRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/ClientTypes/ClientTypesRequestBuilder.cs @@ -1,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes /// /// Builds and executes requests for operations under \admin\realms\{realm}\client-types /// - public class ClientTypesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClientTypesRequestBuilder : 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. @@ -24,7 +26,7 @@ public ClientTypesRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public ClientTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// This endpoint returns a list of both global and realm level client types and the attributes they set /// - /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + 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 @@ -57,11 +59,11 @@ public ClientTypesRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + 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)); @@ -95,11 +97,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -111,11 +113,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes.ClientTypesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes.ClientTypesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes.ClientTypesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes.ClientTypesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 e4d0f0b8..24dea565 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientUuItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientUuItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public ClientsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// 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<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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! @@ -71,11 +73,11 @@ public ClientsRequestBuilder(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 PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -89,11 +91,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientR /// 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); @@ -109,11 +111,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -125,16 +127,17 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.ClientsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.ClientsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.ClientsRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class ClientsRequestBuilderGetQueryParameters { /// filter by clientId #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,3 +173,4 @@ public class ClientsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 823b7333..bc72f412 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,15 +12,16 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.0")] + public partial class AuthzRequestBuilder : BaseRequestBuilder { /// The resourceServer property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.ResourceServerRequestBuilder ResourceServer + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.ResourceServerRequestBuilder ResourceServer { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.ResourceServerRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -27,7 +29,7 @@ public AuthzRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,3 +38,4 @@ public AuthzRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base } } } +#pragma warning restore CS0618 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 72dde530..74d401db 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -24,7 +26,7 @@ public ImportRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,11 +38,11 @@ public ImportRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -52,11 +54,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Resourc /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -68,11 +70,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import.ImportRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import.ImportRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import.ImportRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import.ImportRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 6faf3697..5616cbb7 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -24,40 +26,40 @@ public EvaluateRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -70,11 +72,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate.EvaluateRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate.EvaluateRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate.EvaluateRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate.EvaluateRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 efb941c7..a07a1d69 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 @@ -1,13 +1,14 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate; 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; @@ -16,25 +17,26 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.0")] + public partial class PermissionRequestBuilder : BaseRequestBuilder { /// The evaluate property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate.EvaluateRequestBuilder Evaluate + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate.EvaluateRequestBuilder Evaluate { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate.EvaluateRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Evaluate.EvaluateRequestBuilder(PathParameters, RequestAdapter); } /// The providers property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers.ProvidersRequestBuilder Providers + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers.ProvidersRequestBuilder Providers { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers.ProvidersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers.ProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The search property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Search.SearchRequestBuilder Search + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Search.SearchRequestBuilder Search { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Search.SearchRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -42,28 +44,28 @@ public PermissionRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -85,11 +87,11 @@ 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); @@ -118,14 +120,15 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.PermissionRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.PermissionRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.PermissionRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.PermissionRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PermissionRequestBuilderGetQueryParameters + public partial class PermissionRequestBuilderGetQueryParameters #pragma warning restore CS1591 { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,3 +203,4 @@ public class PermissionRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 5801646b..dbfa759d 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -24,28 +26,28 @@ public ProvidersRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -66,11 +68,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers.ProvidersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers.ProvidersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers.ProvidersRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Providers.ProvidersRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 05f0e043..3bb5ddd6 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -24,37 +26,37 @@ public SearchRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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); @@ -65,14 +67,15 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Search.SearchRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Search.SearchRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Search.SearchRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.Search.SearchRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SearchRequestBuilderGetQueryParameters + public partial class SearchRequestBuilderGetQueryParameters #pragma warning restore CS1591 { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -96,3 +99,4 @@ public class SearchRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 8dcf4aab..48991a86 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -24,40 +26,40 @@ public EvaluateRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -70,11 +72,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate.EvaluateRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate.EvaluateRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate.EvaluateRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate.EvaluateRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 504cbc1b..55f10316 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 @@ -1,13 +1,14 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate; 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; @@ -16,25 +17,26 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.0")] + public partial class PolicyRequestBuilder : BaseRequestBuilder { /// The evaluate property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate.EvaluateRequestBuilder Evaluate + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate.EvaluateRequestBuilder Evaluate { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate.EvaluateRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Evaluate.EvaluateRequestBuilder(PathParameters, RequestAdapter); } /// The providers property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers.ProvidersRequestBuilder Providers + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers.ProvidersRequestBuilder Providers { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers.ProvidersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers.ProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The search property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Search.SearchRequestBuilder Search + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Search.SearchRequestBuilder Search { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Search.SearchRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -42,28 +44,28 @@ public PolicyRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -85,11 +87,11 @@ 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); @@ -118,14 +120,15 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.PolicyRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.PolicyRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.PolicyRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.PolicyRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PolicyRequestBuilderGetQueryParameters + public partial class PolicyRequestBuilderGetQueryParameters #pragma warning restore CS1591 { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,3 +203,4 @@ public class PolicyRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 25e48be2..12e345de 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -24,28 +26,28 @@ public ProvidersRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -66,11 +68,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers.ProvidersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers.ProvidersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers.ProvidersRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Providers.ProvidersRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 25e2e9e1..0e0c08f3 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -24,37 +26,37 @@ public SearchRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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); @@ -65,14 +67,15 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Search.SearchRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Search.SearchRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Search.SearchRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.Search.SearchRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SearchRequestBuilderGetQueryParameters + public partial class SearchRequestBuilderGetQueryParameters #pragma warning restore CS1591 { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -96,3 +99,4 @@ public class SearchRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 5de951d3..ef08e762 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -23,7 +25,7 @@ public AttributesRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -35,11 +37,11 @@ public AttributesRequestBuilder(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); @@ -49,11 +51,11 @@ 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); @@ -63,14 +65,15 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Attributes.AttributesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Attributes.AttributesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Attributes.AttributesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Attributes.AttributesRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AttributesRequestBuilderGetQueryParameters + public partial class AttributesRequestBuilderGetQueryParameters #pragma warning restore CS1591 { [QueryParameter("deep")] @@ -140,3 +143,4 @@ public class AttributesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 4d43b669..0a5e421d 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -24,38 +26,38 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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); @@ -66,14 +68,15 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PermissionsRequestBuilderGetQueryParameters + public partial class PermissionsRequestBuilderGetQueryParameters #pragma warning restore CS1591 { [QueryParameter("deep")] @@ -143,3 +146,4 @@ public class PermissionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 7288bf9e..c16559f5 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 @@ -1,13 +1,14 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Attributes; 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; @@ -16,25 +17,26 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.0")] + public partial class ResourceItemRequestBuilder : BaseRequestBuilder { /// The attributes property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Attributes.AttributesRequestBuilder Attributes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Attributes.AttributesRequestBuilder Attributes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Attributes.AttributesRequestBuilder(PathParameters, RequestAdapter); + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Permissions.PermissionsRequestBuilder Permissions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Permissions.PermissionsRequestBuilder Permissions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Scopes.ScopesRequestBuilder Scopes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Scopes.ScopesRequestBuilder Scopes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -42,7 +44,7 @@ public ResourceItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -53,41 +55,41 @@ public ResourceItemRequestBuilder(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); } - /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -98,11 +100,11 @@ public async Task PutAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Resource /// 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); @@ -113,11 +115,11 @@ 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); @@ -130,11 +132,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -146,14 +148,15 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.ResourceItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.ResourceItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.ResourceItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.ResourceItemRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ResourceItemRequestBuilderDeleteQueryParameters + public partial class ResourceItemRequestBuilderDeleteQueryParameters #pragma warning restore CS1591 { [QueryParameter("deep")] @@ -221,8 +224,9 @@ public class ResourceItemRequestBuilderDeleteQueryParameters public string Uri { get; set; } #endif } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ResourceItemRequestBuilderGetQueryParameters + public partial class ResourceItemRequestBuilderGetQueryParameters #pragma warning restore CS1591 { [QueryParameter("deep")] @@ -290,8 +294,9 @@ public class ResourceItemRequestBuilderGetQueryParameters public string Uri { get; set; } #endif } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ResourceItemRequestBuilderPutQueryParameters + public partial class ResourceItemRequestBuilderPutQueryParameters #pragma warning restore CS1591 { [QueryParameter("deep")] @@ -361,3 +366,4 @@ public class ResourceItemRequestBuilderPutQueryParameters } } } +#pragma warning restore CS0618 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 39a711b8..63db02e5 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -24,38 +26,38 @@ public ScopesRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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); @@ -66,14 +68,15 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Scopes.ScopesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Scopes.ScopesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Scopes.ScopesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.Scopes.ScopesRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ScopesRequestBuilderGetQueryParameters + public partial class ScopesRequestBuilderGetQueryParameters #pragma warning restore CS1591 { [QueryParameter("deep")] @@ -143,3 +146,4 @@ public class ScopesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 5d7701f2..2054fbe3 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,27 +16,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.0")] + public partial class ResourceRequestBuilder : BaseRequestBuilder { /// The search property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Search.SearchRequestBuilder Search + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Search.SearchRequestBuilder Search { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Search.SearchRequestBuilder(PathParameters, RequestAdapter); + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.ResourceItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Item.ResourceItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -43,55 +45,55 @@ public ResourceRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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); @@ -104,11 +106,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -121,14 +123,15 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.ResourceRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.ResourceRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.ResourceRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.ResourceRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ResourceRequestBuilderGetQueryParameters + public partial class ResourceRequestBuilderGetQueryParameters #pragma warning restore CS1591 { [QueryParameter("deep")] @@ -196,8 +199,9 @@ public class ResourceRequestBuilderGetQueryParameters public string Uri { get; set; } #endif } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ResourceRequestBuilderPostQueryParameters + public partial class ResourceRequestBuilderPostQueryParameters #pragma warning restore CS1591 { [QueryParameter("deep")] @@ -267,3 +271,4 @@ public class ResourceRequestBuilderPostQueryParameters } } } +#pragma warning restore CS0618 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 6f8468a2..7fa0d7d5 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -24,37 +26,37 @@ public SearchRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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); @@ -65,14 +67,15 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Search.SearchRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Search.SearchRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Search.SearchRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.Search.SearchRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SearchRequestBuilderGetQueryParameters + public partial class SearchRequestBuilderGetQueryParameters #pragma warning restore CS1591 { [QueryParameter("deep")] @@ -142,3 +145,4 @@ public class SearchRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 a5af243e..bfce5d97 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 @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy; @@ -6,11 +7,11 @@ 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; @@ -19,40 +20,41 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.0")] + public partial class ResourceServerRequestBuilder : BaseRequestBuilder { /// The import property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import.ImportRequestBuilder Import + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import.ImportRequestBuilder Import { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import.ImportRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Import.ImportRequestBuilder(PathParameters, RequestAdapter); } /// The permission property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.PermissionRequestBuilder Permission + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.PermissionRequestBuilder Permission { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.PermissionRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Permission.PermissionRequestBuilder(PathParameters, RequestAdapter); } /// The policy property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.PolicyRequestBuilder Policy + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.PolicyRequestBuilder Policy { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.PolicyRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Policy.PolicyRequestBuilder(PathParameters, RequestAdapter); } /// The resource property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.ResourceRequestBuilder Resource + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.ResourceRequestBuilder Resource { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.ResourceRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Resource.ResourceRequestBuilder(PathParameters, RequestAdapter); } /// The scope property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.ScopeRequestBuilder Scope + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.ScopeRequestBuilder Scope { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.ScopeRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.ScopeRequestBuilder(PathParameters, RequestAdapter); } /// The settings property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Settings.SettingsRequestBuilder Settings + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Settings.SettingsRequestBuilder Settings { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Settings.SettingsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -60,38 +62,38 @@ public ResourceServerRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -119,11 +121,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -135,11 +137,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.ResourceServerRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.ResourceServerRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.ResourceServerRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.ResourceServerRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 5dd5c7ab..076ee5f3 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -24,28 +26,28 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -66,11 +68,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 3eab541a..e6e88afe 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -24,28 +26,28 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -66,11 +68,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Resources.ResourcesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Resources.ResourcesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Resources.ResourcesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Resources.ResourcesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 279d141b..89a82712 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.0")] + public partial class ScopeItemRequestBuilder : BaseRequestBuilder { /// The permissions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Permissions.PermissionsRequestBuilder Permissions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Permissions.PermissionsRequestBuilder Permissions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Resources.ResourcesRequestBuilder Resources + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Resources.ResourcesRequestBuilder Resources { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.Resources.ResourcesRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public ScopeItemRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -58,20 +60,20 @@ public async Task DeleteAsync(Action(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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -79,11 +81,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -126,11 +128,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -142,11 +144,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.ScopeItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.ScopeItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.ScopeItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.ScopeItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 b0a1e543..9fbc8daa 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,27 +16,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.0")] + public partial class ScopeRequestBuilder : BaseRequestBuilder { /// The search property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Search.SearchRequestBuilder Search + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Search.SearchRequestBuilder Search { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Search.SearchRequestBuilder(PathParameters, RequestAdapter); + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.ScopeItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Item.ScopeItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -43,28 +45,28 @@ public ScopeRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,11 +74,11 @@ public ScopeRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -87,11 +89,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models /// 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); @@ -104,11 +106,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -120,14 +122,15 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.ScopeRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.ScopeRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.ScopeRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.ScopeRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ScopeRequestBuilderGetQueryParameters + public partial class ScopeRequestBuilderGetQueryParameters #pragma warning restore CS1591 { [QueryParameter("first")] @@ -155,3 +158,4 @@ public class ScopeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 51a9e8c7..8b4f3328 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -24,38 +26,38 @@ public SearchRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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); @@ -66,14 +68,15 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Search.SearchRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Search.SearchRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Search.SearchRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Scope.Search.SearchRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SearchRequestBuilderGetQueryParameters + public partial class SearchRequestBuilderGetQueryParameters #pragma warning restore CS1591 { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -88,3 +91,4 @@ public class SearchRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 b42ecb95..1acbf198 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.A /// /// 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.0.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. @@ -24,27 +26,27 @@ public SettingsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -65,11 +67,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Settings.SettingsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Settings.SettingsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Settings.SettingsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.ResourceServer.Settings.SettingsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 00e582ed..9b3ce998 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.WithAttrItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.WithAttrItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public CertificatesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public CertificatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) } } } +#pragma warning restore CS0618 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 e5cbd432..cd98daa4 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// 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.0.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. @@ -24,7 +26,7 @@ public DownloadRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -40,11 +42,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -59,11 +61,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -76,11 +78,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download.DownloadRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download.DownloadRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download.DownloadRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download.DownloadRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 06c6fa46..fec27613 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// 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.0.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. @@ -24,7 +26,7 @@ public GenerateRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public GenerateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -71,11 +73,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate.GenerateRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate.GenerateRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate.GenerateRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate.GenerateRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 f82458fa..6f18c00b 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// 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.0.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. @@ -24,7 +26,7 @@ public GenerateAndDownloadRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -40,11 +42,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -59,11 +61,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -76,11 +78,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload.GenerateAndDownloadRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload.GenerateAndDownloadRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload.GenerateAndDownloadRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload.GenerateAndDownloadRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 a3a10d92..70593d31 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// 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.0.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. @@ -24,7 +26,7 @@ public UploadRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public UploadRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -71,11 +73,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload.UploadRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload.UploadRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload.UploadRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload.UploadRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 1b1d7cfe..ac110361 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// 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.0.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. @@ -24,7 +26,7 @@ public UploadCertificateRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public UploadCertificateRequestBuilder(string rawUrl, IRequestAdapter requestAda /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -71,11 +73,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.UploadCertificate.UploadCertificateRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.UploadCertificate.UploadCertificateRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.UploadCertificate.UploadCertificateRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.UploadCertificate.UploadCertificateRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 58efe30a..55cd943b 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 @@ -1,15 +1,16 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload; 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; @@ -18,35 +19,36 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// 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.0.0")] + public partial class WithAttrItemRequestBuilder : BaseRequestBuilder { /// The download property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download.DownloadRequestBuilder Download + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download.DownloadRequestBuilder Download { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download.DownloadRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Download.DownloadRequestBuilder(PathParameters, RequestAdapter); } /// The generate property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate.GenerateRequestBuilder Generate + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate.GenerateRequestBuilder Generate { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate.GenerateRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Generate.GenerateRequestBuilder(PathParameters, RequestAdapter); } /// The generateAndDownload property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload.GenerateAndDownloadRequestBuilder GenerateAndDownload + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload.GenerateAndDownloadRequestBuilder GenerateAndDownload { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload.GenerateAndDownloadRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.GenerateAndDownload.GenerateAndDownloadRequestBuilder(PathParameters, RequestAdapter); } /// The upload property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload.UploadRequestBuilder Upload + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload.UploadRequestBuilder Upload { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload.UploadRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.Upload.UploadRequestBuilder(PathParameters, RequestAdapter); } /// The uploadCertificate property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.UploadCertificate.UploadCertificateRequestBuilder UploadCertificate + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.UploadCertificate.UploadCertificateRequestBuilder UploadCertificate { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.UploadCertificate.UploadCertificateRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -54,7 +56,7 @@ public WithAttrItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -64,20 +66,20 @@ public WithAttrItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -101,11 +103,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.WithAttrItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.WithAttrItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.WithAttrItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.Item.WithAttrItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 15de11eb..24e02154 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,15 +15,16 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// 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.0.0")] + public partial class ClientSecretRequestBuilder : BaseRequestBuilder { /// The rotated property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.Rotated.RotatedRequestBuilder Rotated + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.Rotated.RotatedRequestBuilder Rotated { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.Rotated.RotatedRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -30,7 +32,7 @@ public ClientSecretRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -40,38 +42,38 @@ public ClientSecretRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -114,11 +116,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.ClientSecretRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.ClientSecretRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.ClientSecretRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.ClientSecretRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 ff555e18..a4112ba4 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.C /// /// 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.0.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. @@ -24,7 +26,7 @@ public RotatedRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -107,11 +109,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.Rotated.RotatedRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.Rotated.RotatedRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.Rotated.RotatedRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.Rotated.RotatedRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 ebc2b856..820ec211 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 @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret; @@ -20,11 +21,11 @@ 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; @@ -33,110 +34,111 @@ 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.0.0")] + public partial class ClientUuItemRequestBuilder : BaseRequestBuilder { /// The authz property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.AuthzRequestBuilder Authz + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.AuthzRequestBuilder Authz { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.AuthzRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Authz.AuthzRequestBuilder(PathParameters, RequestAdapter); } /// The certificates property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.CertificatesRequestBuilder Certificates + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.CertificatesRequestBuilder Certificates { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.CertificatesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Certificates.CertificatesRequestBuilder(PathParameters, RequestAdapter); } /// The clientSecret property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.ClientSecretRequestBuilder ClientSecret + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.ClientSecretRequestBuilder ClientSecret { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.ClientSecretRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientSecret.ClientSecretRequestBuilder(PathParameters, RequestAdapter); } /// The defaultClientScopes property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.DefaultClientScopesRequestBuilder DefaultClientScopes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.DefaultClientScopesRequestBuilder DefaultClientScopes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.DefaultClientScopesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.DefaultClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The evaluateScopes property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.EvaluateScopesRequestBuilder EvaluateScopes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.EvaluateScopesRequestBuilder EvaluateScopes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.EvaluateScopesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.EvaluateScopesRequestBuilder(PathParameters, RequestAdapter); } /// The installation property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.InstallationRequestBuilder Installation + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.InstallationRequestBuilder Installation { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.InstallationRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.InstallationRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.ManagementRequestBuilder Management + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.ManagementRequestBuilder Management { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The nodes property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesRequestBuilder Nodes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesRequestBuilder Nodes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesRequestBuilder(PathParameters, RequestAdapter); } /// The offlineSessionCount property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountRequestBuilder OfflineSessionCount + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountRequestBuilder OfflineSessionCount { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountRequestBuilder(PathParameters, RequestAdapter); } /// The offlineSessions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessions.OfflineSessionsRequestBuilder OfflineSessions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessions.OfflineSessionsRequestBuilder OfflineSessions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessions.OfflineSessionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessions.OfflineSessionsRequestBuilder(PathParameters, RequestAdapter); } /// The optionalClientScopes property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.OptionalClientScopesRequestBuilder OptionalClientScopes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.OptionalClientScopesRequestBuilder OptionalClientScopes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.OptionalClientScopesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.OptionalClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The protocolMappers property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ProtocolMappersRequestBuilder ProtocolMappers + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ProtocolMappersRequestBuilder ProtocolMappers { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); } /// The pushRevocation property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.PushRevocation.PushRevocationRequestBuilder PushRevocation + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.PushRevocation.PushRevocationRequestBuilder PushRevocation { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.PushRevocation.PushRevocationRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.PushRevocation.PushRevocationRequestBuilder(PathParameters, RequestAdapter); } /// The registrationAccessToken property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken.RegistrationAccessTokenRequestBuilder RegistrationAccessToken + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken.RegistrationAccessTokenRequestBuilder RegistrationAccessToken { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken.RegistrationAccessTokenRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken.RegistrationAccessTokenRequestBuilder(PathParameters, RequestAdapter); } /// The roles property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.RolesRequestBuilder Roles + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.RolesRequestBuilder Roles { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); } /// The scopeMappings property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.ScopeMappingsRequestBuilder ScopeMappings + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.ScopeMappingsRequestBuilder ScopeMappings { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); } /// The serviceAccountUser property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ServiceAccountUser.ServiceAccountUserRequestBuilder ServiceAccountUser + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ServiceAccountUser.ServiceAccountUserRequestBuilder ServiceAccountUser { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ServiceAccountUser.ServiceAccountUserRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ServiceAccountUser.ServiceAccountUserRequestBuilder(PathParameters, RequestAdapter); } /// The sessionCount property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountRequestBuilder SessionCount + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountRequestBuilder SessionCount { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountRequestBuilder(PathParameters, RequestAdapter); } /// The testNodesAvailable property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable.TestNodesAvailableRequestBuilder TestNodesAvailable + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable.TestNodesAvailableRequestBuilder TestNodesAvailable { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable.TestNodesAvailableRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable.TestNodesAvailableRequestBuilder(PathParameters, RequestAdapter); } /// The userSessions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.UserSessions.UserSessionsRequestBuilder UserSessions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.UserSessions.UserSessionsRequestBuilder UserSessions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.UserSessions.UserSessionsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -144,7 +146,7 @@ public ClientUuItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -171,20 +173,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -195,11 +197,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -251,11 +253,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -267,11 +269,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientUuItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientUuItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientUuItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 2ddc1479..4034d6e0 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.D /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.Item.WithClientScopeItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.Item.WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public DefaultClientScopesRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public DefaultClientScopesRequestBuilder(string rawUrl, IRequestAdapter requestA /// /// Get default client scopes. Only name and ids are returned. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -85,11 +87,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.DefaultClientScopesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.DefaultClientScopesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.DefaultClientScopesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.DefaultClientScopesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 bd33b4c5..c230a6b2 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.D /// /// 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.0.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. @@ -23,7 +25,7 @@ public WithClientScopeItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -91,11 +93,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.Item.WithClientScopeItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.Item.WithClientScopeItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.Item.WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.DefaultClientScopes.Item.WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 23d76058..9ea5015d 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 @@ -1,13 +1,14 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleAccessToken; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleIdToken; 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 @@ -15,35 +16,36 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// 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.0.0")] + public partial class EvaluateScopesRequestBuilder : BaseRequestBuilder { /// The generateExampleAccessToken property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleAccessToken.GenerateExampleAccessTokenRequestBuilder GenerateExampleAccessToken + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleAccessToken.GenerateExampleAccessTokenRequestBuilder GenerateExampleAccessToken { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleAccessToken.GenerateExampleAccessTokenRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleAccessToken.GenerateExampleAccessTokenRequestBuilder(PathParameters, RequestAdapter); } /// The generateExampleIdToken property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleIdToken.GenerateExampleIdTokenRequestBuilder GenerateExampleIdToken + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleIdToken.GenerateExampleIdTokenRequestBuilder GenerateExampleIdToken { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleIdToken.GenerateExampleIdTokenRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleIdToken.GenerateExampleIdTokenRequestBuilder(PathParameters, RequestAdapter); } /// The generateExampleUserinfo property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoRequestBuilder GenerateExampleUserinfo + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoRequestBuilder GenerateExampleUserinfo { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoRequestBuilder(PathParameters, RequestAdapter); } /// The protocolMappers property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ProtocolMappers.ProtocolMappersRequestBuilder ProtocolMappers + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ProtocolMappers.ProtocolMappersRequestBuilder ProtocolMappers { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ProtocolMappers.ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ProtocolMappers.ProtocolMappersRequestBuilder(PathParameters, RequestAdapter); } /// The scopeMappings property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.ScopeMappingsRequestBuilder ScopeMappings + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.ScopeMappingsRequestBuilder ScopeMappings { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.ScopeMappingsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -51,7 +53,7 @@ public EvaluateScopesRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -60,3 +62,4 @@ public EvaluateScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapte } } } +#pragma warning restore CS0618 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 a0b218e8..705e4302 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// 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.0.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. @@ -24,7 +26,7 @@ public GenerateExampleAccessTokenRequestBuilder(Dictionary pathP { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public GenerateExampleAccessTokenRequestBuilder(string rawUrl, IRequestAdapter r /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -56,11 +58,11 @@ public GenerateExampleAccessTokenRequestBuilder(string rawUrl, IRequestAdapter r /// 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); @@ -71,16 +73,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleAccessToken.GenerateExampleAccessTokenRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleAccessToken.GenerateExampleAccessTokenRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleAccessToken.GenerateExampleAccessTokenRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class GenerateExampleAccessTokenRequestBuilderGetQueryParameters { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -103,3 +106,4 @@ public class GenerateExampleAccessTokenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 8fe4b6b7..16781c52 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// 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.0.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. @@ -24,7 +26,7 @@ public GenerateExampleIdTokenRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public GenerateExampleIdTokenRequestBuilder(string rawUrl, IRequestAdapter reque /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -56,11 +58,11 @@ public GenerateExampleIdTokenRequestBuilder(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 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); @@ -71,16 +73,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleIdToken.GenerateExampleIdTokenRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleIdToken.GenerateExampleIdTokenRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleIdToken.GenerateExampleIdTokenRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class GenerateExampleIdTokenRequestBuilderGetQueryParameters { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -103,3 +106,4 @@ public class GenerateExampleIdTokenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 5d084e4f..4049c012 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GenerateExampleUserinfoGetResponse : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public GenerateExampleUserinfoGetResponse() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoGetResponse(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 70077da8..ff197c7d 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// 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.0.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. @@ -23,7 +25,7 @@ public GenerateExampleUserinfoRequestBuilder(Dictionary pathPara { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public GenerateExampleUserinfoRequestBuilder(string rawUrl, IRequestAdapter requ /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.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 @@ -55,11 +57,11 @@ public GenerateExampleUserinfoRequestBuilder(string rawUrl, IRequestAdapter requ /// 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); @@ -70,16 +72,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.GenerateExampleUserinfo.GenerateExampleUserinfoRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class GenerateExampleUserinfoRequestBuilderGetQueryParameters { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -102,3 +105,4 @@ public class GenerateExampleUserinfoRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 0afd1bdc..1e6df44a 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// 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.0.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. @@ -24,7 +26,7 @@ public ProtocolMappersRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// /// This means protocol mappers assigned to this client directly and protocol mappers assigned to all client scopes of this client. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -57,11 +59,11 @@ public ProtocolMappersRequestBuilder(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 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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ProtocolMappers.ProtocolMappersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ProtocolMappers.ProtocolMappersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ProtocolMappers.ProtocolMappersRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class ProtocolMappersRequestBuilderGetQueryParameters { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -95,3 +98,4 @@ public class ProtocolMappersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 f86d7092..2073fc68 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// 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.0.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. @@ -24,7 +26,7 @@ public GrantedRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public GrantedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// 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<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -57,11 +59,11 @@ public GrantedRequestBuilder(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 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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted.GrantedRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted.GrantedRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted.GrantedRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class GrantedRequestBuilderGetQueryParameters { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -95,3 +98,4 @@ public class GrantedRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 03199a3f..c24a84c2 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// 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.0.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. @@ -24,7 +26,7 @@ public NotGrantedRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public NotGrantedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Defacto all the other roles of particular role container, which are not in {@link #getGrantedScopeMappings()} /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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()} @@ -57,11 +59,11 @@ public NotGrantedRequestBuilder(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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.NotGranted.NotGrantedRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.NotGranted.NotGrantedRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.NotGranted.NotGrantedRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class NotGrantedRequestBuilderGetQueryParameters { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -95,3 +98,4 @@ public class NotGrantedRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 04db589d..1093745e 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,10 +1,11 @@ // +#pragma warning disable CS0618 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 @@ -12,20 +13,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// 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.0.0")] + public partial class WithRoleContainerItemRequestBuilder : BaseRequestBuilder { /// The granted property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted.GrantedRequestBuilder Granted + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted.GrantedRequestBuilder Granted { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted.GrantedRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.Granted.GrantedRequestBuilder(PathParameters, RequestAdapter); } /// The notGranted property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.NotGranted.NotGrantedRequestBuilder NotGranted + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.NotGranted.NotGrantedRequestBuilder NotGranted { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.NotGranted.NotGrantedRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -33,7 +35,7 @@ public WithRoleContainerItemRequestBuilder(Dictionary pathParame { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -42,3 +44,4 @@ public WithRoleContainerItemRequestBuilder(string rawUrl, IRequestAdapter reques } } } +#pragma warning restore CS0618 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 586c0ef2..9501b7c7 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.E /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.WithRoleContainerItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.EvaluateScopes.ScopeMappings.Item.WithRoleContainerItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ScopeMappingsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter } } } +#pragma warning restore CS0618 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 1ae00787..f0fdc2df 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,15 +12,16 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.I /// /// 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.0.0")] + public partial class InstallationRequestBuilder : BaseRequestBuilder { /// The providers property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.ProvidersRequestBuilder Providers + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.ProvidersRequestBuilder Providers { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.ProvidersRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -27,7 +29,7 @@ public InstallationRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,3 +38,4 @@ public InstallationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) } } } +#pragma warning restore CS0618 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 e40f8776..63c13497 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.I /// /// 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.0.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. @@ -23,7 +25,7 @@ public WithProviderItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -63,11 +65,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.Item.WithProviderItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.Item.WithProviderItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.Item.WithProviderItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.Item.WithProviderItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 60fef5fd..5e52c211 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.I /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.Item.WithProviderItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Installation.Providers.Item.WithProviderItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ProvidersRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } } } +#pragma warning restore CS0618 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 e2ece527..ca3ab8f7 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,15 +12,16 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.M /// /// 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.0.0")] + public partial class ManagementRequestBuilder : BaseRequestBuilder { /// The permissions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.Permissions.PermissionsRequestBuilder Permissions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.Permissions.PermissionsRequestBuilder Permissions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -27,7 +29,7 @@ public ManagementRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,3 +38,4 @@ public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } } } +#pragma warning restore CS0618 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 ef916c8d..2421b9ef 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.M /// /// 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.0.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. @@ -24,7 +26,7 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,40 +36,40 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -96,11 +98,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -113,11 +115,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 a6f587f1..1d77ac53 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.N /// /// 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.0.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. @@ -23,7 +25,7 @@ public WithNodeItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.Item.WithNodeItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.Item.WithNodeItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.Item.WithNodeItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.Item.WithNodeItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 442314c0..c2021f4e 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class NodesPostRequestBody : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public NodesPostRequestBody() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesPostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesPostRequestBody(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 d4a16296..620d2123 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,22 +14,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.N /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.Item.WithNodeItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.Item.WithNodeItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public NodesRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,11 +53,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.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)); @@ -70,11 +72,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.I /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.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)); @@ -86,11 +88,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Nodes.NodesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 a6658133..bf0e2aeb 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OfflineSessionCountGetResponse : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public OfflineSessionCountGetResponse() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountGetResponse(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 409bafb4..c3b00264 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.O /// /// 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.0.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. @@ -23,7 +25,7 @@ public OfflineSessionCountRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public OfflineSessionCountRequestBuilder(string rawUrl, IRequestAdapter requestA /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.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 } @@ -70,11 +72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessionCount.OfflineSessionCountRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 8c0bd2fd..3b440027 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.O /// /// 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.0.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. @@ -24,7 +26,7 @@ public OfflineSessionsRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public OfflineSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt /// /// Get offline sessions for client Returns a list of offline user sessions associated with this client /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -57,11 +59,11 @@ public OfflineSessionsRequestBuilder(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 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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessions.OfflineSessionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessions.OfflineSessionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OfflineSessions.OfflineSessionsRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class OfflineSessionsRequestBuilderGetQueryParameters { /// Paging offset [QueryParameter("first")] @@ -92,3 +95,4 @@ public class OfflineSessionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 6f9fc6cb..f0c71fb2 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.O /// /// 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.0.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. @@ -23,7 +25,7 @@ public WithClientScopeItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -91,11 +93,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.Item.WithClientScopeItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.Item.WithClientScopeItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.Item.WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.Item.WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 6d639df5..a627f983 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.O /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.Item.WithClientScopeItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.Item.WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public OptionalClientScopesRequestBuilder(Dictionary pathParamet { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public OptionalClientScopesRequestBuilder(string rawUrl, IRequestAdapter request /// /// Get optional client scopes. Only name and ids are returned. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -85,11 +87,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.OptionalClientScopesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.OptionalClientScopesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.OptionalClientScopesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.OptionalClientScopes.OptionalClientScopesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 bddc704e..9eadd3cb 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.P /// /// 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.0.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. @@ -24,7 +26,7 @@ public AddModelsRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -39,11 +41,11 @@ 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)); @@ -58,11 +60,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -74,11 +76,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 81ccf4aa..b9d59ca8 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.P /// /// 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.0.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. @@ -24,7 +26,7 @@ public ModelsItemRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,20 +53,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -74,11 +76,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -130,11 +132,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -146,11 +148,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 c2cd12b5..62469856 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.P /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.Item.ModelsItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public ModelsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public ModelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Get mappers /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,11 +74,11 @@ public ModelsRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -110,11 +112,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -126,11 +128,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 825da572..6a33cca2 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.P /// /// 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.0.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. @@ -24,7 +26,7 @@ public WithProtocolItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public WithProtocolItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Get mappers by name for a specific protocol /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 e2680ed6..30b97ec1 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.P /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.Item.WithProtocolItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ProtocolRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ProtocolRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } } } +#pragma warning restore CS0618 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 633ce101..0d324ed2 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 @@ -1,11 +1,12 @@ // +#pragma warning disable CS0618 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 @@ -13,25 +14,26 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.P /// /// 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.0.0")] + public partial class ProtocolMappersRequestBuilder : BaseRequestBuilder { /// The addModels property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder AddModels + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder AddModels { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.AddModels.AddModelsRequestBuilder(PathParameters, RequestAdapter); } /// The models property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder Models + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder Models { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.ModelsRequests.ModelsRequestBuilder(PathParameters, RequestAdapter); } /// The protocol property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder Protocol + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder Protocol { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ProtocolMappers.Protocol.ProtocolRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -39,7 +41,7 @@ public ProtocolMappersRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -48,3 +50,4 @@ public ProtocolMappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapt } } } +#pragma warning restore CS0618 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 42f5cf41..5f343466 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.P /// /// 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.0.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. @@ -24,7 +26,7 @@ public PushRevocationRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public PushRevocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -71,11 +73,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.PushRevocation.PushRevocationRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.PushRevocation.PushRevocationRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.PushRevocation.PushRevocationRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.PushRevocation.PushRevocationRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 49f3a524..0189a41f 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// 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.0.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. @@ -24,7 +26,7 @@ public RegistrationAccessTokenRequestBuilder(Dictionary pathPara { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public RegistrationAccessTokenRequestBuilder(string rawUrl, IRequestAdapter requ /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -71,11 +73,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken.RegistrationAccessTokenRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken.RegistrationAccessTokenRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken.RegistrationAccessTokenRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.RegistrationAccessToken.RegistrationAccessTokenRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 c5eaacad..1eb80c0e 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// 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.0.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] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ClientsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } } } +#pragma warning restore CS0618 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 1fbe56eb..c919c4b5 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// 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.0.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. @@ -24,7 +26,7 @@ public ClientUuItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// Get client-level roles for the client that are in the role's composite /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 a9d25a51..a1127d31 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// 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.0.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 + public global::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); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Realm.RealmRequestBuilder Realm + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Realm.RealmRequestBuilder Realm { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public CompositesRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,11 +53,11 @@ 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)); @@ -65,21 +67,21 @@ public async Task DeleteAsync(List /// Get composites of the role /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -89,11 +91,11 @@ public async Task DeleteAsync(ListConfiguration for 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)); @@ -108,11 +110,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -148,11 +150,11 @@ 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)); @@ -164,11 +166,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.CompositesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.CompositesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.CompositesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.CompositesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 3136f25e..de95b92f 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// 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.0.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. @@ -24,7 +26,7 @@ public RealmRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Get realm-level roles of the role's composite /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Realm.RealmRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Realm.RealmRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 a6a0b8d3..8bb2bc3e 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// 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.0.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. @@ -24,7 +26,7 @@ public GroupsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Returns a stream of groups that have the specified role name /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -57,11 +59,11 @@ public GroupsRequestBuilder(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 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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Groups.GroupsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Groups.GroupsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Groups.GroupsRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class GroupsRequestBuilderGetQueryParameters { /// if false, return a full representation of the {@code GroupRepresentation} objects. [QueryParameter("briefRepresentation")] @@ -95,3 +98,4 @@ public class GroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 8ac4438c..0525544d 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,15 +12,16 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// 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.0.0")] + public partial class ManagementRequestBuilder : BaseRequestBuilder { /// The permissions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder Permissions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder Permissions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -27,7 +29,7 @@ public ManagementRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,3 +38,4 @@ public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } } } +#pragma warning restore CS0618 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 b2b5cdb7..f4bfa916 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// 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.0.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. @@ -24,7 +26,7 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,40 +36,40 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -96,11 +98,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -113,11 +115,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 3902db32..b2be5498 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 @@ -1,14 +1,15 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Groups; 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; @@ -17,30 +18,31 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// 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.0.0")] + public partial class RoleNameItemRequestBuilder : BaseRequestBuilder { /// The composites property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.CompositesRequestBuilder Composites + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.CompositesRequestBuilder Composites { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.CompositesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Composites.CompositesRequestBuilder(PathParameters, RequestAdapter); } /// The groups property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Groups.GroupsRequestBuilder Groups + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Groups.GroupsRequestBuilder Groups { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.ManagementRequestBuilder Management + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.ManagementRequestBuilder Management { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The users property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Users.UsersRequestBuilder Users + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Users.UsersRequestBuilder Users { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Users.UsersRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -48,7 +50,7 @@ public RoleNameItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -75,20 +77,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -99,11 +101,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -155,11 +157,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -171,11 +173,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.RoleNameItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.RoleNameItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.RoleNameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.RoleNameItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 eca60448..be3bca51 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// 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.0.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. @@ -24,7 +26,7 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Returns a stream of users that have the specified role name. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -57,11 +59,11 @@ 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 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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Users.UsersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Users.UsersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.Users.UsersRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class UsersRequestBuilderGetQueryParameters { /// Boolean which defines whether brief representations are returned (default: false) [QueryParameter("briefRepresentation")] @@ -95,3 +98,4 @@ public class UsersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 c44f1c40..736ab27c 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.R /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.RoleNameItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.Item.RoleNameItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public RolesRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Get all roles for the realm or client /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,11 +74,11 @@ public RolesRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -90,11 +92,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models /// 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); @@ -110,11 +112,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -126,16 +128,17 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.RolesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.RolesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.Roles.RolesRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class RolesRequestBuilderGetQueryParameters { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } @@ -155,3 +158,4 @@ public class RolesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 6e36ed73..4c7df5a4 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ClientsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } } } +#pragma warning restore CS0618 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 854c38c3..920bcb1b 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// 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.0.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. @@ -24,7 +26,7 @@ public AvailableRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// The available client-level roles Returns the roles for the client that can be associated with the client's scope /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 77ac28c1..7d9c994c 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// 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.0.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. @@ -24,7 +26,7 @@ public CompositeRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get effective client roles Returns the roles for the client that are associated with the client's scope. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -57,11 +59,11 @@ public CompositeRequestBuilder(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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class CompositeRequestBuilderGetQueryParameters { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] @@ -89,3 +92,4 @@ public class CompositeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 afa1b468..88c8e056 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// 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.0.0")] + public partial class WithClientItemRequestBuilder : BaseRequestBuilder { /// The available property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder Available + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder Available { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder Composite + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder Composite { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public WithClientItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,11 +53,11 @@ 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)); @@ -65,21 +67,21 @@ public async Task DeleteAsync(List /// Get the roles associated with a client's scope Returns roles for the client. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -89,11 +91,11 @@ public async Task DeleteAsync(ListConfiguration for 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)); @@ -108,11 +110,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -148,11 +150,11 @@ 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)); @@ -164,11 +166,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.Item.WithClientItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 ee3b5489..9bbc4b7f 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// 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.0.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. @@ -24,7 +26,7 @@ public AvailableRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get realm-level roles that are available to attach to this client's scope /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 d6d7872d..c577d1d0 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// 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.0.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. @@ -24,7 +26,7 @@ public CompositeRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// The method is really to show a comprehensive total view of realm-level roles associated with the client. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -57,11 +59,11 @@ public CompositeRequestBuilder(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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class CompositeRequestBuilderGetQueryParameters { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] @@ -89,3 +92,4 @@ public class CompositeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 fc16252d..9b9d56b0 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// 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.0.0")] + public partial class RealmRequestBuilder : BaseRequestBuilder { /// The available property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder Available + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder Available { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder Composite + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder Composite { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public RealmRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,11 +53,11 @@ 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)); @@ -65,21 +67,21 @@ public async Task DeleteAsync(List /// Get realm-level roles associated with the client's scope /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -89,11 +91,11 @@ public async Task DeleteAsync(ListConfiguration for 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)); @@ -108,11 +110,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -148,11 +150,11 @@ 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)); @@ -164,11 +166,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 f9c6c59a..2d3044f5 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,22 +16,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// 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.0.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 + public global::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); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property [Obsolete("")] - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.RealmRequestBuilder Realm + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.RealmRequestBuilder Realm { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -38,7 +40,7 @@ public ScopeMappingsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -48,21 +50,21 @@ public ScopeMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -87,12 +89,13 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.ScopeMappingsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.ScopeMappingsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ScopeMappings.ScopeMappingsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 882ab71b..66adb809 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// 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.0.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. @@ -24,7 +26,7 @@ public ServiceAccountUserRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public ServiceAccountUserRequestBuilder(string rawUrl, IRequestAdapter requestAd /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -71,11 +73,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ServiceAccountUser.ServiceAccountUserRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ServiceAccountUser.ServiceAccountUserRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ServiceAccountUser.ServiceAccountUserRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.ServiceAccountUser.ServiceAccountUserRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 2e905842..e3b28d29 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SessionCountGetResponse : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public SessionCountGetResponse() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountGetResponse(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 fcdee325..7c07499a 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.S /// /// 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.0.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. @@ -23,7 +25,7 @@ public SessionCountRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public SessionCountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.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 } @@ -70,11 +72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.SessionCount.SessionCountRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 45363b6d..22ef7459 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.T /// /// 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.0.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. @@ -24,7 +26,7 @@ public TestNodesAvailableRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public TestNodesAvailableRequestBuilder(string rawUrl, IRequestAdapter requestAd /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -71,11 +73,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable.TestNodesAvailableRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable.TestNodesAvailableRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable.TestNodesAvailableRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.TestNodesAvailable.TestNodesAvailableRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 e1e1ebff..ef4d4c2a 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.U /// /// 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.0.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. @@ -24,7 +26,7 @@ public UserSessionsRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public UserSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// Get user sessions for client Returns a list of user sessions associated with this client /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -57,11 +59,11 @@ public UserSessionsRequestBuilder(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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.UserSessions.UserSessionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.UserSessions.UserSessionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.Item.UserSessions.UserSessionsRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class UserSessionsRequestBuilderGetQueryParameters { /// Paging offset [QueryParameter("first")] @@ -92,3 +95,4 @@ public class UserSessionsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 8864b4db..c714315a 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitial /// /// Builds and executes requests for operations under \admin\realms\{realm}\clients-initial-access /// - public class ClientsInitialAccessRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.Item.ClientsInitialAccessItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.Item.ClientsInitialAccessItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,48 +39,48 @@ public ClientsInitialAccessRequestBuilder(Dictionary pathParamet { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -104,11 +106,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -121,11 +123,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.ClientsInitialAccessRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.ClientsInitialAccessRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.ClientsInitialAccessRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.ClientsInitialAccessRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 6e648aa0..b3d18d32 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitial /// /// 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.0.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. @@ -23,7 +25,7 @@ public ClientsInitialAccessItemRequestBuilder(Dictionary pathPar { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -62,11 +64,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.Item.ClientsInitialAccessItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.Item.ClientsInitialAccessItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.Item.ClientsInitialAccessItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.Item.ClientsInitialAccessItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 fd39f092..522db9be 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.ComponentsItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.ComponentsItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,28 +39,28 @@ public ComponentsRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -66,11 +68,11 @@ public ComponentsRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -81,11 +83,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models /// 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); @@ -98,11 +100,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -114,14 +116,15 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.ComponentsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.ComponentsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.ComponentsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.ComponentsRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ComponentsRequestBuilderGetQueryParameters + public partial class ComponentsRequestBuilderGetQueryParameters #pragma warning restore CS1591 { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -154,3 +157,4 @@ public class ComponentsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 4967e6fe..e9d1730d 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,15 +15,16 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Ite /// /// Builds and executes requests for operations under \admin\realms\{realm}\components\{id} /// - public class ComponentsItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ComponentsItemRequestBuilder : BaseRequestBuilder { /// The subComponentTypes property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.SubComponentTypes.SubComponentTypesRequestBuilder SubComponentTypes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.SubComponentTypes.SubComponentTypesRequestBuilder SubComponentTypes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.SubComponentTypes.SubComponentTypesRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -30,7 +32,7 @@ public ComponentsItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,20 +53,20 @@ public async Task DeleteAsync(ActionA + /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,11 +74,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -119,11 +121,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -135,11 +137,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.ComponentsItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.ComponentsItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.ComponentsItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.ComponentsItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 d9bb95f8..66afd585 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Ite /// /// 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.0.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. @@ -24,7 +26,7 @@ public SubComponentTypesRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public SubComponentTypesRequestBuilder(string rawUrl, IRequestAdapter requestAda /// /// List of subcomponent types that are available to configure for a particular parent component. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -57,11 +59,11 @@ public SubComponentTypesRequestBuilder(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 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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.SubComponentTypes.SubComponentTypesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.SubComponentTypes.SubComponentTypesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.Item.SubComponentTypes.SubComponentTypesRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class SubComponentTypesRequestBuilderGetQueryParameters { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -95,3 +98,4 @@ public class SubComponentTypesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 fe5e591e..7bcf31e3 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegi /// /// Builds and executes requests for operations under \admin\realms\{realm}\credential-registrators /// - public class CredentialRegistratorsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -23,7 +25,7 @@ public CredentialRegistratorsRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -44,7 +46,7 @@ public async Task> GetAsync(Action(requestInfo, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -65,11 +67,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegistrators.CredentialRegistratorsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegistrators.CredentialRegistratorsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegistrators.CredentialRegistratorsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegistrators.CredentialRegistratorsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 eae5bd40..55902237 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefault /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.Item.WithClientScopeItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.Item.WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public DefaultDefaultClientScopesRequestBuilder(Dictionary pathP { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public DefaultDefaultClientScopesRequestBuilder(string rawUrl, IRequestAdapter r /// /// Get realm default client scopes. Only name and ids are returned. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -85,11 +87,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.DefaultDefaultClientScopesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.DefaultDefaultClientScopesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.DefaultDefaultClientScopesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.DefaultDefaultClientScopesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 cefdb34e..2c507253 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefault /// /// 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.0.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. @@ -23,7 +25,7 @@ public WithClientScopeItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -91,11 +93,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.Item.WithClientScopeItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.Item.WithClientScopeItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.Item.WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.Item.WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 c3b5941e..33505934 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.Item.WithGroupItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.Item.WithGroupItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public DefaultGroupsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public DefaultGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Get group hierarchy. Only name and ids are returned. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -85,11 +87,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.DefaultGroupsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.DefaultGroupsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.DefaultGroupsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.DefaultGroupsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 9c038a22..6c1fc40c 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups. /// /// Builds and executes requests for operations under \admin\realms\{realm}\default-groups\{groupId} /// - public class WithGroupItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -23,7 +25,7 @@ public WithGroupItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -91,11 +93,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.Item.WithGroupItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.Item.WithGroupItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.Item.WithGroupItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.Item.WithGroupItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 bddc9e5c..77565ce2 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptiona /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.Item.WithClientScopeItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.Item.WithClientScopeItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public DefaultOptionalClientScopesRequestBuilder(Dictionary path { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public DefaultOptionalClientScopesRequestBuilder(string rawUrl, IRequestAdapter /// /// Get realm optional client scopes. Only name and ids are returned. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -85,11 +87,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.DefaultOptionalClientScopesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.DefaultOptionalClientScopesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.DefaultOptionalClientScopesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.DefaultOptionalClientScopesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 d3803d02..4c2a4a74 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptiona /// /// 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.0.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. @@ -23,7 +25,7 @@ public WithClientScopeItemRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -91,11 +93,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.Item.WithClientScopeItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.Item.WithClientScopeItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.Item.WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.Item.WithClientScopeItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 3c2f01c6..ca1142f7 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ 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.0.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. @@ -24,7 +26,7 @@ public ConfigRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public ConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -57,11 +59,11 @@ public ConfigRequestBuilder(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 PutAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -95,11 +97,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -111,11 +113,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config.ConfigRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config.ConfigRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config.ConfigRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 a01b7eef..dd1ceb8d 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,15 +15,16 @@ 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.0.0")] + public partial class EventsRequestBuilder : BaseRequestBuilder { /// The config property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config.ConfigRequestBuilder Config + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config.ConfigRequestBuilder Config { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.Config.ConfigRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -30,7 +32,7 @@ public EventsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -57,21 +59,21 @@ public async Task DeleteAsync(Action /// Get events Returns all events, or filters them based on URL query parameters listed here /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -98,11 +100,11 @@ 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); @@ -113,16 +115,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.EventsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.EventsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.EventsRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class EventsRequestBuilderGetQueryParameters { /// App or oauth client name #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -193,3 +196,4 @@ public class EventsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 917f5a93..fa52fe9e 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.Item.WithPathItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.Item.WithPathItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public GroupByPathRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public GroupByPathRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) } } } +#pragma warning restore CS0618 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 92348419..5d42d125 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.It /// /// 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.0.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. @@ -24,27 +26,27 @@ public WithPathItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -65,11 +67,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.Item.WithPathItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.Item.WithPathItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.Item.WithPathItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.Item.WithPathItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 e912cd95..8ba08f0c 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountGetResponse : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public CountGetResponse() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountGetResponse(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 85857c9f..faa66e35 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ 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.0.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. @@ -23,7 +25,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.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. @@ -55,11 +57,11 @@ 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); @@ -70,16 +72,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class CountRequestBuilderGetQueryParameters { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -95,3 +98,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 7722fb2d..b47d6ee1 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,27 +16,28 @@ 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.0.0")] + public partial class GroupsRequestBuilder : BaseRequestBuilder { /// The count property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountRequestBuilder Count + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountRequestBuilder Count { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Count.CountRequestBuilder(PathParameters, RequestAdapter); + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.GroupItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.GroupItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -43,7 +45,7 @@ public GroupsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -53,21 +55,21 @@ public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Get group hierarchy. Only name and ids are returned. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -78,11 +80,11 @@ public GroupsRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -96,11 +98,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models /// 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); @@ -116,11 +118,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -132,16 +134,17 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.GroupsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.GroupsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.GroupsRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class GroupsRequestBuilderGetQueryParameters { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } @@ -174,3 +177,4 @@ public class GroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 485ac0cc..f290fffb 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ch /// /// 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.0.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. @@ -24,7 +26,7 @@ public ChildrenRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// /// Return a paginated list of subgroups that have a parent group corresponding to the group on the URL /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -59,11 +61,11 @@ public ChildrenRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -77,11 +79,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models /// 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); @@ -97,11 +99,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -113,16 +115,17 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children.ChildrenRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children.ChildrenRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children.ChildrenRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters { /// Boolean which defines whether brief groups representations are returned or not (default: false) [QueryParameter("briefRepresentation")] @@ -149,3 +152,4 @@ public class ChildrenRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 ab6ee4f4..3c7119de 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 @@ -1,14 +1,15 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management; 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; @@ -17,30 +18,31 @@ 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.0.0")] + public partial class GroupItemRequestBuilder : BaseRequestBuilder { /// The children property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children.ChildrenRequestBuilder Children + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children.ChildrenRequestBuilder Children { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children.ChildrenRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Children.ChildrenRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.ManagementRequestBuilder Management + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.ManagementRequestBuilder Management { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The members property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Members.MembersRequestBuilder Members + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Members.MembersRequestBuilder Members { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Members.MembersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Members.MembersRequestBuilder(PathParameters, RequestAdapter); } /// The roleMappings property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.RoleMappingsRequestBuilder RoleMappings + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.RoleMappingsRequestBuilder RoleMappings { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.RoleMappingsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -48,7 +50,7 @@ public GroupItemRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -69,20 +71,20 @@ public async Task DeleteAsync(ActionA + /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -93,11 +95,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -143,11 +145,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -159,11 +161,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.GroupItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.GroupItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.GroupItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.GroupItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 1c8a6007..f641900b 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,15 +12,16 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ma /// /// 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.0.0")] + public partial class ManagementRequestBuilder : BaseRequestBuilder { /// The permissions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.Permissions.PermissionsRequestBuilder Permissions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.Permissions.PermissionsRequestBuilder Permissions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -27,7 +29,7 @@ public ManagementRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,3 +38,4 @@ public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } } } +#pragma warning restore CS0618 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 46cf6488..e5061ebb 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ma /// /// 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.0.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. @@ -24,7 +26,7 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,40 +36,40 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -96,11 +98,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -113,11 +115,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 ac9e6e93..13ee610b 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Me /// /// 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.0.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. @@ -24,7 +26,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// Get users Returns a stream of users, filtered according to query parameters /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -57,11 +59,11 @@ public MembersRequestBuilder(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 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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Members.MembersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Members.MembersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Members.MembersRequestBuilder(rawUrl, RequestAdapter); + 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.0.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")] @@ -95,3 +98,4 @@ public class MembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 86c52e00..c7bb5838 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// 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.0.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 /// client id (not clientId!) - /// A - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ClientsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } } } +#pragma warning restore CS0618 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 4f82b017..24fcd40d 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// 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.0.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. @@ -24,7 +26,7 @@ public AvailableRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get available client-level roles that can be mapped to the user or group /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 or group @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 index c34234f8..7209705b 100644 --- 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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.Linq; using System.Threading.Tasks; using System.Threading; using System; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// Builds and executes requests for operations under \admin\realms\{realm}\groups\{group-id}\role-mappings\clients\{client-id} /// - public class ClientItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClientItemRequestBuilder : BaseRequestBuilder { /// The available property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder Available + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder Available { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder Composite + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder Composite { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); + 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. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public ClientItemRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,11 +53,11 @@ public ClientItemRequestBuilder(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)); @@ -65,21 +67,21 @@ public async Task DeleteAsync(List /// Get client-level role mappings for the user or group, and the app /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 user or group role mapping @@ -89,11 +91,11 @@ public async Task DeleteAsync(ListConfiguration for 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)); @@ -108,11 +110,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -148,11 +150,11 @@ 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)); @@ -164,11 +166,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 de879962..c1b4178f 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// 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.0.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. @@ -24,7 +26,7 @@ public CompositeRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get effective client-level role mappings This recurses any composite roles /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -57,11 +59,11 @@ public CompositeRequestBuilder(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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class CompositeRequestBuilderGetQueryParameters { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] @@ -89,3 +92,4 @@ public class CompositeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 6b760a37..3e7dafdb 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// 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.0.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. @@ -24,7 +26,7 @@ public AvailableRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get realm-level roles that can be mapped /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 1c65ad53..d74d2f8e 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// 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.0.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. @@ -24,7 +26,7 @@ public CompositeRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get effective realm-level role mappings This will recurse all composite roles to get the result. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -57,11 +59,11 @@ public CompositeRequestBuilder(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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class CompositeRequestBuilderGetQueryParameters { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] @@ -89,3 +92,4 @@ public class CompositeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 37142201..ebccad47 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// 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.0.0")] + public partial class RealmRequestBuilder : BaseRequestBuilder { /// The available property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available.AvailableRequestBuilder Available + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available.AvailableRequestBuilder Available { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder Composite + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder Composite { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public RealmRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,11 +53,11 @@ 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)); @@ -65,21 +67,21 @@ public async Task DeleteAsync(List /// Get realm-level role mappings /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -89,11 +91,11 @@ public async Task DeleteAsync(ListConfiguration for 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)); @@ -108,11 +110,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -148,11 +150,11 @@ 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)); @@ -164,11 +166,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 79497f8b..22778f9c 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.Ro /// /// 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.0.0")] + public partial class RoleMappingsRequestBuilder : BaseRequestBuilder { /// The clients property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.ClientsRequestBuilder Clients + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.ClientsRequestBuilder Clients { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.RealmRequestBuilder Realm + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.RealmRequestBuilder Realm { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public RoleMappingsRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public RoleMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -83,11 +85,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.RoleMappingsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.RoleMappingsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.RoleMappingsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.Item.RoleMappings.RoleMappingsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 53bf2e03..e5cb8421 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 @@ -1,11 +1,12 @@ // +#pragma warning disable CS0618 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 @@ -13,25 +14,26 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider /// - public class IdentityProviderRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IdentityProviderRequestBuilder : BaseRequestBuilder { /// The importConfig property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigRequestBuilder ImportConfig + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigRequestBuilder ImportConfig { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigRequestBuilder(PathParameters, RequestAdapter); } /// The instances property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.InstancesRequestBuilder Instances + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.InstancesRequestBuilder Instances { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.InstancesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.InstancesRequestBuilder(PathParameters, RequestAdapter); } /// The providers property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.ProvidersRequestBuilder Providers + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.ProvidersRequestBuilder Providers { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.ProvidersRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -39,7 +41,7 @@ public IdentityProviderRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -48,3 +50,4 @@ public IdentityProviderRequestBuilder(string rawUrl, IRequestAdapter requestAdap } } } +#pragma warning restore CS0618 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 c89f3ece..d6f2ec31 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImportConfigPostRequestBody : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ImportConfigPostRequestBody() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigPostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigPostRequestBody(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 25de4391..45b29dc6 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImportConfigPostResponse : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ImportConfigPostResponse() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigPostResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigPostResponse(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 7a70df0b..82c160f7 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// 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.0.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. @@ -23,7 +25,7 @@ public ImportConfigRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,22 +35,22 @@ public ImportConfigRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.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 @@ -58,11 +60,11 @@ public ImportConfigRequestBuilder(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 ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.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)); @@ -75,11 +77,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.ImportConfig.ImportConfigRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 43e51786..353c51f6 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\instances /// - public class InstancesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.WithAliasItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.WithAliasItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public InstancesRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public InstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// List identity providers /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,11 +74,11 @@ public InstancesRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -90,11 +92,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models /// 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); @@ -110,11 +112,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -126,16 +128,17 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.InstancesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.InstancesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.InstancesRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class InstancesRequestBuilderGetQueryParameters { /// Boolean which defines whether brief representations are returned (default: false) [QueryParameter("briefRepresentation")] @@ -162,3 +165,4 @@ public class InstancesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 593d1fc6..0527efc1 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// 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.0.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. @@ -23,7 +25,7 @@ public ExportRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -38,11 +40,11 @@ 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); @@ -55,11 +57,11 @@ 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); @@ -69,16 +71,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Export.ExportRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Export.ExportRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Export.ExportRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class ExportRequestBuilderGetQueryParameters { /// Format to use #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -93,3 +96,4 @@ public class ExportRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 db263e43..efeb0a0b 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,15 +12,16 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// 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.0.0")] + public partial class ManagementRequestBuilder : BaseRequestBuilder { /// The permissions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.Permissions.PermissionsRequestBuilder Permissions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.Permissions.PermissionsRequestBuilder Permissions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -27,7 +29,7 @@ public ManagementRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,3 +38,4 @@ public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } } } +#pragma warning restore CS0618 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 cbbf00dd..9f7df047 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// 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.0.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. @@ -24,7 +26,7 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,40 +36,40 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -96,11 +98,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -113,11 +115,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 037c1348..37784185 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// 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.0.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. @@ -23,7 +25,7 @@ public MapperTypesRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -70,11 +72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes.MapperTypesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes.MapperTypesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes.MapperTypesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes.MapperTypesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 4c453b77..4a2462ef 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// 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.0.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. @@ -24,7 +26,7 @@ public MappersItemRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,20 +53,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -74,11 +76,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -130,11 +132,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -146,11 +148,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.Item.MappersItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.Item.MappersItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.Item.MappersItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.Item.MappersItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 f7562eaf..ac9f46c1 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.Item.MappersItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.Item.MappersItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public MappersRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public MappersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// Get mappers for identity provider /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,11 +74,11 @@ public MappersRequestBuilder(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 PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -110,11 +112,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -126,11 +128,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.MappersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.MappersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.MappersRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.MappersRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 53a8c95d..22bcb9a0 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// 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.0.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. @@ -23,7 +25,7 @@ public ReloadKeysRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -70,11 +72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.ReloadKeys.ReloadKeysRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.ReloadKeys.ReloadKeysRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.ReloadKeys.ReloadKeysRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.ReloadKeys.ReloadKeysRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 ed2bc752..fdb2d837 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 @@ -1,15 +1,16 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Export; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes; 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; @@ -18,35 +19,36 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// 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.0.0")] + public partial class WithAliasItemRequestBuilder : BaseRequestBuilder { /// The export property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Export.ExportRequestBuilder Export + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Export.ExportRequestBuilder Export { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Export.ExportRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Export.ExportRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.ManagementRequestBuilder Management + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.ManagementRequestBuilder Management { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The mappers property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.MappersRequestBuilder Mappers + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.MappersRequestBuilder Mappers { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.MappersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.Mappers.MappersRequestBuilder(PathParameters, RequestAdapter); } /// The mapperTypes property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes.MapperTypesRequestBuilder MapperTypes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes.MapperTypesRequestBuilder MapperTypes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes.MapperTypesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.MapperTypes.MapperTypesRequestBuilder(PathParameters, RequestAdapter); } /// The reloadKeys property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.ReloadKeys.ReloadKeysRequestBuilder ReloadKeys + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.ReloadKeys.ReloadKeysRequestBuilder ReloadKeys { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.ReloadKeys.ReloadKeysRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -54,7 +56,7 @@ public WithAliasItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -82,20 +84,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -106,11 +108,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -162,11 +164,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -178,11 +180,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.WithAliasItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.WithAliasItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.WithAliasItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Instances.Item.WithAliasItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 1686adb6..945e24ea 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class WithProvider_GetResponse : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public WithProvider_GetResponse() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.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 @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 a15a4231..d2fb0a37 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// 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.0.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. @@ -23,7 +25,7 @@ public WithProvider_ItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public WithProvider_ItemRequestBuilder(string rawUrl, IRequestAdapter requestAda /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.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 @@ -70,11 +72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.WithProvider_ItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.WithProvider_ItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.WithProvider_ItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.WithProvider_ItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 bcf6e23c..8ca51365 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvid /// /// Builds and executes requests for operations under \admin\realms\{realm}\identity-provider\providers /// - public class ProvidersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.WithProvider_ItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.Providers.Item.WithProvider_ItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ProvidersRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } } } +#pragma warning restore CS0618 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 4281e4e7..19d51409 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ 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.0.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. @@ -24,27 +26,27 @@ public KeysRequestBuilder(Dictionary pathParameters, IRequestAda { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -65,11 +67,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys.KeysRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys.KeysRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys.KeysRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys.KeysRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 fbc3d2b1..2cd1ddd3 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\localization\{locale}\{key} /// - public class WithKeyItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -23,7 +25,7 @@ public WithKeyItemRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -127,11 +129,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.Item.WithKeyItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.Item.WithKeyItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.Item.WithKeyItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.Item.WithKeyItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 48ab2084..902108ab 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class WithLocaleGetResponse : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public WithLocaleGetResponse() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleGetResponse(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 754d27bd..17f2891e 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,22 +14,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.I /// /// Builds and executes requests for operations under \admin\realms\{realm}\localization\{locale} /// - public class WithLocaleItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.Item.WithKeyItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.Item.WithKeyItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public WithLocaleItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -57,20 +59,20 @@ public async Task DeleteAsync(ActionA + /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.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 @@ -80,11 +82,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.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)); @@ -110,11 +112,11 @@ 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); @@ -130,11 +132,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.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)); @@ -146,14 +148,15 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleItemRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class WithLocaleItemRequestBuilderGetQueryParameters + public partial class WithLocaleItemRequestBuilderGetQueryParameters #pragma warning restore CS1591 { [Obsolete("")] @@ -162,3 +165,4 @@ public class WithLocaleItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 53f1ca4b..c3ec41f7 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class WithLocalePostRequestBody : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public WithLocalePostRequestBody() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocalePostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocalePostRequestBody(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 61020770..1e07bf9c 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,22 +14,23 @@ 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.Item.WithLocaleItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public LocalizationRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -57,7 +59,7 @@ public async Task> GetAsync(Action(requestInfo, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + return collectionResult?.AsList(); } /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -78,11 +80,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.LocalizationRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.LocalizationRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.LocalizationRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.LocalizationRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 24f2387d..2232f0b4 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ 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.0.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. @@ -24,7 +26,7 @@ public LogoutAllRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public LogoutAllRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -71,11 +73,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll.LogoutAllRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll.LogoutAllRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll.LogoutAllRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll.LogoutAllRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs index 48085b89..b335fe5b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/IdentityProviders/IdentityProvidersRequestBuilder.cs @@ -1,11 +1,12 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations. /// /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\identity-providers /// - public class IdentityProvidersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class IdentityProvidersRequestBuilder : BaseRequestBuilder { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.organizations.item.identityProviders.item collection /// Unique identifier of the item - /// A - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.Item.WithAliasItemRequestBuilder this[string position] + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.Item.WithAliasItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("alias", position); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.Item.WithAliasItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.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. @@ -37,7 +39,7 @@ public IdentityProvidersRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public IdentityProvidersRequestBuilder(string rawUrl, IRequestAdapter requestAda /// /// Returns all identity providers associated with the organization /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(); } /// /// Adds, or associates, an existing identity provider with the organization. If no identity provider is found, or if it is already associated with the organization, an error response is returned @@ -126,11 +128,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.IdentityProvidersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.IdentityProvidersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.IdentityProvidersRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.IdentityProvidersRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/IdentityProviders/Item/WithAliasItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/IdentityProviders/Item/WithAliasItemRequestBuilder.cs index 1c0b817f..695229e7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/IdentityProviders/Item/WithAliasItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/IdentityProviders/Item/WithAliasItemRequestBuilder.cs @@ -1,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations. /// /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\identity-providers\{alias} /// - public class WithAliasItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WithAliasItemRequestBuilder : 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. @@ -24,7 +26,7 @@ public WithAliasItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,20 +54,20 @@ public async Task DeleteAsync(Action /// Searches for an identity provider with the given alias. If one is found and is associated with the organization, it is returned. Otherwise, an error response with status NOT_FOUND is returned /// - /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Breaks the association between the identity provider and the organization. The provider itself is not deleted. If no provider is found, or if it is not currently associated with the org, an error response is returned @@ -107,11 +109,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.Item.WithAliasItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.Item.WithAliasItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.Item.WithAliasItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.Item.WithAliasItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Count/CountRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Count/CountRequestBuilder.cs index db0a4c03..32ecd017 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Count/CountRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Count/CountRequestBuilder.cs @@ -1,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations. /// /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\members\count /// - public class CountRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -23,7 +25,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -70,11 +72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count.CountRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count.CountRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count.CountRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteExistingUser/InviteExistingUserPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteExistingUser/InviteExistingUserPostRequestBody.cs index ce9c8613..173130e5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteExistingUser/InviteExistingUserPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteExistingUser/InviteExistingUserPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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.Organizations.Item.Members.InviteExistingUser { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class InviteExistingUserPostRequestBody : IAdditionalDataHolder, IParsable + public partial class InviteExistingUserPostRequestBody : 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. @@ -21,7 +23,7 @@ public class InviteExistingUserPostRequestBody : 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 InviteExistingUserPostRequestBody() { @@ -30,12 +32,12 @@ public InviteExistingUserPostRequestBody() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody(); } /// /// The deserialization information for the current model @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteExistingUser/InviteExistingUserRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteExistingUser/InviteExistingUserRequestBuilder.cs index 8d0ff846..0d5fcf5a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteExistingUser/InviteExistingUserRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteExistingUser/InviteExistingUserRequestBuilder.cs @@ -1,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations. /// /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\members\invite-existing-user /// - public class InviteExistingUserRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InviteExistingUserRequestBuilder : 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. @@ -23,7 +25,7 @@ public InviteExistingUserRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -39,11 +41,11 @@ public InviteExistingUserRequestBuilder(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 PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -58,11 +60,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin. /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -74,11 +76,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteUser/InviteUserPostRequestBody.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteUser/InviteUserPostRequestBody.cs index d185a855..8ae8ca5c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteUser/InviteUserPostRequestBody.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteUser/InviteUserPostRequestBody.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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.Organizations.Item.Members.InviteUser { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class InviteUserPostRequestBody : IAdditionalDataHolder, IParsable + public partial class InviteUserPostRequestBody : 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. @@ -37,7 +39,7 @@ public class InviteUserPostRequestBody : IAdditionalDataHolder, IParsable public string LastName { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InviteUserPostRequestBody() { @@ -46,12 +48,12 @@ public InviteUserPostRequestBody() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody(); } /// /// The deserialization information for the current model @@ -80,3 +82,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteUser/InviteUserRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteUser/InviteUserRequestBuilder.cs index e4f968ba..46219860 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteUser/InviteUserRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/InviteUser/InviteUserRequestBuilder.cs @@ -1,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations. /// /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\members\invite-user /// - public class InviteUserRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InviteUserRequestBuilder : 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. @@ -23,7 +25,7 @@ public InviteUserRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -39,11 +41,11 @@ public InviteUserRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -58,11 +60,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin. /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserPostRequestBody body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -74,11 +76,12 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Item/MembersItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Item/MembersItemRequestBuilder.cs index 6cb625f4..91d5442a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Item/MembersItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Item/MembersItemRequestBuilder.cs @@ -1,11 +1,12 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations; 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; @@ -14,15 +15,16 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations. /// /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\members\{id} /// - public class MembersItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersItemRequestBuilder : BaseRequestBuilder { /// The organizations property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations.OrganizationsRequestBuilder Organizations + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations.OrganizationsRequestBuilder Organizations { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations.OrganizationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations.OrganizationsRequestBuilder(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. @@ -30,7 +32,7 @@ public MembersItemRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -58,20 +60,20 @@ public async Task DeleteAsync(Action /// Searches for auser with the given id. If one is found, and is currently a member of the organization, returns it. Otherwise,an error response with status NOT_FOUND is returned /// - /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Breaks the association between the user and organization. The user itself is deleted in case the membership is managed, otherwise the user is not deleted. If no user is found, or if they are not a member of the organization, an error response is returned @@ -113,11 +115,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.MembersItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.MembersItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.MembersItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.MembersItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Item/Organizations/OrganizationsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Item/Organizations/OrganizationsRequestBuilder.cs index fd763169..31753c31 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Item/Organizations/OrganizationsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/Item/Organizations/OrganizationsRequestBuilder.cs @@ -1,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations. /// /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\members\{id}\organizations /// - public class OrganizationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OrganizationsRequestBuilder : 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. @@ -24,7 +26,7 @@ public OrganizationsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Returns the organizations associated with the user that has the specified id /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation> /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns the organizations associated with the user that has the specified id @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/MembersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/MembersRequestBuilder.cs index ecfd1ffc..827291cc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/MembersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/Members/MembersRequestBuilder.cs @@ -1,14 +1,15 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.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; @@ -17,37 +18,38 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations. /// /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id}\members /// - public class MembersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilder : BaseRequestBuilder { /// The count property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count.CountRequestBuilder Count + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count.CountRequestBuilder Count { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count.CountRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// The inviteExistingUser property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserRequestBuilder InviteExistingUser + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserRequestBuilder InviteExistingUser { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteExistingUser.InviteExistingUserRequestBuilder(PathParameters, RequestAdapter); } /// The inviteUser property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserRequestBuilder InviteUser + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserRequestBuilder InviteUser { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.InviteUser.InviteUserRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.organizations.item.members.item collection /// Unique identifier of the item - /// A - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.MembersItemRequestBuilder this[string position] + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.MembersItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("id", position); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.MembersItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.Item.MembersItemRequestBuilder(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. @@ -55,7 +57,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -65,21 +67,21 @@ public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// Returns a paginated list of organization members filtered according to the specified parameters /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation> /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Adds, or associates, an existing user with the organization. If no user is found, or if it is already associated with the organization, an error response is returned @@ -108,11 +110,11 @@ 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); @@ -144,16 +146,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.MembersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.MembersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.MembersRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.MembersRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a paginated list of organization members filtered according to the specified parameters /// - public class MembersRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilderGetQueryParameters { /// Boolean which defines whether the param 'search' must match exactly or not [QueryParameter("exact")] @@ -177,3 +180,4 @@ public class MembersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/OrganizationsItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/OrganizationsItemRequestBuilder.cs index 3de82c4f..97d2f9e4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/OrganizationsItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Item/OrganizationsItemRequestBuilder.cs @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members; 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations. /// /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\{id} /// - public class OrganizationsItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OrganizationsItemRequestBuilder : BaseRequestBuilder { /// The identityProviders property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.IdentityProvidersRequestBuilder IdentityProviders + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.IdentityProvidersRequestBuilder IdentityProviders { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.IdentityProvidersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.IdentityProviders.IdentityProvidersRequestBuilder(PathParameters, RequestAdapter); } /// The members property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.MembersRequestBuilder Members + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.MembersRequestBuilder Members { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.MembersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.Members.MembersRequestBuilder(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. @@ -36,7 +38,7 @@ public OrganizationsItemRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -64,20 +66,20 @@ public async Task DeleteAsync(Action /// Returns the organization 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); } /// /// Updates the organization @@ -88,11 +90,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PutAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -144,11 +146,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action>? requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action> requestConfiguration = default) + public RequestInformation ToPutRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -160,11 +162,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.OrganizationsItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.OrganizationsItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.OrganizationsItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.OrganizationsItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/Item/MembersItemRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/Item/MembersItemRequestBuilder.cs index 3f11d9fd..8eb2317a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/Item/MembersItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/Item/MembersItemRequestBuilder.cs @@ -1,9 +1,10 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations; +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.Organizations.Members.Item @@ -11,15 +12,16 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations. /// /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\members\{id} /// - public class MembersItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersItemRequestBuilder : BaseRequestBuilder { /// The organizations property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations.OrganizationsRequestBuilder Organizations + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations.OrganizationsRequestBuilder Organizations { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations.OrganizationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations.OrganizationsRequestBuilder(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. @@ -27,7 +29,7 @@ public MembersItemRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,3 +38,4 @@ public MembersItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/Item/Organizations/OrganizationsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/Item/Organizations/OrganizationsRequestBuilder.cs index c48952fc..a436cfc8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/Item/Organizations/OrganizationsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/Item/Organizations/OrganizationsRequestBuilder.cs @@ -1,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations. /// /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\members\{id}\organizations /// - public class OrganizationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OrganizationsRequestBuilder : 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. @@ -24,7 +26,7 @@ public OrganizationsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Returns the organizations associated with the user that has the specified id /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation> /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Returns the organizations associated with the user that has the specified id @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/MembersRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/MembersRequestBuilder.cs index 08813c46..199d91d7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/MembersRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/Members/MembersRequestBuilder.cs @@ -1,9 +1,10 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.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.Organizations.Members @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations. /// /// Builds and executes requests for operations under \admin\realms\{realm}\organizations\members /// - public class MembersRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MembersRequestBuilder : BaseRequestBuilder { /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.organizations.members.item collection /// Unique identifier of the item - /// A - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.MembersItemRequestBuilder this[string position] + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.MembersItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("id", position); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.MembersItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.Item.MembersItemRequestBuilder(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. @@ -34,7 +36,7 @@ public MembersRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/OrganizationsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/OrganizationsRequestBuilder.cs index a1a0718a..624c88c3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/OrganizationsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/Organizations/OrganizationsRequestBuilder.cs @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members; 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; @@ -15,27 +16,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations /// /// Builds and executes requests for operations under \admin\realms\{realm}\organizations /// - public class OrganizationsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OrganizationsRequestBuilder : BaseRequestBuilder { /// The members property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.MembersRequestBuilder Members + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.MembersRequestBuilder Members { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.MembersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Members.MembersRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Keycloak.AuthServices.Sdk.Kiota.Admin.admin.realms.item.organizations.item collection /// Unique identifier of the item - /// A - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.OrganizationsItemRequestBuilder this[string position] + /// A + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.OrganizationsItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("id", position); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.OrganizationsItemRequestBuilder(urlTplParams, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.Item.OrganizationsItemRequestBuilder(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. @@ -43,7 +45,7 @@ public OrganizationsRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -53,21 +55,21 @@ public OrganizationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// Returns a paginated list of organizations filtered according to the specified parameters /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation> + /// A List<global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation> /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); + var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + return collectionResult?.AsList(); } /// /// Creates a new organization @@ -78,11 +80,11 @@ public OrganizationsRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -96,11 +98,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models /// 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); @@ -116,11 +118,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); @@ -132,16 +134,17 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.OrganizationsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.OrganizationsRequestBuilder(rawUrl, RequestAdapter); } /// /// Returns a paginated list of organizations filtered according to the specified parameters /// - public class OrganizationsRequestBuilderGetQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class OrganizationsRequestBuilderGetQueryParameters { /// Boolean which defines whether the param 'search' must match exactly or not [QueryParameter("exact")] @@ -175,3 +178,4 @@ public class OrganizationsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 a5a4a2d6..dc4ec947 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ 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.0.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. @@ -23,7 +25,7 @@ public PartialExportRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -38,11 +40,11 @@ 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); @@ -55,11 +57,11 @@ 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); @@ -69,16 +71,17 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport.PartialExportRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport.PartialExportRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport.PartialExportRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class PartialExportRequestBuilderPostQueryParameters { [QueryParameter("exportClients")] public bool? ExportClients { get; set; } @@ -87,3 +90,4 @@ public class PartialExportRequestBuilderPostQueryParameters } } } +#pragma warning restore CS0618 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 b9b8caa8..93ae3304 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ 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.0.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. @@ -23,7 +25,7 @@ public PartialImportRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -74,11 +76,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport.PartialImportRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport.PartialImportRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport.PartialImportRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport.PartialImportRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 6e57c508..27464704 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ 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.0.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. @@ -24,7 +26,7 @@ public PushRevocationRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public PushRevocationRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -71,11 +73,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation.PushRevocationRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation.PushRevocationRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation.PushRevocationRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation.PushRevocationRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 e547e063..5b281cb8 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Com /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ClientsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } } } +#pragma warning restore CS0618 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 d05ac861..ec211b61 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Com /// /// 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.0.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. @@ -24,7 +26,7 @@ public ClientUuItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public ClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// Get client-level roles for the client that are in the role's composite /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.Item.ClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 399f84fe..9f5494a2 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Com /// /// 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.0.0")] + public partial class CompositesRequestBuilder : BaseRequestBuilder { /// The clients property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder Clients + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder Clients { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Realm.RealmRequestBuilder Realm + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Realm.RealmRequestBuilder Realm { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public CompositesRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,11 +53,11 @@ 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)); @@ -65,21 +67,21 @@ public async Task DeleteAsync(List /// Get composites of the role /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -89,11 +91,11 @@ public async Task DeleteAsync(ListConfiguration for 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)); @@ -108,11 +110,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -148,11 +150,11 @@ 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)); @@ -164,11 +166,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.CompositesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.CompositesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.CompositesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.CompositesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 3a219da7..cfc9d420 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Com /// /// 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.0.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. @@ -24,7 +26,7 @@ public RealmRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Get realm-level roles of the role's composite /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Realm.RealmRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Realm.RealmRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 d9c2bb29..ab7fd4d9 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Gro /// /// 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.0.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. @@ -24,7 +26,7 @@ public GroupsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// Returns a stream of groups that have the specified role name /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -57,11 +59,11 @@ public GroupsRequestBuilder(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 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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Groups.GroupsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Groups.GroupsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Groups.GroupsRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class GroupsRequestBuilderGetQueryParameters { /// if false, return a full representation of the {@code GroupRepresentation} objects. [QueryParameter("briefRepresentation")] @@ -95,3 +98,4 @@ public class GroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 ad8a064b..875054e5 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,15 +12,16 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Man /// /// 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.0.0")] + public partial class ManagementRequestBuilder : BaseRequestBuilder { /// The permissions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder Permissions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder Permissions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -27,7 +29,7 @@ public ManagementRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,3 +38,4 @@ public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } } } +#pragma warning restore CS0618 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 bbd043aa..5ee71b79 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Man /// /// 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.0.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. @@ -24,7 +26,7 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,40 +36,40 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -96,11 +98,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -113,11 +115,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 48de8dcc..95242d72 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 @@ -1,14 +1,15 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Groups; 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; @@ -17,30 +18,31 @@ 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.0.0")] + public partial class RoleNameItemRequestBuilder : BaseRequestBuilder { /// The composites property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.CompositesRequestBuilder Composites + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.CompositesRequestBuilder Composites { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.CompositesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Composites.CompositesRequestBuilder(PathParameters, RequestAdapter); } /// The groups property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Groups.GroupsRequestBuilder Groups + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Groups.GroupsRequestBuilder Groups { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.ManagementRequestBuilder Management + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.ManagementRequestBuilder Management { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); } /// The users property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Users.UsersRequestBuilder Users + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Users.UsersRequestBuilder Users { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Users.UsersRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -48,7 +50,7 @@ public RoleNameItemRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -75,20 +77,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -99,11 +101,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -155,11 +157,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -171,11 +173,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.RoleNameItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.RoleNameItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.RoleNameItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.RoleNameItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 49162182..ab1aea9f 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Use /// /// 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.0.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. @@ -24,7 +26,7 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Returns a stream of users that have the specified role name. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -57,11 +59,11 @@ 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 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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Users.UsersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Users.UsersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.Users.UsersRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class UsersRequestBuilderGetQueryParameters { /// Boolean which defines whether brief representations are returned (default: false) [QueryParameter("briefRepresentation")] @@ -95,3 +98,4 @@ public class UsersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 f3be1345..e8e11e91 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.RoleNameItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.Item.RoleNameItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public RolesRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Get all roles for the realm or client /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,11 +74,11 @@ public RolesRequestBuilder(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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -90,11 +92,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models /// 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); @@ -110,11 +112,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -126,16 +128,17 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.RolesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.RolesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.RolesRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class RolesRequestBuilderGetQueryParameters { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } @@ -155,3 +158,4 @@ public class RolesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 7f9ce9dc..f3d59075 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ 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}\composites\clients /// - public class ClientsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.Item.WithClientUuItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.Item.WithClientUuItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ClientsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } } } +#pragma warning restore CS0618 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 aaf908ec..2561b98f 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ 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}\composites\clients\{clientUuid} /// - public class WithClientUuItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -24,7 +26,7 @@ public WithClientUuItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public WithClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Get client-level roles for the client that are in the role's composite /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.Item.WithClientUuItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.Item.WithClientUuItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.Item.WithClientUuItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.Item.WithClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 582ac8c5..603597f5 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ 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}\composites /// - public class CompositesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CompositesRequestBuilder : BaseRequestBuilder { /// The clients property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.ClientsRequestBuilder Clients + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.ClientsRequestBuilder Clients { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Realm.RealmRequestBuilder Realm + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Realm.RealmRequestBuilder Realm { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public CompositesRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,11 +53,11 @@ 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)); @@ -65,21 +67,21 @@ public async Task DeleteAsync(List /// Get role's children Returns a set of role's children provided the role is a composite. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -89,11 +91,11 @@ public async Task DeleteAsync(ListConfiguration for 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)); @@ -108,11 +110,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -128,11 +130,11 @@ public RequestInformation ToDeleteRequestInformation(ListConfiguration 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); @@ -148,11 +150,11 @@ 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)); @@ -164,16 +166,17 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.CompositesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.CompositesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.CompositesRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class CompositesRequestBuilderGetQueryParameters { [QueryParameter("first")] public int? First { get; set; } @@ -191,3 +194,4 @@ public class CompositesRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 162fb5f6..ef91c249 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ 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}\composites\realm /// - public class RealmRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -24,7 +26,7 @@ public RealmRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public RealmRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Get realm-level roles that are in the role's composite /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Realm.RealmRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Realm.RealmRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 190aad79..42ee9735 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,15 +12,16 @@ 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}\management /// - public class ManagementRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ManagementRequestBuilder : BaseRequestBuilder { /// The permissions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.Permissions.PermissionsRequestBuilder Permissions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.Permissions.PermissionsRequestBuilder Permissions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.Permissions.PermissionsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -27,7 +29,7 @@ public ManagementRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,3 +38,4 @@ public ManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } } } +#pragma warning restore CS0618 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 be72621d..2f906e6a 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ 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}\management\permissions /// - public class PermissionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -24,7 +26,7 @@ public PermissionsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,40 +36,40 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -96,11 +98,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -113,11 +115,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.Permissions.PermissionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 eadbf172..b67b62de 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ 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.0.0")] + public partial class RoleItemRequestBuilder : BaseRequestBuilder { /// The composites property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.CompositesRequestBuilder Composites + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.CompositesRequestBuilder Composites { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.CompositesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Composites.CompositesRequestBuilder(PathParameters, RequestAdapter); } /// The management property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.ManagementRequestBuilder Management + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.ManagementRequestBuilder Management { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.Management.ManagementRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public RoleItemRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -63,20 +65,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -86,11 +88,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -142,11 +144,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -158,11 +160,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.RoleItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.RoleItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.RoleItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.RoleItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 8f11be2e..65050683 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.RoleItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.Item.RoleItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public RolesByIdRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public RolesByIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } } } +#pragma warning restore CS0618 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 1769f3cd..595b15ed 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ 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.0.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. @@ -23,7 +25,7 @@ public WithSessionItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -37,11 +39,11 @@ 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); @@ -54,11 +56,11 @@ 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); @@ -68,19 +70,21 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.Item.WithSessionItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.Item.WithSessionItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.Item.WithSessionItemRequestBuilder(rawUrl, RequestAdapter); + 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. /// - public class WithSessionItemRequestBuilderDeleteQueryParameters + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WithSessionItemRequestBuilderDeleteQueryParameters { [QueryParameter("isOffline")] public bool? IsOffline { get; set; } } } } +#pragma warning restore CS0618 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 e5b9f0f0..6cb6510f 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.Item.WithSessionItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.Item.WithSessionItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public SessionsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } } } +#pragma warning restore CS0618 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 5a19de1a..8dc7c273 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class TestSMTPConnectionPostRequestBody : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public TestSMTPConnectionPostRequestBody() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionPostRequestBody(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionPostRequestBody(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 28424cc2..ae600a28 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnec /// /// Builds and executes requests for operations under \admin\realms\{realm}\testSMTPConnection /// - public class TestSMTPConnectionRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -23,7 +25,7 @@ public TestSMTPConnectionRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -40,11 +42,11 @@ public TestSMTPConnectionRequestBuilder(string rawUrl, IRequestAdapter requestAd [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.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)); @@ -60,11 +62,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin. [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.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)); @@ -76,12 +78,13 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 79a2710d..3c35da51 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ 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.0.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. @@ -23,7 +25,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -38,11 +40,11 @@ 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); @@ -55,11 +57,11 @@ 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); @@ -70,16 +72,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count.CountRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count.CountRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class CountRequestBuilderGetQueryParameters { /// email filter #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -148,3 +151,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 6ce97b16..f9de1f04 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Con /// /// 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.0.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. @@ -23,7 +25,7 @@ public ConfiguredUserStorageCredentialTypesRequestBuilder(Dictionary - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,7 +49,7 @@ public async Task> GetAsync(Action(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 @@ -71,11 +73,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes.ConfiguredUserStorageCredentialTypesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes.ConfiguredUserStorageCredentialTypesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes.ConfiguredUserStorageCredentialTypesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes.ConfiguredUserStorageCredentialTypesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 8b2b9638..4d7e8798 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Consents : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public Consents() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Consents(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Consents(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 79e92cb4..70fc643f 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,22 +14,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Con /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Item.WithClientItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Item.WithClientItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public ConsentsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,21 +48,21 @@ public ConsentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// /// Get consents granted by the user /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.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 @@ -84,11 +86,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.ConsentsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.ConsentsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.ConsentsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.ConsentsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 17872f2b..caf4cbce 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Con /// /// 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.0.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. @@ -23,7 +25,7 @@ public WithClientItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Item.WithClientItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Item.WithClientItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Item.WithClientItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.Item.WithClientItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 fea09130..06f68313 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Cre /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.WithCredentialItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.WithCredentialItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,28 +39,28 @@ public CredentialsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -79,11 +81,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.CredentialsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.CredentialsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.CredentialsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.CredentialsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 042851c6..fa6d18b2 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Cre /// /// 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.0.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. @@ -23,7 +25,7 @@ public WithNewPreviousCredentialItemRequestBuilder(Dictionary pa { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.Item.WithNewPreviousCredentialItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.Item.WithNewPreviousCredentialItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.Item.WithNewPreviousCredentialItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.Item.WithNewPreviousCredentialItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 7bf57f8d..948e644b 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Cre /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.Item.WithNewPreviousCredentialItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.Item.WithNewPreviousCredentialItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public MoveAfterRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public MoveAfterRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } } } +#pragma warning restore CS0618 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 f988198d..cbd50675 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Cre /// /// 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.0.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. @@ -23,7 +25,7 @@ public MoveToFirstRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst.MoveToFirstRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst.MoveToFirstRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst.MoveToFirstRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst.MoveToFirstRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 ee349a54..5155f1db 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Cre /// /// 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.0.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. @@ -23,7 +25,7 @@ public UserLabelRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -73,11 +75,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.UserLabel.UserLabelRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.UserLabel.UserLabelRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.UserLabel.UserLabelRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.UserLabel.UserLabelRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 99af5a87..076f8280 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,25 +16,26 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Cre /// /// 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.0.0")] + public partial class WithCredentialItemRequestBuilder : BaseRequestBuilder { /// The moveAfter property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.MoveAfterRequestBuilder MoveAfter + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.MoveAfterRequestBuilder MoveAfter { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.MoveAfterRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveAfter.MoveAfterRequestBuilder(PathParameters, RequestAdapter); } /// The moveToFirst property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst.MoveToFirstRequestBuilder MoveToFirst + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst.MoveToFirstRequestBuilder MoveToFirst { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst.MoveToFirstRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.MoveToFirst.MoveToFirstRequestBuilder(PathParameters, RequestAdapter); } /// The userLabel property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.UserLabel.UserLabelRequestBuilder UserLabel + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.UserLabel.UserLabelRequestBuilder UserLabel { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.UserLabel.UserLabelRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -41,7 +43,7 @@ public WithCredentialItemRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -86,11 +88,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.WithCredentialItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.WithCredentialItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.WithCredentialItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.Item.WithCredentialItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 e797c758..f6f7c5ba 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Dis /// /// 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.0.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. @@ -23,7 +25,7 @@ public DisableCredentialTypesRequestBuilder(Dictionary pathParam { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -73,11 +75,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.DisableCredentialTypes.DisableCredentialTypesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.DisableCredentialTypes.DisableCredentialTypesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.DisableCredentialTypes.DisableCredentialTypesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.DisableCredentialTypes.DisableCredentialTypesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 3855c420..94de93cc 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Exe /// /// 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.0.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. @@ -23,7 +25,7 @@ public ExecuteActionsEmailRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -39,11 +41,11 @@ 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)); @@ -58,11 +60,11 @@ 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)); @@ -74,16 +76,17 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ExecuteActionsEmail.ExecuteActionsEmailRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ExecuteActionsEmail.ExecuteActionsEmailRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ExecuteActionsEmail.ExecuteActionsEmailRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class ExecuteActionsEmailRequestBuilderPutQueryParameters { /// Client id #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -111,3 +114,4 @@ public class ExecuteActionsEmailRequestBuilderPutQueryParameters } } } +#pragma warning restore CS0618 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 fcaf5c94..219156c9 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Fed /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.Item.WithProviderItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.Item.WithProviderItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public FederatedIdentityRequestBuilder(Dictionary pathParameters { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public FederatedIdentityRequestBuilder(string rawUrl, IRequestAdapter requestAda /// /// Get social logins associated with the user /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -85,11 +87,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.FederatedIdentityRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.FederatedIdentityRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.FederatedIdentityRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.FederatedIdentityRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 c4785af2..71688a11 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Fed /// /// 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.0.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. @@ -23,7 +25,7 @@ public WithProviderItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -104,11 +106,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.Item.WithProviderItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.Item.WithProviderItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.Item.WithProviderItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.Item.WithProviderItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 46ee9ec1..0091ec4f 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountGetResponse : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public CountGetResponse() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountGetResponse(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 dabce9c8..dc563d06 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Gro /// /// 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.0.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. @@ -23,37 +25,37 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.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); @@ -64,14 +66,15 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CountRequestBuilderGetQueryParameters + public partial class CountRequestBuilderGetQueryParameters #pragma warning restore CS1591 { #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -86,3 +89,4 @@ public class CountRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 788bac91..42ef4fc0 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,27 +16,28 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Gro /// /// 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.0.0")] + public partial class GroupsRequestBuilder : BaseRequestBuilder { /// The count property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountRequestBuilder Count + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountRequestBuilder Count { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Count.CountRequestBuilder(PathParameters, RequestAdapter); + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Item.WithGroupItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Item.WithGroupItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -43,38 +45,38 @@ public GroupsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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); @@ -85,14 +87,15 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.GroupsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.GroupsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.GroupsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.GroupsRequestBuilder(rawUrl, RequestAdapter); } + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GroupsRequestBuilderGetQueryParameters + public partial class GroupsRequestBuilderGetQueryParameters #pragma warning restore CS1591 { [QueryParameter("briefRepresentation")] @@ -113,3 +116,4 @@ public class GroupsRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 913e8cc8..5462f34b 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Gro /// /// 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.0.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. @@ -23,7 +25,7 @@ public WithGroupItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -91,11 +93,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Item.WithGroupItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Item.WithGroupItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Item.WithGroupItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.Item.WithGroupItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 3322d9e5..83888374 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,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ImpersonationPostResponse : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ImpersonationPostResponse() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationPostResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationPostResponse(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 04fb653d..f42c3f18 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Imp /// /// 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.0.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. @@ -23,7 +25,7 @@ public ImpersonationRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -33,20 +35,20 @@ public ImpersonationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.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 @@ -70,11 +72,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 c2cb75ce..3c147b6b 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Log /// /// 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.0.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. @@ -23,7 +25,7 @@ public LogoutRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -68,11 +70,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Logout.LogoutRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Logout.LogoutRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Logout.LogoutRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Logout.LogoutRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 3ee2880b..5b6ab4c7 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Off /// /// 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.0.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. @@ -24,7 +26,7 @@ public WithClientUuItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public WithClientUuItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// Get offline sessions associated with the user and client /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.Item.WithClientUuItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.Item.WithClientUuItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.Item.WithClientUuItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.Item.WithClientUuItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 1562c8d6..86818dc6 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Off /// /// 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.Item.WithClientUuItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.Item.WithClientUuItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public OfflineSessionsRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public OfflineSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapt } } } +#pragma warning restore CS0618 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 a466db33..2a6f65ee 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Res /// /// 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.0.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. @@ -24,7 +26,7 @@ public ResetPasswordRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -39,11 +41,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -58,11 +60,11 @@ public async Task PutAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Credenti /// 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -74,11 +76,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPassword.ResetPasswordRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPassword.ResetPasswordRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPassword.ResetPasswordRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPassword.ResetPasswordRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 4b91b849..4a5c1d21 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Res /// /// 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.0.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. @@ -23,7 +25,7 @@ public ResetPasswordEmailRequestBuilder(Dictionary pathParameter { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -39,11 +41,11 @@ 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); @@ -57,11 +59,11 @@ 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); @@ -71,17 +73,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. [Obsolete("")] - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPasswordEmail.ResetPasswordEmailRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPasswordEmail.ResetPasswordEmailRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPasswordEmail.ResetPasswordEmailRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class ResetPasswordEmailRequestBuilderPutQueryParameters { /// client id #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -106,3 +109,4 @@ public class ResetPasswordEmailRequestBuilderPutQueryParameters } } } +#pragma warning restore CS0618 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 c7734af2..ff43dca3 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,9 +1,10 @@ // +#pragma warning disable CS0618 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 @@ -11,22 +12,23 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// 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.0.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 /// client id (not clientId!) - /// A - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -34,7 +36,7 @@ public ClientsRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,3 +45,4 @@ public ClientsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } } } +#pragma warning restore CS0618 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 67be9d36..c92c3c31 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// 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.0.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. @@ -24,7 +26,7 @@ public AvailableRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get available client-level roles that can be mapped to the user or group /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 or group @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 index 87bdba3f..9c01b6f5 100644 --- 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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.Linq; using System.Threading.Tasks; using System.Threading; using System; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\role-mappings\clients\{client-id} /// - public class ClientItemRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ClientItemRequestBuilder : BaseRequestBuilder { /// The available property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder Available + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder Available { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder Composite + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder Composite { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); + 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. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +38,7 @@ public ClientItemRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,11 +53,11 @@ public ClientItemRequestBuilder(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)); @@ -65,21 +67,21 @@ public async Task DeleteAsync(List /// Get client-level role mappings for the user or group, and the app /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 user or group role mapping @@ -89,11 +91,11 @@ public async Task DeleteAsync(ListConfiguration for 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)); @@ -108,11 +110,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -148,11 +150,11 @@ 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)); @@ -164,11 +166,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.ClientItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 239cbfed..e14fd60c 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// 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.0.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. @@ -24,7 +26,7 @@ public CompositeRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get effective client-level role mappings This recurses any composite roles /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -57,11 +59,11 @@ public CompositeRequestBuilder(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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.Item.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class CompositeRequestBuilderGetQueryParameters { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] @@ -89,3 +92,4 @@ public class CompositeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 9075141b..c0f768a2 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// 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.0.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. @@ -24,7 +26,7 @@ public AvailableRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public AvailableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get realm-level roles that can be mapped /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available.AvailableRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available.AvailableRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 a64ef54c..53275edd 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// 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.0.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. @@ -24,7 +26,7 @@ public CompositeRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public CompositeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : /// /// Get effective realm-level role mappings This will recurse all composite roles to get the result. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -57,11 +59,11 @@ public CompositeRequestBuilder(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); @@ -72,16 +74,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class CompositeRequestBuilderGetQueryParameters { /// if false, return roles with their attributes [QueryParameter("briefRepresentation")] @@ -89,3 +92,4 @@ public class CompositeRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 cd6881ea..ab2c8a86 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// 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.0.0")] + public partial class RealmRequestBuilder : BaseRequestBuilder { /// The available property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available.AvailableRequestBuilder Available + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available.AvailableRequestBuilder Available { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Available.AvailableRequestBuilder(PathParameters, RequestAdapter); } /// The composite property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder Composite + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder Composite { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.Composite.CompositeRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public RealmRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,11 +53,11 @@ 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)); @@ -65,21 +67,21 @@ public async Task DeleteAsync(List /// Get realm-level role mappings /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -89,11 +91,11 @@ public async Task DeleteAsync(ListConfiguration for 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)); @@ -108,11 +110,11 @@ public async Task PostAsync(ListConfiguration 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)); @@ -148,11 +150,11 @@ 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)); @@ -164,11 +166,12 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.RealmRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.RealmRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 c92a4503..8c645373 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 @@ -1,12 +1,13 @@ // +#pragma warning disable CS0618 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; @@ -15,20 +16,21 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Rol /// /// 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.0.0")] + public partial class RoleMappingsRequestBuilder : BaseRequestBuilder { /// The clients property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.ClientsRequestBuilder Clients + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.ClientsRequestBuilder Clients { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The realm property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.RealmRequestBuilder Realm + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.RealmRequestBuilder Realm { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.Realm.RealmRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -36,7 +38,7 @@ public RoleMappingsRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -46,20 +48,20 @@ public RoleMappingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -83,11 +85,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.RoleMappingsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.RoleMappingsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.RoleMappingsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.RoleMappingsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 c1c9a748..702933ad 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,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sen /// /// 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.0.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. @@ -23,7 +25,7 @@ public SendVerifyEmailRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -38,11 +40,11 @@ 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); @@ -55,11 +57,11 @@ 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); @@ -69,16 +71,17 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.SendVerifyEmail.SendVerifyEmailRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.SendVerifyEmail.SendVerifyEmailRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.SendVerifyEmail.SendVerifyEmailRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class SendVerifyEmailRequestBuilderPutQueryParameters { /// Client id #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -106,3 +109,4 @@ public class SendVerifyEmailRequestBuilderPutQueryParameters } } } +#pragma warning restore CS0618 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 95a91dc9..5ba2abb6 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Ses /// /// 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.0.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. @@ -24,7 +26,7 @@ public SessionsRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,21 +36,21 @@ public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// /// Get sessions associated with the user /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -72,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions.SessionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions.SessionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions.SessionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions.SessionsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 index c79dd7a8..8cf7ee78 100644 --- 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 @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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.UnmanagedAttributes { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UnmanagedAttributesGetResponse : IAdditionalDataHolder, IParsable + 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. + /// Instantiates a new and sets the default values. /// public UnmanagedAttributesGetResponse() { @@ -22,12 +24,12 @@ public UnmanagedAttributesGetResponse() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesGetResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesGetResponse(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 index 955ea3b4..18d622bb 100644 --- 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 @@ -1,9 +1,10 @@ // +#pragma warning disable CS0618 +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; @@ -12,10 +13,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Unm /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\{user-id}\unmanagedAttributes /// - public class UnmanagedAttributesRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnmanagedAttributesRequestBuilder : 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. @@ -23,27 +25,27 @@ public UnmanagedAttributesRequestBuilder(Dictionary pathParamete { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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 + /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesGetResponse.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); + 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. @@ -64,11 +66,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 bbc6b1cf..3b28d5eb 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 @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials; @@ -16,11 +17,11 @@ 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; @@ -29,90 +30,91 @@ 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.0.0")] + public partial class UserItemRequestBuilder : BaseRequestBuilder { /// The configuredUserStorageCredentialTypes property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes.ConfiguredUserStorageCredentialTypesRequestBuilder ConfiguredUserStorageCredentialTypes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes.ConfiguredUserStorageCredentialTypesRequestBuilder ConfiguredUserStorageCredentialTypes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes.ConfiguredUserStorageCredentialTypesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ConfiguredUserStorageCredentialTypes.ConfiguredUserStorageCredentialTypesRequestBuilder(PathParameters, RequestAdapter); } /// The consents property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.ConsentsRequestBuilder Consents + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.ConsentsRequestBuilder Consents { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.ConsentsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Consents.ConsentsRequestBuilder(PathParameters, RequestAdapter); } /// The credentials property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.CredentialsRequestBuilder Credentials + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.CredentialsRequestBuilder Credentials { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.CredentialsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Credentials.CredentialsRequestBuilder(PathParameters, RequestAdapter); } /// The disableCredentialTypes property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.DisableCredentialTypes.DisableCredentialTypesRequestBuilder DisableCredentialTypes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.DisableCredentialTypes.DisableCredentialTypesRequestBuilder DisableCredentialTypes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.DisableCredentialTypes.DisableCredentialTypesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.DisableCredentialTypes.DisableCredentialTypesRequestBuilder(PathParameters, RequestAdapter); } /// The executeActionsEmail property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ExecuteActionsEmail.ExecuteActionsEmailRequestBuilder ExecuteActionsEmail + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ExecuteActionsEmail.ExecuteActionsEmailRequestBuilder ExecuteActionsEmail { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ExecuteActionsEmail.ExecuteActionsEmailRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ExecuteActionsEmail.ExecuteActionsEmailRequestBuilder(PathParameters, RequestAdapter); } /// The federatedIdentity property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.FederatedIdentityRequestBuilder FederatedIdentity + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.FederatedIdentityRequestBuilder FederatedIdentity { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.FederatedIdentityRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.FederatedIdentity.FederatedIdentityRequestBuilder(PathParameters, RequestAdapter); } /// The groups property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.GroupsRequestBuilder Groups + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.GroupsRequestBuilder Groups { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); } /// The impersonation property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationRequestBuilder Impersonation + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationRequestBuilder Impersonation { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Impersonation.ImpersonationRequestBuilder(PathParameters, RequestAdapter); } /// The logout property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Logout.LogoutRequestBuilder Logout + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Logout.LogoutRequestBuilder Logout { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Logout.LogoutRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Logout.LogoutRequestBuilder(PathParameters, RequestAdapter); } /// The offlineSessions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.OfflineSessionsRequestBuilder OfflineSessions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.OfflineSessionsRequestBuilder OfflineSessions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.OfflineSessionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.OfflineSessions.OfflineSessionsRequestBuilder(PathParameters, RequestAdapter); } /// The resetPassword property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPassword.ResetPasswordRequestBuilder ResetPassword + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPassword.ResetPasswordRequestBuilder ResetPassword { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPassword.ResetPasswordRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPassword.ResetPasswordRequestBuilder(PathParameters, RequestAdapter); } /// The resetPasswordEmail property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPasswordEmail.ResetPasswordEmailRequestBuilder ResetPasswordEmail + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPasswordEmail.ResetPasswordEmailRequestBuilder ResetPasswordEmail { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPasswordEmail.ResetPasswordEmailRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.ResetPasswordEmail.ResetPasswordEmailRequestBuilder(PathParameters, RequestAdapter); } /// The roleMappings property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.RoleMappingsRequestBuilder RoleMappings + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.RoleMappingsRequestBuilder RoleMappings { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.RoleMappingsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.RoleMappings.RoleMappingsRequestBuilder(PathParameters, RequestAdapter); } /// The sendVerifyEmail property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.SendVerifyEmail.SendVerifyEmailRequestBuilder SendVerifyEmail + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.SendVerifyEmail.SendVerifyEmailRequestBuilder SendVerifyEmail { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.SendVerifyEmail.SendVerifyEmailRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.SendVerifyEmail.SendVerifyEmailRequestBuilder(PathParameters, RequestAdapter); } /// The sessions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions.SessionsRequestBuilder Sessions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions.SessionsRequestBuilder Sessions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions.SessionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.Sessions.SessionsRequestBuilder(PathParameters, RequestAdapter); } /// The unmanagedAttributes property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesRequestBuilder UnmanagedAttributes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesRequestBuilder UnmanagedAttributes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UnmanagedAttributes.UnmanagedAttributesRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -120,7 +122,7 @@ public UserItemRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -148,20 +150,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -172,11 +174,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -208,11 +210,11 @@ 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); @@ -228,11 +230,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -244,16 +246,17 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UserItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UserItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UserItemRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class UserItemRequestBuilderGetQueryParameters { /// Indicates if the user profile metadata should be added to the response [QueryParameter("userProfileMetadata")] @@ -261,3 +264,4 @@ public class UserItemRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 efb56531..4b1dec26 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile. /// /// Builds and executes requests for operations under \admin\realms\{realm}\users\profile\metadata /// - public class MetadataRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -24,7 +26,7 @@ public MetadataRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -34,20 +36,20 @@ public MetadataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -71,11 +73,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. - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.Metadata.MetadataRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.Metadata.MetadataRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.Metadata.MetadataRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.Metadata.MetadataRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 06f76de1..047ed019 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,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,15 +15,16 @@ 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.0.0")] + public partial class ProfileRequestBuilder : BaseRequestBuilder { /// The metadata property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.Metadata.MetadataRequestBuilder Metadata + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.Metadata.MetadataRequestBuilder Metadata { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.Metadata.MetadataRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -30,7 +32,7 @@ public ProfileRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -40,40 +42,40 @@ public ProfileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba /// /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -102,11 +104,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -119,11 +121,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.ProfileRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.ProfileRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.ProfileRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.ProfileRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 b1f31f42..f49455e6 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 @@ -1,13 +1,14 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count; 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; @@ -16,32 +17,33 @@ 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.0.0")] + public partial class UsersRequestBuilder : BaseRequestBuilder { /// The count property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count.CountRequestBuilder Count + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count.CountRequestBuilder Count { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count.CountRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// The profile property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.ProfileRequestBuilder Profile + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.ProfileRequestBuilder Profile { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Profile.ProfileRequestBuilder(PathParameters, RequestAdapter); + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UserItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.Item.UserItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -49,7 +51,7 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -59,21 +61,21 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Get users Returns a stream of users, filtered according to query parameters. /// - /// A List<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -84,11 +86,11 @@ 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 PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -102,11 +104,11 @@ public async Task PostAsync(Keycloak.AuthServices.Sdk.Kiota.Admin.Models /// 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); @@ -122,11 +124,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -138,16 +140,17 @@ public RequestInformation ToPostRequestInformation(Keycloak.AuthServices.Sdk.Kio /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.UsersRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.UsersRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.UsersRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class UsersRequestBuilderGetQueryParameters { /// Boolean which defines whether brief representations are returned (default: false) [QueryParameter("briefRepresentation")] @@ -250,3 +253,4 @@ public class UsersRequestBuilderGetQueryParameters } } } +#pragma warning restore CS0618 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 05624d18..2746d1ae 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,10 +1,11 @@ // +#pragma warning disable CS0618 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; @@ -13,10 +14,11 @@ namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagemen /// /// Builds and executes requests for operations under \admin\realms\{realm}\users-management-permissions /// - public class UsersManagementPermissionsRequestBuilder : BaseRequestBuilder + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.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. @@ -24,44 +26,44 @@ public UsersManagementPermissionsRequestBuilder(Dictionary pathP { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new 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) { } - /// 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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -84,11 +86,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -101,11 +103,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagementPermissions.UsersManagementPermissionsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagementPermissions.UsersManagementPermissionsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagementPermissions.UsersManagementPermissionsRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagementPermissions.UsersManagementPermissionsRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 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 8029ddd3..21415822 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/WithRealmItemRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/Item/WithRealmItemRequestBuilder.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection; using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication; @@ -34,11 +35,11 @@ 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; @@ -47,180 +48,181 @@ 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.0.0")] + public partial class WithRealmItemRequestBuilder : BaseRequestBuilder { /// The adminEvents property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents.AdminEventsRequestBuilder AdminEvents + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents.AdminEventsRequestBuilder AdminEvents { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents.AdminEventsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AdminEvents.AdminEventsRequestBuilder(PathParameters, RequestAdapter); } /// The attackDetection property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.AttackDetectionRequestBuilder AttackDetection + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.AttackDetectionRequestBuilder AttackDetection { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.AttackDetectionRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.AttackDetection.AttackDetectionRequestBuilder(PathParameters, RequestAdapter); } /// The authentication property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticationRequestBuilder Authentication + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticationRequestBuilder Authentication { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticationRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Authentication.AuthenticationRequestBuilder(PathParameters, RequestAdapter); } /// The clientDescriptionConverter property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescriptionConverter.ClientDescriptionConverterRequestBuilder ClientDescriptionConverter + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescriptionConverter.ClientDescriptionConverterRequestBuilder ClientDescriptionConverter { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescriptionConverter.ClientDescriptionConverterRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientDescriptionConverter.ClientDescriptionConverterRequestBuilder(PathParameters, RequestAdapter); } /// The clientPolicies property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.ClientPoliciesRequestBuilder ClientPolicies + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.ClientPoliciesRequestBuilder ClientPolicies { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.ClientPoliciesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientPolicies.ClientPoliciesRequestBuilder(PathParameters, RequestAdapter); } /// The clientRegistrationPolicy property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.ClientRegistrationPolicyRequestBuilder ClientRegistrationPolicy + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.ClientRegistrationPolicyRequestBuilder ClientRegistrationPolicy { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.ClientRegistrationPolicyRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientRegistrationPolicy.ClientRegistrationPolicyRequestBuilder(PathParameters, RequestAdapter); } /// The clients property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.ClientsRequestBuilder Clients + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.ClientsRequestBuilder Clients { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Clients.ClientsRequestBuilder(PathParameters, RequestAdapter); } /// The clientScopes property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.ClientScopesRequestBuilder ClientScopes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.ClientScopesRequestBuilder ClientScopes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.ClientScopesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientScopes.ClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The clientSessionStats property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStatsRequestBuilder ClientSessionStats + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStatsRequestBuilder ClientSessionStats { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStatsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientSessionStats.ClientSessionStatsRequestBuilder(PathParameters, RequestAdapter); } /// The clientsInitialAccess property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.ClientsInitialAccessRequestBuilder ClientsInitialAccess + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.ClientsInitialAccessRequestBuilder ClientsInitialAccess { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.ClientsInitialAccessRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientsInitialAccess.ClientsInitialAccessRequestBuilder(PathParameters, RequestAdapter); } /// The clientTemplates property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.ClientTemplatesRequestBuilder ClientTemplates + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.ClientTemplatesRequestBuilder ClientTemplates { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.ClientTemplatesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTemplates.ClientTemplatesRequestBuilder(PathParameters, RequestAdapter); } /// The clientTypes property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes.ClientTypesRequestBuilder ClientTypes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes.ClientTypesRequestBuilder ClientTypes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes.ClientTypesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.ClientTypes.ClientTypesRequestBuilder(PathParameters, RequestAdapter); } /// The components property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.ComponentsRequestBuilder Components + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.ComponentsRequestBuilder Components { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.ComponentsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Components.ComponentsRequestBuilder(PathParameters, RequestAdapter); } /// The credentialRegistrators property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegistrators.CredentialRegistratorsRequestBuilder CredentialRegistrators + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegistrators.CredentialRegistratorsRequestBuilder CredentialRegistrators { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegistrators.CredentialRegistratorsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.CredentialRegistrators.CredentialRegistratorsRequestBuilder(PathParameters, RequestAdapter); } /// The defaultDefaultClientScopes property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.DefaultDefaultClientScopesRequestBuilder DefaultDefaultClientScopes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.DefaultDefaultClientScopesRequestBuilder DefaultDefaultClientScopes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.DefaultDefaultClientScopesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultDefaultClientScopes.DefaultDefaultClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The defaultGroups property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.DefaultGroupsRequestBuilder DefaultGroups + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.DefaultGroupsRequestBuilder DefaultGroups { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.DefaultGroupsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultGroups.DefaultGroupsRequestBuilder(PathParameters, RequestAdapter); } /// The defaultOptionalClientScopes property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.DefaultOptionalClientScopesRequestBuilder DefaultOptionalClientScopes + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.DefaultOptionalClientScopesRequestBuilder DefaultOptionalClientScopes { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.DefaultOptionalClientScopesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.DefaultOptionalClientScopes.DefaultOptionalClientScopesRequestBuilder(PathParameters, RequestAdapter); } /// The events property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.EventsRequestBuilder Events + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.EventsRequestBuilder Events { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.EventsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Events.EventsRequestBuilder(PathParameters, RequestAdapter); } /// The groupByPath property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.GroupByPathRequestBuilder GroupByPath + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.GroupByPathRequestBuilder GroupByPath { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.GroupByPathRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.GroupByPath.GroupByPathRequestBuilder(PathParameters, RequestAdapter); } /// The groups property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.GroupsRequestBuilder Groups + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.GroupsRequestBuilder Groups { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); } /// The identityProvider property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.IdentityProviderRequestBuilder IdentityProvider + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.IdentityProviderRequestBuilder IdentityProvider { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.IdentityProviderRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.IdentityProvider.IdentityProviderRequestBuilder(PathParameters, RequestAdapter); } /// The keys property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys.KeysRequestBuilder Keys + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys.KeysRequestBuilder Keys { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys.KeysRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Keys.KeysRequestBuilder(PathParameters, RequestAdapter); } /// The localization property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.LocalizationRequestBuilder Localization + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.LocalizationRequestBuilder Localization { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.LocalizationRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Localization.LocalizationRequestBuilder(PathParameters, RequestAdapter); } /// The logoutAll property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll.LogoutAllRequestBuilder LogoutAll + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll.LogoutAllRequestBuilder LogoutAll { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll.LogoutAllRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.LogoutAll.LogoutAllRequestBuilder(PathParameters, RequestAdapter); } /// The organizations property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.OrganizationsRequestBuilder Organizations + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.OrganizationsRequestBuilder Organizations { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.OrganizationsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Organizations.OrganizationsRequestBuilder(PathParameters, RequestAdapter); } /// The partialExport property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport.PartialExportRequestBuilder PartialExport + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport.PartialExportRequestBuilder PartialExport { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport.PartialExportRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialExport.PartialExportRequestBuilder(PathParameters, RequestAdapter); } /// The partialImport property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport.PartialImportRequestBuilder PartialImport + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport.PartialImportRequestBuilder PartialImport { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport.PartialImportRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PartialImport.PartialImportRequestBuilder(PathParameters, RequestAdapter); } /// The pushRevocation property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation.PushRevocationRequestBuilder PushRevocation + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation.PushRevocationRequestBuilder PushRevocation { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation.PushRevocationRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.PushRevocation.PushRevocationRequestBuilder(PathParameters, RequestAdapter); } /// The roles property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.RolesRequestBuilder Roles + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.RolesRequestBuilder Roles { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); } /// The rolesById property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.RolesByIdRequestBuilder RolesById + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.RolesByIdRequestBuilder RolesById { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.RolesByIdRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.RolesById.RolesByIdRequestBuilder(PathParameters, RequestAdapter); } /// The sessions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.SessionsRequestBuilder Sessions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.SessionsRequestBuilder Sessions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.SessionsRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Sessions.SessionsRequestBuilder(PathParameters, RequestAdapter); } /// The testSMTPConnection property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionRequestBuilder TestSMTPConnection + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionRequestBuilder TestSMTPConnection { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.TestSMTPConnection.TestSMTPConnectionRequestBuilder(PathParameters, RequestAdapter); } /// The users property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.UsersRequestBuilder Users + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.UsersRequestBuilder Users { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.UsersRequestBuilder(PathParameters, RequestAdapter); + get => new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.Users.UsersRequestBuilder(PathParameters, RequestAdapter); } /// The usersManagementPermissions property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagementPermissions.UsersManagementPermissionsRequestBuilder UsersManagementPermissions + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagementPermissions.UsersManagementPermissionsRequestBuilder UsersManagementPermissions { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.UsersManagementPermissions.UsersManagementPermissionsRequestBuilder(PathParameters, RequestAdapter); + 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. @@ -228,7 +230,7 @@ public WithRealmItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -255,20 +257,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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -279,11 +281,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -335,11 +337,11 @@ 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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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)); @@ -351,11 +353,12 @@ public RequestInformation ToPutRequestInformation(Keycloak.AuthServices.Sdk.Kiot /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.WithRealmItemRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.WithRealmItemRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.WithRealmItemRequestBuilder(rawUrl, RequestAdapter); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.WithRealmItemRequestBuilder(rawUrl, RequestAdapter); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/RealmsRequestBuilder.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/RealmsRequestBuilder.cs index ed08c438..2177774b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/RealmsRequestBuilder.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Admin/Realms/RealmsRequestBuilder.cs @@ -1,11 +1,12 @@ // +#pragma warning disable CS0618 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; @@ -14,22 +15,23 @@ 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.0.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.WithRealmItemRequestBuilder this[string position] + /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.Item.WithRealmItemRequestBuilder(urlTplParams, RequestAdapter); + 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. @@ -37,7 +39,7 @@ public RealmsRequestBuilder(Dictionary pathParameters, IRequestA { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -47,21 +49,21 @@ public RealmsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas /// /// 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<Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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, Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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. @@ -89,11 +91,11 @@ 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); @@ -125,19 +127,21 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.RealmsRequestBuilder WithUrl(string rawUrl) + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.RealmsRequestBuilder WithUrl(string rawUrl) { - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.Realms.RealmsRequestBuilder(rawUrl, RequestAdapter); + 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.0.0")] + public partial class RealmsRequestBuilderGetQueryParameters { [QueryParameter("briefRepresentation")] public bool? BriefRepresentation { get; set; } } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/KeycloakAdminApiClient.cs b/src/Keycloak.AuthServices.Sdk.Kiota/KeycloakAdminApiClient.cs index 160c0506..c23e3d49 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/KeycloakAdminApiClient.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/KeycloakAdminApiClient.cs @@ -1,4 +1,5 @@ // +#pragma warning disable CS0618 using Keycloak.AuthServices.Sdk.Kiota.Admin.Admin; using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions; @@ -8,7 +9,6 @@ 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 @@ -16,15 +16,16 @@ 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.0.0")] + public partial class KeycloakAdminApiClient : BaseRequestBuilder { /// The admin property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.AdminRequestBuilder Admin + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.AdminRequestBuilder Admin { - get => new Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.AdminRequestBuilder(PathParameters, RequestAdapter); + 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()) @@ -39,3 +40,4 @@ public Keycloak.AuthServices.Sdk.Kiota.Admin.Admin.AdminRequestBuilder Admin } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AbstractPolicyRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AbstractPolicyRepresentation.cs index d48fff56..b6f013ba 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AbstractPolicyRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AbstractPolicyRepresentation.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AbstractPolicyRepresentation : IAdditionalDataHolder, IParsable + 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 @@ -31,7 +33,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 @@ -67,10 +69,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 @@ -83,10 +85,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 @@ -97,7 +99,7 @@ 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() { @@ -106,12 +108,12 @@ public AbstractPolicyRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AbstractPolicyRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AbstractPolicyRepresentation(); } /// /// The deserialization information for the current model @@ -121,17 +123,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "decisionStrategy", n => { DecisionStrategy = n.GetEnumValue(); } }, + { "decisionStrategy", n => { DecisionStrategy = n.GetEnumValue(); } }, { "description", n => { Description = n.GetStringValue(); } }, { "id", n => { Id = n.GetStringValue(); } }, - { "logic", n => { Logic = n.GetEnumValue(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "scopesData", n => { ScopesData = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, }; } @@ -142,19 +144,20 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Access.cs index 06110319..b3eb8ba4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Access.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Access : IAdditionalDataHolder, IParsable + 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. @@ -23,7 +25,7 @@ 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() { @@ -32,12 +34,12 @@ public Access() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Access(); } /// /// The deserialization information for the current model @@ -47,7 +49,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "verify_caller", n => { VerifyCaller = n.GetBoolValue(); } }, }; } @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken.cs index 5cfd5134..147fbfcc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AccessToken : IAdditionalDataHolder, IParsable + public partial class AccessToken : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The acr property @@ -23,10 +25,10 @@ public class AccessToken : IAdditionalDataHolder, IParsable /// The address property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet? Address { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet? Address { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -47,10 +49,10 @@ public class AccessToken : IAdditionalDataHolder, IParsable /// 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 auth_time property public long? AuthTime { get; set; } @@ -89,10 +91,10 @@ public class AccessToken : IAdditionalDataHolder, IParsable /// The cnf property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Confirmation? Cnf { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Confirmation? Cnf { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -193,10 +195,10 @@ public class AccessToken : IAdditionalDataHolder, IParsable /// The otherClaims property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_otherClaims? OtherClaims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_otherClaims? OtherClaims { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -235,18 +237,18 @@ public class AccessToken : IAdditionalDataHolder, IParsable /// The realm_access property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Access? RealmAccess { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Access? RealmAccess { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_resource_access? ResourceAccess { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_resource_access? ResourceAccess { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -315,7 +317,7 @@ 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() { @@ -324,12 +326,12 @@ public AccessToken() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken(); } /// /// The deserialization information for the current model @@ -340,16 +342,16 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "acr", n => { Acr = n.GetStringValue(); } }, - { "address", n => { Address = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet.CreateFromDiscriminatorValue); } }, - { "allowed-origins", n => { AllowedOrigins = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Authorization.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Confirmation.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -365,19 +367,19 @@ public virtual IDictionary> GetFieldDeserializers() { "nbf", n => { Nbf = n.GetLongValue(); } }, { "nickname", n => { Nickname = n.GetStringValue(); } }, { "nonce", n => { Nonce = n.GetStringValue(); } }, - { "otherClaims", n => { OtherClaims = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_otherClaims.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Access.CreateFromDiscriminatorValue); } }, - { "resource_access", n => { ResourceAccess = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_resource_access.CreateFromDiscriminatorValue); } }, + { "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()?.ToList(); } }, + { "trusted-certs", n => { TrustedCerts = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "typ", n => { Typ = n.GetStringValue(); } }, { "updated_at", n => { UpdatedAt = n.GetLongValue(); } }, { "website", n => { Website = n.GetStringValue(); } }, @@ -392,16 +394,16 @@ 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.WriteObjectValue("authorization", Authorization); + 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); @@ -417,14 +419,14 @@ 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("s_hash", SHash); writer.WriteStringValue("sid", Sid); @@ -438,3 +440,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_otherClaims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_otherClaims.cs index 527a6095..9fe3e444 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_otherClaims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_otherClaims.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AccessToken_otherClaims : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public AccessToken_otherClaims() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_otherClaims(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_otherClaims(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 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 b769d767..686bb774 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_resource_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AccessToken_resource_access.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AccessToken_resource_access : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public AccessToken_resource_access() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_resource_access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken_resource_access(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AddressClaimSet.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AddressClaimSet.cs index 2282eba2..0337dda3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AddressClaimSet.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AddressClaimSet.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AddressClaimSet : IAdditionalDataHolder, IParsable + 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. @@ -61,7 +63,7 @@ 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() { @@ -70,12 +72,12 @@ public AddressClaimSet() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet(); } /// /// The deserialization information for the current model @@ -110,3 +112,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AdminEventRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AdminEventRepresentation.cs index 2c654de5..4269e39b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AdminEventRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AdminEventRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AdminEventRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class AdminEventRepresentation : IAdditionalDataHolder, IParsable /// The authDetails property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthDetailsRepresentation? AuthDetails { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthDetailsRepresentation? AuthDetails { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -71,7 +73,7 @@ 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() { @@ -80,12 +82,12 @@ public AdminEventRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AdminEventRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AdminEventRepresentation(); } /// /// The deserialization information for the current model @@ -95,7 +97,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "authDetails", n => { AuthDetails = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthDetailsRepresentation.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -112,7 +114,7 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -124,3 +126,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation.cs index e3faf89b..a286797d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation.cs @@ -1,23 +1,25 @@ // +#pragma warning disable CS0618 +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 { [Obsolete("")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplicationRepresentation : IAdditionalDataHolder, IParsable + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_access? Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_access? Access { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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; } @@ -34,28 +36,28 @@ public class ApplicationRepresentation : IAdditionalDataHolder, IParsable /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_authenticationFlowBindingOverrides? AuthenticationFlowBindingOverrides { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_authenticationFlowBindingOverrides? AuthenticationFlowBindingOverrides { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation? AuthorizationSettings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation? AuthorizationSettings { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -71,10 +73,10 @@ public class ApplicationRepresentation : IAdditionalDataHolder, IParsable [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_claims? Claims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_claims? Claims { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -188,10 +190,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; } @@ -206,10 +208,10 @@ public class ApplicationRepresentation : IAdditionalDataHolder, IParsable /// The registeredNodes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_registeredNodes? RegisteredNodes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_registeredNodes? RegisteredNodes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -267,7 +269,7 @@ 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() { @@ -276,12 +278,12 @@ public ApplicationRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation(); } /// /// The deserialization information for the current model @@ -291,22 +293,22 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "access", n => { Access = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_access.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_attributes.CreateFromDiscriminatorValue); } }, - { "authenticationFlowBindingOverrides", n => { AuthenticationFlowBindingOverrides = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_authenticationFlowBindingOverrides.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_claims.CreateFromDiscriminatorValue); } }, + { "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()?.ToList(); } }, - { "defaultRoles", n => { DefaultRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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(); } }, @@ -318,13 +320,13 @@ public virtual IDictionary> GetFieldDeserializers() { "name", n => { Name = n.GetStringValue(); } }, { "nodeReRegistrationTimeout", n => { NodeReRegistrationTimeout = n.GetIntValue(); } }, { "notBefore", n => { NotBefore = n.GetIntValue(); } }, - { "optionalClientScopes", n => { OptionalClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "optionalClientScopes", n => { OptionalClientScopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "origin", n => { Origin = n.GetStringValue(); } }, { "protocol", n => { Protocol = n.GetStringValue(); } }, - { "protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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()?.ToList(); } }, - { "registeredNodes", n => { RegisteredNodes = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_registeredNodes.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -335,7 +337,7 @@ public virtual IDictionary> GetFieldDeserializers() { "useTemplateConfig", n => { UseTemplateConfig = n.GetBoolValue(); } }, { "useTemplateMappers", n => { UseTemplateMappers = n.GetBoolValue(); } }, { "useTemplateScope", n => { UseTemplateScope = n.GetBoolValue(); } }, - { "webOrigins", n => { WebOrigins = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "webOrigins", n => { WebOrigins = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -345,16 +347,16 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -375,10 +377,10 @@ 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); @@ -394,3 +396,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_access.cs index 397f036e..f04b79f9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_access.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplicationRepresentation_access : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ApplicationRepresentation_access() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_access(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_attributes.cs index a3db53c9..41093064 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_attributes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplicationRepresentation_attributes : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ApplicationRepresentation_attributes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_attributes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_authenticationFlowBindingOverrides.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_authenticationFlowBindingOverrides.cs index 046fc96e..35b48a97 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_authenticationFlowBindingOverrides.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_authenticationFlowBindingOverrides.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplicationRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ApplicationRepresentation_authenticationFlowBindingOverrides() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_authenticationFlowBindingOverrides(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_authenticationFlowBindingOverrides(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_claims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_claims.cs index dd272e16..ddc48087 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_claims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_claims.cs @@ -1,25 +1,27 @@ // +#pragma warning disable CS0618 +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 { [Obsolete("")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplicationRepresentation_claims : Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClaimRepresentation, IParsable + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_claims(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_claims(); } /// /// The deserialization information for the current model @@ -42,3 +44,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_registeredNodes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_registeredNodes.cs index 398b75fb..2b65700f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_registeredNodes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ApplicationRepresentation_registeredNodes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ApplicationRepresentation_registeredNodes : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ApplicationRepresentation_registeredNodes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_registeredNodes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation_registeredNodes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthDetailsRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthDetailsRepresentation.cs index 1c3ecfa1..c3080380 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthDetailsRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthDetailsRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AuthDetailsRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -45,7 +47,7 @@ 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() { @@ -54,12 +56,12 @@ public AuthDetailsRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthDetailsRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthDetailsRepresentation(); } /// /// The deserialization information for the current model @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionExportRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionExportRepresentation.cs index d270ae04..e6d955cd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionExportRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionExportRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AuthenticationExecutionExportRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -54,7 +56,7 @@ 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() { @@ -63,12 +65,12 @@ public AuthenticationExecutionExportRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionExportRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionExportRepresentation(); } /// /// The deserialization information for the current model @@ -107,3 +109,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionInfoRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionInfoRepresentation.cs index 9b79ce52..6422003e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionInfoRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionInfoRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AuthenticationExecutionInfoRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -95,7 +97,7 @@ 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() { @@ -104,12 +106,12 @@ public AuthenticationExecutionInfoRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionInfoRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionInfoRepresentation(); } /// /// The deserialization information for the current model @@ -132,7 +134,7 @@ public virtual IDictionary> GetFieldDeserializers() { "priority", n => { Priority = n.GetIntValue(); } }, { "providerId", n => { ProviderId = n.GetStringValue(); } }, { "requirement", n => { Requirement = n.GetStringValue(); } }, - { "requirementChoices", n => { RequirementChoices = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "requirementChoices", n => { RequirementChoices = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -160,3 +162,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionRepresentation.cs index 31c94419..af1532ea 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationExecutionRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AuthenticationExecutionRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -68,7 +70,7 @@ 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() { @@ -77,12 +79,12 @@ public AuthenticationExecutionRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionRepresentation(); } /// /// The deserialization information for the current model @@ -123,3 +125,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationFlowRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationFlowRepresentation.cs index 4a397ec6..6120c493 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationFlowRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticationFlowRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AuthenticationFlowRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -23,10 +25,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; } @@ -57,7 +59,7 @@ 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() { @@ -66,12 +68,12 @@ public AuthenticationFlowRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation(); } /// /// The deserialization information for the current model @@ -82,7 +84,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "alias", n => { Alias = n.GetStringValue(); } }, - { "authenticationExecutions", n => { AuthenticationExecutions = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationExecutionExportRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, @@ -98,7 +100,7 @@ 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); @@ -108,3 +110,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigInfoRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigInfoRepresentation.cs index 08905341..70021715 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigInfoRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigInfoRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AuthenticatorConfigInfoRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -31,10 +33,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 @@ -45,7 +47,7 @@ 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() { @@ -54,12 +56,12 @@ public AuthenticatorConfigInfoRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigInfoRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigInfoRepresentation(); } /// /// The deserialization information for the current model @@ -71,7 +73,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "helpText", n => { HelpText = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "properties", n => { Properties = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ConfigPropertyRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "properties", n => { Properties = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ConfigPropertyRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, { "providerId", n => { ProviderId = n.GetStringValue(); } }, }; } @@ -84,9 +86,10 @@ 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation.cs index 569ad989..3f877247 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AuthenticatorConfigRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -23,10 +25,10 @@ public class AuthenticatorConfigRepresentation : IAdditionalDataHolder, IParsabl /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation_config? Config { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -37,7 +39,7 @@ 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() { @@ -46,12 +48,12 @@ public AuthenticatorConfigRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation(); } /// /// The deserialization information for the current model @@ -62,7 +64,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "alias", n => { Alias = n.GetStringValue(); } }, - { "config", n => { Config = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation_config.CreateFromDiscriminatorValue); } }, + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation_config.CreateFromDiscriminatorValue); } }, { "id", n => { Id = n.GetStringValue(); } }, }; } @@ -74,9 +76,10 @@ 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation_config.cs index f00a69fb..13329d08 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/AuthenticatorConfigRepresentation_config.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class AuthenticatorConfigRepresentation_config : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public AuthenticatorConfigRepresentation_config() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation_config(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Authorization.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Authorization.cs index 9f3be7fc..4b07809c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Authorization.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Authorization.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Authorization : IAdditionalDataHolder, IParsable + 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. @@ -15,13 +17,13 @@ public class Authorization : IAdditionalDataHolder, IParsable /// 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() { @@ -30,12 +32,12 @@ public Authorization() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Authorization(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Authorization(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "permissions", n => { Permissions = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission.CreateFromDiscriminatorValue)?.ToList(); } }, + { "permissions", n => { Permissions = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -55,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("permissions", Permissions); + writer.WriteCollectionOfObjectValues("permissions", Permissions); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/BruteForceStrategy.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/BruteForceStrategy.cs index 5d07006d..f8dd374e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/BruteForceStrategy.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/BruteForceStrategy.cs @@ -3,6 +3,7 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 public enum BruteForceStrategy #pragma warning restore CS1591 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CertificateRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CertificateRepresentation.cs index 6b61465b..3c6a7218 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CertificateRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CertificateRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CertificateRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -45,7 +47,7 @@ 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() { @@ -54,12 +56,12 @@ public CertificateRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CertificateRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CertificateRepresentation(); } /// /// The deserialization information for the current model @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClaimRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClaimRepresentation.cs index af4ee69d..b93f23f9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClaimRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClaimRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClaimRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -33,7 +35,7 @@ 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() { @@ -42,12 +44,12 @@ public ClaimRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClaimRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClaimRepresentation(); } /// /// The deserialization information for the current model @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessCreatePresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessCreatePresentation.cs index 9bab309d..b12a4db9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessCreatePresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessCreatePresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientInitialAccessCreatePresentation : IAdditionalDataHolder, IParsable + 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. @@ -17,7 +19,7 @@ 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() { @@ -26,12 +28,12 @@ public ClientInitialAccessCreatePresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessCreatePresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessCreatePresentation(); } /// /// The deserialization information for the current model @@ -58,3 +60,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessPresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessPresentation.cs index 4db7a38e..db77bd02 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessPresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientInitialAccessPresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientInitialAccessPresentation : IAdditionalDataHolder, IParsable + 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. @@ -37,7 +39,7 @@ 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() { @@ -46,12 +48,12 @@ public ClientInitialAccessPresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessPresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientInitialAccessPresentation(); } /// /// The deserialization information for the current model @@ -86,3 +88,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPoliciesRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPoliciesRepresentation.cs index 8c2a5ead..cb9fbc65 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPoliciesRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPoliciesRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientPoliciesRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,21 +17,21 @@ public class ClientPoliciesRepresentation : IAdditionalDataHolder, IParsable /// The globalPolicies property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? GlobalPolicies { get; set; } + public List? GlobalPolicies { get; set; } #nullable restore #else - public List GlobalPolicies { get; set; } + 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() { @@ -38,12 +40,12 @@ public ClientPoliciesRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "globalPolicies", n => { GlobalPolicies = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "policies", n => { Policies = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, }; } /// @@ -64,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("globalPolicies", GlobalPolicies); - writer.WriteCollectionOfObjectValues("policies", Policies); + writer.WriteCollectionOfObjectValues("globalPolicies", GlobalPolicies); + writer.WriteCollectionOfObjectValues("policies", Policies); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyConditionRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyConditionRepresentation.cs index cc55034f..d8b854c1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyConditionRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyConditionRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientPolicyConditionRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -29,7 +31,7 @@ public class ClientPolicyConditionRepresentation : IAdditionalDataHolder, IParsa public UntypedNode Configuration { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ClientPolicyConditionRepresentation() { @@ -38,12 +40,12 @@ public ClientPolicyConditionRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyConditionRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyConditionRepresentation(); } /// /// The deserialization information for the current model @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyExecutorRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyExecutorRepresentation.cs index 34121337..56cb0b44 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyExecutorRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyExecutorRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientPolicyExecutorRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -29,7 +31,7 @@ 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() { @@ -38,12 +40,12 @@ public ClientPolicyExecutorRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyExecutorRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyExecutorRepresentation(); } /// /// The deserialization information for the current model @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyRepresentation.cs index f15d5dc1..344d8c71 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientPolicyRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientPolicyRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class ClientPolicyRepresentation : IAdditionalDataHolder, IParsable /// 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 @@ -47,7 +49,7 @@ 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() { @@ -56,12 +58,12 @@ public ClientPolicyRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyRepresentation(); } /// /// The deserialization information for the current model @@ -71,11 +73,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "conditions", n => { Conditions = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyConditionRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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()?.ToList(); } }, + { "profiles", n => { Profiles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -85,7 +87,7 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -94,3 +96,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfileRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfileRepresentation.cs index 35904fc1..f62d159d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfileRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfileRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientProfileRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -23,10 +25,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 @@ -37,7 +39,7 @@ 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() { @@ -46,12 +48,12 @@ public ClientProfileRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfileRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfileRepresentation(); } /// /// The deserialization information for the current model @@ -62,7 +64,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "description", n => { Description = n.GetStringValue(); } }, - { "executors", n => { Executors = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyExecutorRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "executors", n => { Executors = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPolicyExecutorRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, }; } @@ -74,9 +76,10 @@ 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfilesRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfilesRepresentation.cs index 7cb68688..32570824 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfilesRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientProfilesRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientProfilesRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,21 +17,21 @@ public class ClientProfilesRepresentation : IAdditionalDataHolder, IParsable /// 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() { @@ -38,12 +40,12 @@ public ClientProfilesRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "globalProfiles", n => { GlobalProfiles = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfileRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "profiles", n => { Profiles = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfileRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, }; } /// @@ -64,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation.cs index 17a6ebc7..022b822b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation.cs @@ -1,22 +1,24 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientRepresentation : IAdditionalDataHolder, IParsable + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_access? Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_access? Access { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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; } @@ -33,28 +35,28 @@ public class ClientRepresentation : IAdditionalDataHolder, IParsable /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_authenticationFlowBindingOverrides? AuthenticationFlowBindingOverrides { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_authenticationFlowBindingOverrides? AuthenticationFlowBindingOverrides { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation? AuthorizationSettings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation? AuthorizationSettings { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -178,10 +180,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; } @@ -196,10 +198,10 @@ public class ClientRepresentation : IAdditionalDataHolder, IParsable /// The registeredNodes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_registeredNodes? RegisteredNodes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_registeredNodes? RegisteredNodes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -257,7 +259,7 @@ 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() { @@ -266,12 +268,12 @@ public ClientRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation(); } /// /// The deserialization information for the current model @@ -281,21 +283,21 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "access", n => { Access = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_access.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_attributes.CreateFromDiscriminatorValue); } }, - { "authenticationFlowBindingOverrides", n => { AuthenticationFlowBindingOverrides = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_authenticationFlowBindingOverrides.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation.CreateFromDiscriminatorValue); } }, + { "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()?.ToList(); } }, - { "defaultRoles", n => { DefaultRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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(); } }, @@ -307,13 +309,13 @@ public virtual IDictionary> GetFieldDeserializers() { "name", n => { Name = n.GetStringValue(); } }, { "nodeReRegistrationTimeout", n => { NodeReRegistrationTimeout = n.GetIntValue(); } }, { "notBefore", n => { NotBefore = n.GetIntValue(); } }, - { "optionalClientScopes", n => { OptionalClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "optionalClientScopes", n => { OptionalClientScopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "origin", n => { Origin = n.GetStringValue(); } }, { "protocol", n => { Protocol = n.GetStringValue(); } }, - { "protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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()?.ToList(); } }, - { "registeredNodes", n => { RegisteredNodes = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_registeredNodes.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -324,7 +326,7 @@ public virtual IDictionary> GetFieldDeserializers() { "useTemplateConfig", n => { UseTemplateConfig = n.GetBoolValue(); } }, { "useTemplateMappers", n => { UseTemplateMappers = n.GetBoolValue(); } }, { "useTemplateScope", n => { UseTemplateScope = n.GetBoolValue(); } }, - { "webOrigins", n => { WebOrigins = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "webOrigins", n => { WebOrigins = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -334,13 +336,13 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -363,10 +365,10 @@ 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); @@ -382,3 +384,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_access.cs index edf40798..873b6dc3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_access.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientRepresentation_access : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ClientRepresentation_access() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_access(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_attributes.cs index 75561d4f..7f356d58 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_attributes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientRepresentation_attributes : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ClientRepresentation_attributes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_attributes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_authenticationFlowBindingOverrides.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_authenticationFlowBindingOverrides.cs index f6564b21..305fda10 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_authenticationFlowBindingOverrides.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_authenticationFlowBindingOverrides.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ClientRepresentation_authenticationFlowBindingOverrides() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_authenticationFlowBindingOverrides(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_authenticationFlowBindingOverrides(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_registeredNodes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_registeredNodes.cs index 11e8ad93..1fa35ba0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_registeredNodes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientRepresentation_registeredNodes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientRepresentation_registeredNodes : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ClientRepresentation_registeredNodes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_registeredNodes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation_registeredNodes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation.cs index e3e0c65d..493019be 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientScopeRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class ClientScopeRepresentation : IAdditionalDataHolder, IParsable /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -55,13 +57,13 @@ 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() { @@ -70,12 +72,12 @@ public ClientScopeRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation(); } /// /// The deserialization information for the current model @@ -85,12 +87,12 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "attributes", n => { Attributes = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -100,13 +102,14 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation_attributes.cs index 1e41d66a..20c8a8f2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientScopeRepresentation_attributes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientScopeRepresentation_attributes : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ClientScopeRepresentation_attributes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation_attributes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation.cs index e98fd27a..95b00ca5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation.cs @@ -1,14 +1,16 @@ // +#pragma warning disable CS0618 +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 { [Obsolete("")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientTemplateRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -16,10 +18,10 @@ public class ClientTemplateRepresentation : IAdditionalDataHolder, IParsable /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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; } @@ -68,10 +70,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; } @@ -80,7 +82,7 @@ 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() { @@ -89,12 +91,12 @@ public ClientTemplateRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation(); } /// /// The deserialization information for the current model @@ -104,7 +106,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "attributes", n => { Attributes = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -115,7 +117,7 @@ public virtual IDictionary> GetFieldDeserializers() { "implicitFlowEnabled", n => { ImplicitFlowEnabled = n.GetBoolValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, { "protocol", n => { Protocol = n.GetStringValue(); } }, - { "protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, @@ -128,7 +130,7 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -139,7 +141,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); @@ -147,3 +149,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation_attributes.cs index 7375994b..728d010a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTemplateRepresentation_attributes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientTemplateRepresentation_attributes : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ClientTemplateRepresentation_attributes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation_attributes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation.cs index 524b6764..ea8f981f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientTypeRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class ClientTypeRepresentation : IAdditionalDataHolder, IParsable /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config? Config { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config Config { get; set; } + 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 @@ -45,7 +47,7 @@ public class ClientTypeRepresentation : IAdditionalDataHolder, IParsable public string Provider { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ClientTypeRepresentation() { @@ -54,12 +56,12 @@ public ClientTypeRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation(); } /// /// The deserialization information for the current model @@ -69,7 +71,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "config", n => { Config = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config.CreateFromDiscriminatorValue); } }, + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config.CreateFromDiscriminatorValue); } }, { "name", n => { Name = n.GetStringValue(); } }, { "parent", n => { Parent = n.GetStringValue(); } }, { "provider", n => { Provider = n.GetStringValue(); } }, @@ -82,7 +84,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteStringValue("name", Name); writer.WriteStringValue("parent", Parent); writer.WriteStringValue("provider", Provider); @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation_config.cs index 53df5abe..46ec57e7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypeRepresentation_config.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientTypeRepresentation_config : IAdditionalDataHolder, IParsable + 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. + /// Instantiates a new and sets the default values. /// public ClientTypeRepresentation_config() { @@ -22,12 +24,12 @@ public ClientTypeRepresentation_config() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation_config(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypesRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypesRepresentation.cs index 174677ac..34e789de 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypesRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ClientTypesRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ClientTypesRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,21 +17,21 @@ public class ClientTypesRepresentation : IAdditionalDataHolder, IParsable /// The clientTypes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ClientTypes { get; set; } + public List? ClientTypes { get; set; } #nullable restore #else - public List ClientTypes { get; set; } + 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; } + public List? GlobalClientTypes { get; set; } #nullable restore #else - public List GlobalClientTypes { get; set; } + public List GlobalClientTypes { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ClientTypesRepresentation() { @@ -38,12 +40,12 @@ public ClientTypesRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypesRepresentation(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "client-types", n => { ClientTypes = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "global-client-types", n => { GlobalClientTypes = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTypeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, }; } /// @@ -64,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("client-types", ClientTypes); - writer.WriteCollectionOfObjectValues("global-client-types", GlobalClientTypes); + writer.WriteCollectionOfObjectValues("client-types", ClientTypes); + writer.WriteCollectionOfObjectValues("global-client-types", GlobalClientTypes); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentRepresentation.cs index d1ba86b4..18e55855 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ComponentRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class ComponentRepresentation : IAdditionalDataHolder, IParsable /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringString? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringString? Config { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -69,7 +71,7 @@ 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() { @@ -78,12 +80,12 @@ public ComponentRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentRepresentation(); } /// /// The deserialization information for the current model @@ -93,7 +95,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "config", n => { Config = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringString.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -109,7 +111,7 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -120,3 +122,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation.cs index 5752903c..6fceb89e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ComponentTypeRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -31,21 +33,21 @@ public class ComponentTypeRepresentation : IAdditionalDataHolder, IParsable /// The metadata property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation_metadata? Metadata { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation_metadata? Metadata { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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() { @@ -54,12 +56,12 @@ public ComponentTypeRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation(); } /// /// The deserialization information for the current model @@ -71,8 +73,8 @@ public virtual IDictionary> GetFieldDeserializers() { { "helpText", n => { HelpText = n.GetStringValue(); } }, { "id", n => { Id = n.GetStringValue(); } }, - { "metadata", n => { Metadata = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation_metadata.CreateFromDiscriminatorValue); } }, - { "properties", n => { Properties = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ConfigPropertyRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, }; } /// @@ -84,9 +86,10 @@ 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation_metadata.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation_metadata.cs index 02ec2dce..fa184575 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation_metadata.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ComponentTypeRepresentation_metadata.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ComponentTypeRepresentation_metadata : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ComponentTypeRepresentation_metadata() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation_metadata(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ComponentTypeRepresentation_metadata(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites.cs index 82c2dacc..aa5f98c8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Composites : IAdditionalDataHolder, IParsable + 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. @@ -16,18 +18,18 @@ public class Composites : IAdditionalDataHolder, IParsable [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_application? Application { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_application? Application { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_client? Client { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_client? Client { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -38,7 +40,7 @@ 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() { @@ -47,12 +49,12 @@ public Composites() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites(); } /// /// The deserialization information for the current model @@ -62,9 +64,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "application", n => { Application = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_application.CreateFromDiscriminatorValue); } }, - { "client", n => { Client = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_client.CreateFromDiscriminatorValue); } }, - { "realm", n => { Realm = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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(); } }, }; } /// @@ -74,10 +76,11 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_application.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_application.cs index 50c27656..282476c8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_application.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_application.cs @@ -1,20 +1,22 @@ // +#pragma warning disable CS0618 +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 { [Obsolete("")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Composites_application : IAdditionalDataHolder, IParsable + 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() { @@ -23,12 +25,12 @@ public Composites_application() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_application(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_application(); } /// /// The deserialization information for the current model @@ -51,3 +53,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_client.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_client.cs index b8bd4d96..3054f121 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_client.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Composites_client.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Composites_client : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public Composites_client() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_client(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites_client(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ConfigPropertyRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ConfigPropertyRepresentation.cs index 32d1ba65..0ae1df73 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ConfigPropertyRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ConfigPropertyRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ConfigPropertyRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -67,7 +69,7 @@ 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() { @@ -76,12 +78,12 @@ public ConfigPropertyRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ConfigPropertyRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ConfigPropertyRepresentation(); } /// /// The deserialization information for the current model @@ -95,7 +97,7 @@ public virtual IDictionary> GetFieldDeserializers() { "helpText", n => { HelpText = n.GetStringValue(); } }, { "label", n => { Label = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "options", n => { Options = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "options", n => { Options = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "readOnly", n => { ReadOnly = n.GetBoolValue(); } }, { "required", n => { Required = n.GetBoolValue(); } }, { "secret", n => { Secret = n.GetBoolValue(); } }, @@ -122,3 +124,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Confirmation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Confirmation.cs index 94d0a5e1..43df123f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Confirmation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Confirmation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Confirmation : IAdditionalDataHolder, IParsable + 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. @@ -29,7 +31,7 @@ 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() { @@ -38,12 +40,12 @@ public Confirmation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Confirmation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Confirmation(); } /// /// The deserialization information for the current model @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation.cs index bdf51ab9..ac6635ce 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CredentialRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -25,10 +27,10 @@ public class CredentialRepresentation : IAdditionalDataHolder, IParsable [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation_config? Config { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation_config Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation_config Config { get; set; } #endif /// The counter property [Obsolete("")] @@ -124,7 +126,7 @@ 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() { @@ -133,12 +135,12 @@ public CredentialRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation(); } /// /// The deserialization information for the current model @@ -149,7 +151,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "algorithm", n => { Algorithm = n.GetStringValue(); } }, - { "config", n => { Config = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation_config.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -176,7 +178,7 @@ 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); @@ -197,3 +199,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation_config.cs index 584634cf..deb18d0d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/CredentialRepresentation_config.cs @@ -1,25 +1,27 @@ // +#pragma warning disable CS0618 +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 { [Obsolete("")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class CredentialRepresentation_config : Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringString, IParsable + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation_config(); } /// /// The deserialization information for the current model @@ -42,3 +44,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionEffect.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionEffect.cs index b56fcda8..0ae9a45f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionEffect.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionEffect.cs @@ -3,6 +3,7 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 public enum DecisionEffect #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 8d145c32..2ea85159 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionStrategy.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/DecisionStrategy.cs @@ -3,6 +3,7 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 public enum DecisionStrategy #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 cc715041..645e50bd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EvaluationResultRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EvaluationResultRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class EvaluationResultRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,39 +17,39 @@ public class EvaluationResultRepresentation : IAdditionalDataHolder, IParsable /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation? Resource { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation? Resource { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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() { @@ -56,12 +58,12 @@ public EvaluationResultRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EvaluationResultRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EvaluationResultRepresentation(); } /// /// The deserialization information for the current model @@ -71,11 +73,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "allowedScopes", n => { AllowedScopes = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "policies", n => { Policies = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyResultRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "resource", n => { Resource = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue); } }, - { "scopes", n => { Scopes = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, + { "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(); } }, }; } /// @@ -85,12 +87,13 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation.cs index 5a89d559..f0760155 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class EventRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -23,10 +25,10 @@ public class EventRepresentation : IAdditionalDataHolder, IParsable /// The details property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation_details? Details { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation_details? Details { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -79,7 +81,7 @@ 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() { @@ -88,12 +90,12 @@ public EventRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation(); } /// /// The deserialization information for the current model @@ -104,7 +106,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "clientId", n => { ClientId = n.GetStringValue(); } }, - { "details", n => { Details = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation_details.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -122,7 +124,7 @@ 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); @@ -134,3 +136,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation_details.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation_details.cs index 9c99db29..74a9d69f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation_details.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/EventRepresentation_details.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class EventRepresentation_details : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public EventRepresentation_details() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation_details(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EventRepresentation_details(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/FederatedIdentityRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/FederatedIdentityRepresentation.cs index 69dcc1f1..0946be7b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/FederatedIdentityRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/FederatedIdentityRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class FederatedIdentityRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -37,7 +39,7 @@ 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() { @@ -46,12 +48,12 @@ public FederatedIdentityRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.FederatedIdentityRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.FederatedIdentityRepresentation(); } /// /// The deserialization information for the current model @@ -80,3 +82,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GlobalRequestResult.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GlobalRequestResult.cs index a6b4b798..c94a6ec5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GlobalRequestResult.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GlobalRequestResult.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GlobalRequestResult : IAdditionalDataHolder, IParsable + 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. @@ -29,7 +31,7 @@ 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() { @@ -38,12 +40,12 @@ public GlobalRequestResult() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GlobalRequestResult(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GlobalRequestResult(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "failedRequests", n => { FailedRequests = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "successRequests", n => { SuccessRequests = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "failedRequests", n => { FailedRequests = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "successRequests", n => { SuccessRequests = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation.cs index 622d2ae7..8a4f55f1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation.cs @@ -1,40 +1,42 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GroupRepresentation : IAdditionalDataHolder, IParsable + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_access? Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_access? Access { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_clientRoles? ClientRoles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_clientRoles? ClientRoles { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -81,13 +83,13 @@ 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() { @@ -96,12 +98,12 @@ public GroupRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation(); } /// /// The deserialization information for the current model @@ -111,16 +113,16 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "access", n => { Access = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_access.CreateFromDiscriminatorValue); } }, - { "attributes", n => { Attributes = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_attributes.CreateFromDiscriminatorValue); } }, - { "clientRoles", n => { ClientRoles = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_clientRoles.CreateFromDiscriminatorValue); } }, + { "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()?.ToList(); } }, + { "realmRoles", n => { RealmRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "subGroupCount", n => { SubGroupCount = n.GetLongValue(); } }, - { "subGroups", n => { SubGroups = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "subGroups", n => { SubGroups = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -130,17 +132,18 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_access.cs index cc810da3..541282e9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_access.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GroupRepresentation_access : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public GroupRepresentation_access() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_access(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_attributes.cs index 6a9aa547..eed906e9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_attributes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GroupRepresentation_attributes : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public GroupRepresentation_attributes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_attributes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_clientRoles.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_clientRoles.cs index 0ce908ec..45fb4b9e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_clientRoles.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/GroupRepresentation_clientRoles.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class GroupRepresentation_clientRoles : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public GroupRepresentation_clientRoles() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_clientRoles(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation_clientRoles(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken.cs index 9da05d19..150f7880 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IDToken : IAdditionalDataHolder, IParsable + public partial class IDToken : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The acr property @@ -23,10 +25,10 @@ public class IDToken : IAdditionalDataHolder, IParsable /// The address property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet? Address { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet? Address { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -169,10 +171,10 @@ public class IDToken : IAdditionalDataHolder, IParsable /// The otherClaims property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken_otherClaims? OtherClaims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken_otherClaims? OtherClaims { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -259,7 +261,7 @@ 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() { @@ -268,12 +270,12 @@ public IDToken() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken(); } /// /// The deserialization information for the current model @@ -284,7 +286,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "acr", n => { Acr = n.GetStringValue(); } }, - { "address", n => { Address = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AddressClaimSet.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -306,7 +308,7 @@ public virtual IDictionary> GetFieldDeserializers() { "nbf", n => { Nbf = n.GetLongValue(); } }, { "nickname", n => { Nickname = n.GetStringValue(); } }, { "nonce", n => { Nonce = n.GetStringValue(); } }, - { "otherClaims", n => { OtherClaims = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken_otherClaims.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -329,7 +331,7 @@ 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", AuthTime); writer.WriteStringValue("azp", Azp); @@ -351,7 +353,7 @@ 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); @@ -368,3 +370,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken_otherClaims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken_otherClaims.cs index 4e33c786..d3b22cb0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken_otherClaims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IDToken_otherClaims.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IDToken_otherClaims : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public IDToken_otherClaims() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken_otherClaims(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IDToken_otherClaims(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation.cs index 482ea88e..6d080f6b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IdentityProviderMapperRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class IdentityProviderMapperRepresentation : IAdditionalDataHolder, IPars /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation_config? Config { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -53,7 +55,7 @@ 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() { @@ -62,12 +64,12 @@ public IdentityProviderMapperRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation(); } /// /// The deserialization information for the current model @@ -77,7 +79,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "config", n => { Config = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation_config.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -91,7 +93,7 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation_config.cs index b9327573..78a05097 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderMapperRepresentation_config.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IdentityProviderMapperRepresentation_config : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public IdentityProviderMapperRepresentation_config() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation_config(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs index dd3f0e9a..0b9710c7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IdentityProviderRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -27,10 +29,10 @@ public class IdentityProviderRepresentation : IAdditionalDataHolder, IParsable /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation_config? Config { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -103,7 +105,7 @@ 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() { @@ -112,12 +114,12 @@ public IdentityProviderRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation(); } /// /// The deserialization information for the current model @@ -130,7 +132,7 @@ public virtual IDictionary> GetFieldDeserializers() { "addReadTokenRoleOnCreate", n => { AddReadTokenRoleOnCreate = n.GetBoolValue(); } }, { "alias", n => { Alias = n.GetStringValue(); } }, { "authenticateByDefault", n => { AuthenticateByDefault = n.GetBoolValue(); } }, - { "config", n => { Config = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation_config.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -156,7 +158,7 @@ public virtual void Serialize(ISerializationWriter 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); @@ -174,3 +176,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation_config.cs index 5d52b9f6..c4cee2fd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/IdentityProviderRepresentation_config.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class IdentityProviderRepresentation_config : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public IdentityProviderRepresentation_config() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation_config(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyMetadataRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyMetadataRepresentation.cs index cdc5505c..19efc83f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyMetadataRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyMetadataRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class KeyMetadataRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -71,11 +73,11 @@ public class KeyMetadataRepresentation : IAdditionalDataHolder, IParsable public string Type { get; set; } #endif /// The use property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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() { @@ -84,12 +86,12 @@ public KeyMetadataRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyMetadataRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyMetadataRepresentation(); } /// /// The deserialization information for the current model @@ -107,7 +109,7 @@ public virtual IDictionary> GetFieldDeserializers() { "publicKey", n => { PublicKey = n.GetStringValue(); } }, { "status", n => { Status = n.GetStringValue(); } }, { "type", n => { Type = n.GetStringValue(); } }, - { "use", n => { Use = n.GetEnumValue(); } }, + { "use", n => { Use = n.GetEnumValue(); } }, { "validTo", n => { ValidTo = n.GetLongValue(); } }, }; } @@ -126,9 +128,10 @@ 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyStoreConfig.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyStoreConfig.cs index ac43d017..5ad6a131 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyStoreConfig.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyStoreConfig.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class KeyStoreConfig : IAdditionalDataHolder, IParsable + 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. @@ -55,7 +57,7 @@ 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() { @@ -64,12 +66,12 @@ public KeyStoreConfig() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyStoreConfig(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyStoreConfig(); } /// /// The deserialization information for the current model @@ -104,3 +106,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyUse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyUse.cs index a6d2380b..9344adf6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyUse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeyUse.cs @@ -3,6 +3,7 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 public enum KeyUse #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 39f9ae9d..a14fd0a2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation.cs @@ -1,35 +1,37 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class KeysMetadataRepresentation : IAdditionalDataHolder, IParsable + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation_active? Active { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation_active? Active { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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() { @@ -38,12 +40,12 @@ public KeysMetadataRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "active", n => { Active = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation_active.CreateFromDiscriminatorValue); } }, - { "keys", n => { Keys = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeyMetadataRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, }; } /// @@ -64,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation_active.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation_active.cs index 5726896b..77f378e8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation_active.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/KeysMetadataRepresentation_active.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class KeysMetadataRepresentation_active : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public KeysMetadataRepresentation_active() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation_active(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.KeysMetadataRepresentation_active(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Logic.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Logic.cs index 92e172ee..7c07a9dc 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Logic.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Logic.cs @@ -3,6 +3,7 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 public enum Logic #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 5d46aabc..a29092db 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ManagementPermissionReference : IAdditionalDataHolder, IParsable + 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. @@ -25,13 +27,13 @@ public class ManagementPermissionReference : IAdditionalDataHolder, IParsable /// The scopePermissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference_scopePermissions? ScopePermissions { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference_scopePermissions? ScopePermissions { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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() { @@ -40,12 +42,12 @@ public ManagementPermissionReference() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference(); } /// /// The deserialization information for the current model @@ -57,7 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "enabled", n => { Enabled = n.GetBoolValue(); } }, { "resource", n => { Resource = n.GetStringValue(); } }, - { "scopePermissions", n => { ScopePermissions = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference_scopePermissions.CreateFromDiscriminatorValue); } }, + { "scopePermissions", n => { ScopePermissions = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference_scopePermissions.CreateFromDiscriminatorValue); } }, }; } /// @@ -69,8 +71,9 @@ 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference_scopePermissions.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference_scopePermissions.cs index bef7affd..c9831735 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference_scopePermissions.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ManagementPermissionReference_scopePermissions.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ManagementPermissionReference_scopePermissions : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ManagementPermissionReference_scopePermissions() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference_scopePermissions(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ManagementPermissionReference_scopePermissions(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation.cs index 61af4416..c18d635a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MappingsRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,21 +17,21 @@ public class MappingsRepresentation : IAdditionalDataHolder, IParsable /// The clientMappings property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation_clientMappings? ClientMappings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation_clientMappings? ClientMappings { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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() { @@ -38,12 +40,12 @@ public MappingsRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "clientMappings", n => { ClientMappings = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation_clientMappings.CreateFromDiscriminatorValue); } }, - { "realmMappings", n => { RealmMappings = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, }; } /// @@ -64,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation_clientMappings.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation_clientMappings.cs index 35e2e74c..1b905f6f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation_clientMappings.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MappingsRepresentation_clientMappings.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MappingsRepresentation_clientMappings : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public MappingsRepresentation_clientMappings() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation_clientMappings(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MappingsRepresentation_clientMappings(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation.cs index c403e271..11c0314a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation.cs @@ -1,22 +1,24 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MemberRepresentation : IAdditionalDataHolder, IParsable + public partial class MemberRepresentation : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The access property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_access? Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_access? Access { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_access Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_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; } @@ -24,44 +26,44 @@ public class MemberRepresentation : IAdditionalDataHolder, IParsable [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles? ApplicationRoles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles? ApplicationRoles { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles ApplicationRoles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles ApplicationRoles { get; set; } #endif /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_attributes Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_clientRoles? ClientRoles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_clientRoles? ClientRoles { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_clientRoles ClientRoles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_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 @@ -86,10 +88,10 @@ public class MemberRepresentation : 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 @@ -132,7 +134,7 @@ public class MemberRepresentation : IAdditionalDataHolder, IParsable public string LastName { get; set; } #endif /// The membershipType property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MembershipType? MembershipType { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MembershipType? MembershipType { get; set; } /// The notBefore property public int? NotBefore { get; set; } /// The origin property @@ -179,10 +181,10 @@ public class MemberRepresentation : 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; } @@ -197,13 +199,13 @@ public class MemberRepresentation : 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 MemberRepresentation() { @@ -212,12 +214,12 @@ public MemberRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation(); } /// /// The deserialization information for the current model @@ -227,33 +229,33 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "access", n => { Access = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_access.CreateFromDiscriminatorValue); } }, - { "applicationRoles", n => { ApplicationRoles = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles.CreateFromDiscriminatorValue); } }, - { "attributes", n => { Attributes = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_attributes.CreateFromDiscriminatorValue); } }, - { "clientConsents", n => { ClientConsents = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserConsentRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "clientRoles", n => { ClientRoles = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_clientRoles.CreateFromDiscriminatorValue); } }, + { "access", n => { Access = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_access.CreateFromDiscriminatorValue); } }, + { "applicationRoles", n => { ApplicationRoles = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles.CreateFromDiscriminatorValue); } }, + { "attributes", n => { Attributes = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_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.MemberRepresentation_clientRoles.CreateFromDiscriminatorValue); } }, { "createdTimestamp", n => { CreatedTimestamp = n.GetLongValue(); } }, - { "credentials", n => { Credentials = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "disableableCredentialTypes", n => { DisableableCredentialTypes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.FederatedIdentityRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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()?.ToList(); } }, + { "groups", n => { Groups = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "id", n => { Id = n.GetStringValue(); } }, { "lastName", n => { LastName = n.GetStringValue(); } }, - { "membershipType", n => { MembershipType = n.GetEnumValue(); } }, + { "membershipType", n => { MembershipType = n.GetEnumValue(); } }, { "notBefore", n => { NotBefore = n.GetIntValue(); } }, { "origin", n => { Origin = n.GetStringValue(); } }, - { "realmRoles", n => { RealmRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "requiredActions", n => { RequiredActions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.SocialLinkRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata.CreateFromDiscriminatorValue); } }, + { "userProfileMetadata", n => { UserProfileMetadata = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata.CreateFromDiscriminatorValue); } }, { "username", n => { Username = n.GetStringValue(); } }, }; } @@ -264,35 +266,36 @@ public virtual IDictionary> GetFieldDeserializers() 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); writer.WriteStringValue("id", Id); writer.WriteStringValue("lastName", LastName); - writer.WriteEnumValue("membershipType", MembershipType); + writer.WriteEnumValue("membershipType", MembershipType); writer.WriteIntValue("notBefore", NotBefore); writer.WriteStringValue("origin", Origin); writer.WriteCollectionOfPrimitiveValues("realmRoles", RealmRoles); 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_access.cs index bfbc2e42..5ba735d8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_access.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MemberRepresentation_access : IAdditionalDataHolder, IParsable + public partial class MemberRepresentation_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 MemberRepresentation_access() { @@ -22,12 +24,12 @@ public MemberRepresentation_access() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_access CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_access(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_applicationRoles.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_applicationRoles.cs index 53e610bc..febe46ae 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_applicationRoles.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_applicationRoles.cs @@ -1,20 +1,22 @@ // +#pragma warning disable CS0618 +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 { [Obsolete("")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MemberRepresentation_applicationRoles : IAdditionalDataHolder, IParsable + public partial class MemberRepresentation_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 MemberRepresentation_applicationRoles() { @@ -23,12 +25,12 @@ public MemberRepresentation_applicationRoles() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_applicationRoles(); } /// /// The deserialization information for the current model @@ -51,3 +53,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_attributes.cs index 1e41018e..5196e243 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_attributes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MemberRepresentation_attributes : IAdditionalDataHolder, IParsable + public partial class MemberRepresentation_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 MemberRepresentation_attributes() { @@ -22,12 +24,12 @@ public MemberRepresentation_attributes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_attributes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_clientRoles.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_clientRoles.cs index 3698973c..11a94179 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_clientRoles.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MemberRepresentation_clientRoles.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MemberRepresentation_clientRoles : IAdditionalDataHolder, IParsable + public partial class MemberRepresentation_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 MemberRepresentation_clientRoles() { @@ -22,12 +24,12 @@ public MemberRepresentation_clientRoles() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_clientRoles CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_clientRoles CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_clientRoles(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation_clientRoles(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MembershipType.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MembershipType.cs index 20eb90cf..92967742 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MembershipType.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MembershipType.cs @@ -3,6 +3,7 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 public enum MembershipType #pragma warning restore CS1591 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringComponentExportRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringComponentExportRepresentation.cs index 4843ac42..43eb2f67 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringComponentExportRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringComponentExportRepresentation.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MultivaluedHashMapStringComponentExportRepresentation : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public MultivaluedHashMapStringComponentExportRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringComponentExportRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringComponentExportRepresentation(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringString.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringString.cs index 1ddbc1d6..a9872ede 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringString.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/MultivaluedHashMapStringString.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class MultivaluedHashMapStringString : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public MultivaluedHashMapStringString() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringString(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringString(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation.cs index 05474417..139ffde1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation.cs @@ -1,23 +1,25 @@ // +#pragma warning disable CS0618 +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 { [Obsolete("")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OAuthClientRepresentation : IAdditionalDataHolder, IParsable + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_access? Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_access? Access { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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; } @@ -34,28 +36,28 @@ public class OAuthClientRepresentation : IAdditionalDataHolder, IParsable /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_authenticationFlowBindingOverrides? AuthenticationFlowBindingOverrides { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_authenticationFlowBindingOverrides? AuthenticationFlowBindingOverrides { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation? AuthorizationSettings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation? AuthorizationSettings { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -71,10 +73,10 @@ public class OAuthClientRepresentation : IAdditionalDataHolder, IParsable [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_claims? Claims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_claims? Claims { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -188,10 +190,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; } @@ -206,10 +208,10 @@ public class OAuthClientRepresentation : IAdditionalDataHolder, IParsable /// The registeredNodes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_registeredNodes? RegisteredNodes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_registeredNodes? RegisteredNodes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -267,7 +269,7 @@ 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() { @@ -276,12 +278,12 @@ public OAuthClientRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation(); } /// /// The deserialization information for the current model @@ -291,22 +293,22 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "access", n => { Access = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_access.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_attributes.CreateFromDiscriminatorValue); } }, - { "authenticationFlowBindingOverrides", n => { AuthenticationFlowBindingOverrides = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_authenticationFlowBindingOverrides.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_claims.CreateFromDiscriminatorValue); } }, + { "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()?.ToList(); } }, - { "defaultRoles", n => { DefaultRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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(); } }, @@ -318,13 +320,13 @@ public virtual IDictionary> GetFieldDeserializers() { "name", n => { Name = n.GetStringValue(); } }, { "nodeReRegistrationTimeout", n => { NodeReRegistrationTimeout = n.GetIntValue(); } }, { "notBefore", n => { NotBefore = n.GetIntValue(); } }, - { "optionalClientScopes", n => { OptionalClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "optionalClientScopes", n => { OptionalClientScopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "origin", n => { Origin = n.GetStringValue(); } }, { "protocol", n => { Protocol = n.GetStringValue(); } }, - { "protocolMappers", n => { ProtocolMappers = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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()?.ToList(); } }, - { "registeredNodes", n => { RegisteredNodes = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_registeredNodes.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -335,7 +337,7 @@ public virtual IDictionary> GetFieldDeserializers() { "useTemplateConfig", n => { UseTemplateConfig = n.GetBoolValue(); } }, { "useTemplateMappers", n => { UseTemplateMappers = n.GetBoolValue(); } }, { "useTemplateScope", n => { UseTemplateScope = n.GetBoolValue(); } }, - { "webOrigins", n => { WebOrigins = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "webOrigins", n => { WebOrigins = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -345,16 +347,16 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -375,10 +377,10 @@ 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); @@ -394,3 +396,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_access.cs index d016097e..2f6e8795 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_access.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OAuthClientRepresentation_access : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public OAuthClientRepresentation_access() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_access(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_attributes.cs index fc958ef0..0fa8af1b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_attributes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OAuthClientRepresentation_attributes : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public OAuthClientRepresentation_attributes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_attributes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_authenticationFlowBindingOverrides.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_authenticationFlowBindingOverrides.cs index 8bec0cc5..0bff20ef 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_authenticationFlowBindingOverrides.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_authenticationFlowBindingOverrides.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OAuthClientRepresentation_authenticationFlowBindingOverrides : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public OAuthClientRepresentation_authenticationFlowBindingOverrides() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_authenticationFlowBindingOverrides(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_authenticationFlowBindingOverrides(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_claims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_claims.cs index c0015fea..3dbd6639 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_claims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_claims.cs @@ -1,25 +1,27 @@ // +#pragma warning disable CS0618 +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 { [Obsolete("")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OAuthClientRepresentation_claims : Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClaimRepresentation, IParsable + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_claims(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_claims(); } /// /// The deserialization information for the current model @@ -42,3 +44,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_registeredNodes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_registeredNodes.cs index 1df34c42..1c621b5a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_registeredNodes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OAuthClientRepresentation_registeredNodes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OAuthClientRepresentation_registeredNodes : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public OAuthClientRepresentation_registeredNodes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_registeredNodes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation_registeredNodes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationDomainRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationDomainRepresentation.cs index e44b0d17..25c0f2f6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationDomainRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationDomainRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OrganizationDomainRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -23,7 +25,7 @@ public class OrganizationDomainRepresentation : IAdditionalDataHolder, IParsable /// The verified property public bool? Verified { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationDomainRepresentation() { @@ -32,12 +34,12 @@ public OrganizationDomainRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationDomainRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationDomainRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationDomainRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationDomainRepresentation(); } /// /// The deserialization information for the current model @@ -64,3 +66,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation.cs index d31a3efb..7e507e99 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OrganizationRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -23,10 +25,10 @@ public class OrganizationRepresentation : IAdditionalDataHolder, IParsable /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation_attributes Attributes { get; set; } + 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 @@ -39,10 +41,10 @@ public class OrganizationRepresentation : IAdditionalDataHolder, IParsable /// The domains property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Domains { get; set; } + public List? Domains { get; set; } #nullable restore #else - public List Domains { get; set; } + public List Domains { get; set; } #endif /// The enabled property public bool? Enabled { get; set; } @@ -57,18 +59,18 @@ public class OrganizationRepresentation : IAdditionalDataHolder, IParsable /// 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 members property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Members { get; set; } + public List? Members { get; set; } #nullable restore #else - public List Members { get; set; } + public List Members { get; set; } #endif /// The name property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -87,7 +89,7 @@ public class OrganizationRepresentation : IAdditionalDataHolder, IParsable public string RedirectUrl { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public OrganizationRepresentation() { @@ -96,12 +98,12 @@ public OrganizationRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation(); } /// /// The deserialization information for the current model @@ -112,13 +114,13 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "alias", n => { Alias = n.GetStringValue(); } }, - { "attributes", n => { Attributes = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationDomainRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "members", n => { Members = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MemberRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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.MemberRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, { "name", n => { Name = n.GetStringValue(); } }, { "redirectUrl", n => { RedirectUrl = n.GetStringValue(); } }, }; @@ -131,16 +133,17 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("alias", Alias); - writer.WriteObjectValue("attributes", Attributes); + writer.WriteObjectValue("attributes", Attributes); writer.WriteStringValue("description", Description); - writer.WriteCollectionOfObjectValues("domains", Domains); + writer.WriteCollectionOfObjectValues("domains", Domains); writer.WriteBoolValue("enabled", Enabled); writer.WriteStringValue("id", Id); - writer.WriteCollectionOfObjectValues("identityProviders", IdentityProviders); - writer.WriteCollectionOfObjectValues("members", Members); + writer.WriteCollectionOfObjectValues("identityProviders", IdentityProviders); + writer.WriteCollectionOfObjectValues("members", Members); writer.WriteStringValue("name", Name); writer.WriteStringValue("redirectUrl", RedirectUrl); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation_attributes.cs index bbfa1e81..3d52e3c1 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/OrganizationRepresentation_attributes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class OrganizationRepresentation_attributes : IAdditionalDataHolder, IParsable + 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. + /// Instantiates a new and sets the default values. /// public OrganizationRepresentation_attributes() { @@ -22,12 +24,12 @@ public OrganizationRepresentation_attributes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation_attributes CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation_attributes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission.cs index 61273b81..0a8fd989 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Permission : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class Permission : IAdditionalDataHolder, IParsable /// The claims property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission_claims? Claims { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission_claims? Claims { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -45,7 +47,7 @@ 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() { @@ -54,12 +56,12 @@ public Permission() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission(); } /// /// The deserialization information for the current model @@ -69,10 +71,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "claims", n => { Claims = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission_claims.CreateFromDiscriminatorValue); } }, + { "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()?.ToList(); } }, + { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -82,7 +84,7 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission_claims.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission_claims.cs index a6e2c98e..0873910c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission_claims.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/Permission_claims.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class Permission_claims : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public Permission_claims() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission_claims(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Permission_claims(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEnforcementMode.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEnforcementMode.cs index 88dcc5b2..363f6e1f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEnforcementMode.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEnforcementMode.cs @@ -3,6 +3,7 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 public enum PolicyEnforcementMode #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 3677f9da..a36c9d2e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PolicyEvaluationRequest : IAdditionalDataHolder, IParsable + 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. @@ -23,20 +25,20 @@ public class PolicyEvaluationRequest : IAdditionalDataHolder, IParsable /// The context property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest_context? Context { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest_context? Context { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -55,7 +57,7 @@ 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() { @@ -64,12 +66,12 @@ public PolicyEvaluationRequest() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest(); } /// /// The deserialization information for the current model @@ -80,10 +82,10 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "clientId", n => { ClientId = n.GetStringValue(); } }, - { "context", n => { Context = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest_context.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "roleIds", n => { RoleIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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(); } }, }; } @@ -95,12 +97,13 @@ 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest_context.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest_context.cs index 56a40ef1..60a650d6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest_context.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationRequest_context.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PolicyEvaluationRequest_context : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public PolicyEvaluationRequest_context() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest_context(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationRequest_context(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationResponse.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationResponse.cs index fe2b12a2..b421b6ef 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationResponse.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyEvaluationResponse.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PolicyEvaluationResponse : IAdditionalDataHolder, IParsable + 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. @@ -17,23 +19,23 @@ 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken? Rpt { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken? Rpt { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken Rpt { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken Rpt { get; set; } #endif /// The status property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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() { @@ -42,12 +44,12 @@ public PolicyEvaluationResponse() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationResponse(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyEvaluationResponse(); } /// /// The deserialization information for the current model @@ -58,9 +60,9 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "entitlements", n => { Entitlements = n.GetBoolValue(); } }, - { "results", n => { Results = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.EvaluationResultRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "rpt", n => { Rpt = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AccessToken.CreateFromDiscriminatorValue); } }, - { "status", n => { Status = n.GetEnumValue(); } }, + { "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(); } }, }; } /// @@ -71,10 +73,11 @@ 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyProviderRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyProviderRepresentation.cs index 37d1b570..233c4381 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyProviderRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyProviderRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PolicyProviderRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -37,7 +39,7 @@ 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() { @@ -46,12 +48,12 @@ public PolicyProviderRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyProviderRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyProviderRepresentation(); } /// /// The deserialization information for the current model @@ -80,3 +82,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation.cs index 42ac5bfb..1b46afd2 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PolicyRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,13 +17,13 @@ public class PolicyRepresentation : IAdditionalDataHolder, IParsable /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation_config? Config { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -39,7 +41,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 @@ -75,10 +77,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 @@ -91,10 +93,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 @@ -105,7 +107,7 @@ 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() { @@ -114,12 +116,12 @@ public PolicyRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation(); } /// /// The deserialization information for the current model @@ -129,18 +131,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "config", n => { Config = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation_config.CreateFromDiscriminatorValue); } }, - { "decisionStrategy", n => { DecisionStrategy = n.GetEnumValue(); } }, + { "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(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "scopesData", n => { ScopesData = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, }; } @@ -151,20 +153,21 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation_config.cs index a54ba2ff..41cf14e7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyRepresentation_config.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PolicyRepresentation_config : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public PolicyRepresentation_config() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation_config(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyResultRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyResultRepresentation.cs index 59622385..3406a55a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyResultRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/PolicyResultRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class PolicyResultRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,18 +17,18 @@ public class PolicyResultRepresentation : IAdditionalDataHolder, IParsable /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation? Policy { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation? Policy { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -37,9 +39,9 @@ public class PolicyResultRepresentation : IAdditionalDataHolder, IParsable public List Scopes { get; set; } #endif /// The status property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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() { @@ -48,12 +50,12 @@ public PolicyResultRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyResultRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyResultRepresentation(); } /// /// The deserialization information for the current model @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "associatedPolicies", n => { AssociatedPolicies = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyResultRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "policy", n => { Policy = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation.CreateFromDiscriminatorValue); } }, - { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "status", n => { Status = n.GetEnumValue(); } }, + { "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(); } }, }; } /// @@ -76,11 +78,12 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperEvaluationRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperEvaluationRepresentation.cs index 745a98c4..7a199065 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperEvaluationRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperEvaluationRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ProtocolMapperEvaluationRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -61,7 +63,7 @@ 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() { @@ -70,12 +72,12 @@ public ProtocolMapperEvaluationRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperEvaluationRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperEvaluationRepresentation(); } /// /// The deserialization information for the current model @@ -110,3 +112,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation.cs index 695d5421..cb5b0a71 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ProtocolMapperRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class ProtocolMapperRepresentation : IAdditionalDataHolder, IParsable /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation_config? Config { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation_config Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation_config Config { get; set; } #endif /// The consentRequired property [Obsolete("")] @@ -65,7 +67,7 @@ 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() { @@ -74,12 +76,12 @@ public ProtocolMapperRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation(); } /// /// The deserialization information for the current model @@ -89,7 +91,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "config", n => { Config = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation_config.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -105,7 +107,7 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -116,3 +118,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation_config.cs index 51cea5ea..b02647a3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ProtocolMapperRepresentation_config.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ProtocolMapperRepresentation_config : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ProtocolMapperRepresentation_config() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation_config(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmEventsConfigRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmEventsConfigRepresentation.cs index 3d2b6b25..9b2ae1b0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmEventsConfigRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmEventsConfigRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RealmEventsConfigRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -37,7 +39,7 @@ 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() { @@ -46,12 +48,12 @@ public RealmEventsConfigRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmEventsConfigRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmEventsConfigRepresentation(); } /// /// The deserialization information for the current model @@ -63,10 +65,10 @@ public virtual IDictionary> GetFieldDeserializers() { { "adminEventsDetailsEnabled", n => { AdminEventsDetailsEnabled = n.GetBoolValue(); } }, { "adminEventsEnabled", n => { AdminEventsEnabled = n.GetBoolValue(); } }, - { "enabledEventTypes", n => { EnabledEventTypes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "enabledEventTypes", n => { EnabledEventTypes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "eventsEnabled", n => { EventsEnabled = n.GetBoolValue(); } }, { "eventsExpiration", n => { EventsExpiration = n.GetLongValue(); } }, - { "eventsListeners", n => { EventsListeners = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "eventsListeners", n => { EventsListeners = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -86,3 +88,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs index b1d59dcf..724a2453 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RealmRepresentation : IAdditionalDataHolder, IParsable + public partial class RealmRepresentation : IAdditionalDataHolder, IParsable #pragma warning restore CS1591 { /// The accessCodeLifespan property @@ -50,43 +52,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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_applicationScopeMappings? ApplicationScopeMappings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_applicationScopeMappings? ApplicationScopeMappings { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -99,15 +101,15 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable /// The browserSecurityHeaders property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_browserSecurityHeaders? BrowserSecurityHeaders { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_browserSecurityHeaders? BrowserSecurityHeaders { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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; } /// The bruteForceStrategy property - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.BruteForceStrategy? BruteForceStrategy { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.BruteForceStrategy? BruteForceStrategy { get; set; } /// The certificate property [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -132,42 +134,42 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable /// The clientPolicies property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation? ClientPolicies { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation? ClientPolicies { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation? ClientProfiles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation? ClientProfiles { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_clientScopeMappings? ClientScopeMappings { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_clientScopeMappings? ClientScopeMappings { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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; } @@ -177,10 +179,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("")] @@ -194,10 +196,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable /// The components property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringComponentExportRepresentation? Components { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringComponentExportRepresentation? Components { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -234,10 +236,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable /// The defaultRole property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation? DefaultRole { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation? DefaultRole { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation DefaultRole { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation DefaultRole { get; set; } #endif /// The defaultRoles property [Obsolete("")] @@ -327,10 +329,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 @@ -343,10 +345,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 @@ -359,18 +361,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; } @@ -385,10 +387,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable /// The localizationTexts property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_localizationTexts? LocalizationTexts { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_localizationTexts? LocalizationTexts { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -418,10 +420,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; } @@ -432,10 +434,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable /// The organizations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Organizations { get; set; } + public List? Organizations { get; set; } #nullable restore #else - public List Organizations { get; set; } + public List Organizations { get; set; } #endif /// The organizationsEnabled property public bool? OrganizationsEnabled { get; set; } @@ -498,10 +500,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("")] @@ -548,10 +550,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("")] @@ -577,26 +579,26 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable /// The roles property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation? Roles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation? Roles { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_smtpServer? SmtpServer { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_smtpServer? SmtpServer { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_smtpServer SmtpServer { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_smtpServer SmtpServer { get; set; } #endif /// The social property [Obsolete("")] @@ -605,10 +607,10 @@ public class RealmRepresentation : IAdditionalDataHolder, IParsable [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_socialProviders? SocialProviders { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_socialProviders? SocialProviders { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -643,28 +645,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; } @@ -823,7 +825,7 @@ 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() { @@ -832,12 +834,12 @@ public RealmRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation(); } /// /// The deserialization information for the current model @@ -858,35 +860,35 @@ public virtual IDictionary> GetFieldDeserializers() { "adminEventsDetailsEnabled", n => { AdminEventsDetailsEnabled = n.GetBoolValue(); } }, { "adminEventsEnabled", n => { AdminEventsEnabled = n.GetBoolValue(); } }, { "adminTheme", n => { AdminTheme = n.GetStringValue(); } }, - { "applicationScopeMappings", n => { ApplicationScopeMappings = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_applicationScopeMappings.CreateFromDiscriminatorValue); } }, - { "applications", n => { Applications = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ApplicationRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "attributes", n => { Attributes = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_attributes.CreateFromDiscriminatorValue); } }, - { "authenticationFlows", n => { AuthenticationFlows = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticationFlowRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "authenticatorConfig", n => { AuthenticatorConfig = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.AuthenticatorConfigRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_browserSecurityHeaders.CreateFromDiscriminatorValue); } }, + { "browserSecurityHeaders", n => { BrowserSecurityHeaders = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_browserSecurityHeaders.CreateFromDiscriminatorValue); } }, { "bruteForceProtected", n => { BruteForceProtected = n.GetBoolValue(); } }, - { "bruteForceStrategy", n => { BruteForceStrategy = n.GetEnumValue(); } }, + { "bruteForceStrategy", n => { BruteForceStrategy = n.GetEnumValue(); } }, { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientPoliciesRepresentation.CreateFromDiscriminatorValue); } }, - { "clientProfiles", n => { ClientProfiles = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientProfilesRepresentation.CreateFromDiscriminatorValue); } }, - { "clientScopeMappings", n => { ClientScopeMappings = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_clientScopeMappings.CreateFromDiscriminatorValue); } }, - { "clientScopes", n => { ClientScopes = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientTemplateRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "clients", n => { Clients = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ClientRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.MultivaluedHashMapStringComponentExportRepresentation.CreateFromDiscriminatorValue); } }, - { "defaultDefaultClientScopes", n => { DefaultDefaultClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "defaultGroups", n => { DefaultGroups = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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()?.ToList(); } }, - { "defaultRole", n => { DefaultRole = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue); } }, - { "defaultRoles", n => { DefaultRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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(); } }, @@ -896,20 +898,20 @@ public virtual IDictionary> GetFieldDeserializers() { "editUsernameAllowed", n => { EditUsernameAllowed = n.GetBoolValue(); } }, { "emailTheme", n => { EmailTheme = n.GetStringValue(); } }, { "enabled", n => { Enabled = n.GetBoolValue(); } }, - { "enabledEventTypes", n => { EnabledEventTypes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "enabledEventTypes", n => { EnabledEventTypes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "eventsEnabled", n => { EventsEnabled = n.GetBoolValue(); } }, { "eventsExpiration", n => { EventsExpiration = n.GetLongValue(); } }, - { "eventsListeners", n => { EventsListeners = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "eventsListeners", n => { EventsListeners = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "failureFactor", n => { FailureFactor = n.GetIntValue(); } }, - { "federatedUsers", n => { FederatedUsers = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.GroupRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "identityProviders", n => { IdentityProviders = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.IdentityProviderRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_localizationTexts.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -919,11 +921,11 @@ public virtual IDictionary> GetFieldDeserializers() { "notBefore", n => { NotBefore = n.GetIntValue(); } }, { "oauth2DeviceCodeLifespan", n => { Oauth2DeviceCodeLifespan = n.GetIntValue(); } }, { "oauth2DevicePollingInterval", n => { Oauth2DevicePollingInterval = n.GetIntValue(); } }, - { "oauthClients", n => { OauthClients = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OAuthClientRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.OrganizationRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, @@ -932,12 +934,12 @@ public virtual IDictionary> GetFieldDeserializers() { "otpPolicyLookAheadWindow", n => { OtpPolicyLookAheadWindow = n.GetIntValue(); } }, { "otpPolicyPeriod", n => { OtpPolicyPeriod = n.GetIntValue(); } }, { "otpPolicyType", n => { OtpPolicyType = n.GetStringValue(); } }, - { "otpSupportedApplications", n => { OtpSupportedApplications = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ProtocolMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, @@ -949,51 +951,51 @@ public virtual IDictionary> GetFieldDeserializers() { "registrationEmailAsUsername", n => { RegistrationEmailAsUsername = n.GetBoolValue(); } }, { "registrationFlow", n => { RegistrationFlow = n.GetStringValue(); } }, { "rememberMe", n => { RememberMe = n.GetBoolValue(); } }, - { "requiredActions", n => { RequiredActions = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "requiredCredentials", n => { RequiredCredentials = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation.CreateFromDiscriminatorValue); } }, - { "scopeMappings", n => { ScopeMappings = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeMappingRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "smtpServer", n => { SmtpServer = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_smtpServer.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_socialProviders.CreateFromDiscriminatorValue); } }, + { "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()?.ToList(); } }, + { "supportedLocales", n => { SupportedLocales = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "updateProfileOnInitialSocialLogin", n => { UpdateProfileOnInitialSocialLogin = n.GetBoolValue(); } }, { "userCacheEnabled", n => { UserCacheEnabled = n.GetBoolValue(); } }, - { "userFederationMappers", n => { UserFederationMappers = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "userFederationProviders", n => { UserFederationProviders = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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()?.ToList(); } }, + { "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()?.ToList(); } }, - { "webAuthnPolicyPasswordlessAcceptableAaguids", n => { WebAuthnPolicyPasswordlessAcceptableAaguids = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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()?.ToList(); } }, + { "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()?.ToList(); } }, + { "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()?.ToList(); } }, + { "webAuthnPolicySignatureAlgorithms", n => { WebAuthnPolicySignatureAlgorithms = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "webAuthnPolicyUserVerificationRequirement", n => { WebAuthnPolicyUserVerificationRequirement = n.GetStringValue(); } }, }; } @@ -1015,34 +1017,34 @@ 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.WriteEnumValue("bruteForceStrategy", BruteForceStrategy); + writer.WriteEnumValue("bruteForceStrategy", BruteForceStrategy); 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); @@ -1058,15 +1060,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); @@ -1076,11 +1078,11 @@ 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.WriteCollectionOfObjectValues("organizations", Organizations); writer.WriteBoolValue("organizationsEnabled", OrganizationsEnabled); writer.WriteStringValue("otpPolicyAlgorithm", OtpPolicyAlgorithm); writer.WriteBoolValue("otpPolicyCodeReusable", OtpPolicyCodeReusable); @@ -1094,7 +1096,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); @@ -1106,16 +1108,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); @@ -1124,10 +1126,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); @@ -1156,3 +1158,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_applicationScopeMappings.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_applicationScopeMappings.cs index 03b721c9..23eaeda0 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_applicationScopeMappings.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_applicationScopeMappings.cs @@ -1,20 +1,22 @@ // +#pragma warning disable CS0618 +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 { [Obsolete("")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RealmRepresentation_applicationScopeMappings : IAdditionalDataHolder, IParsable + 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() { @@ -23,12 +25,12 @@ public RealmRepresentation_applicationScopeMappings() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_applicationScopeMappings(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_applicationScopeMappings(); } /// /// The deserialization information for the current model @@ -51,3 +53,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_attributes.cs index 8ab9c2c0..7c7fb743 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_attributes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RealmRepresentation_attributes : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public RealmRepresentation_attributes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_attributes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_browserSecurityHeaders.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_browserSecurityHeaders.cs index 77695a2d..d5ff2ddb 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_browserSecurityHeaders.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_browserSecurityHeaders.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RealmRepresentation_browserSecurityHeaders : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public RealmRepresentation_browserSecurityHeaders() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_browserSecurityHeaders(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_browserSecurityHeaders(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_clientScopeMappings.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_clientScopeMappings.cs index 58926bd5..9cf2172a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_clientScopeMappings.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_clientScopeMappings.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RealmRepresentation_clientScopeMappings : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public RealmRepresentation_clientScopeMappings() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_clientScopeMappings(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_clientScopeMappings(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_localizationTexts.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_localizationTexts.cs index c47ba653..e833e493 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_localizationTexts.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_localizationTexts.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RealmRepresentation_localizationTexts : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public RealmRepresentation_localizationTexts() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_localizationTexts(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_localizationTexts(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_smtpServer.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_smtpServer.cs index 7f762a15..d8a5231b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_smtpServer.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_smtpServer.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RealmRepresentation_smtpServer : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public RealmRepresentation_smtpServer() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_smtpServer(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_smtpServer(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_socialProviders.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_socialProviders.cs index 06f61d01..8a6713a4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_socialProviders.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RealmRepresentation_socialProviders.cs @@ -1,20 +1,22 @@ // +#pragma warning disable CS0618 +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 { [Obsolete("")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RealmRepresentation_socialProviders : IAdditionalDataHolder, IParsable + 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() { @@ -23,12 +25,12 @@ public RealmRepresentation_socialProviders() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_socialProviders(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RealmRepresentation_socialProviders(); } /// /// The deserialization information for the current model @@ -51,3 +53,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigInfoRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigInfoRepresentation.cs index 3be806b6..32566ef9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigInfoRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigInfoRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RequiredActionConfigInfoRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,13 +17,13 @@ public class RequiredActionConfigInfoRepresentation : IAdditionalDataHolder, IPa /// 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 RequiredActionConfigInfoRepresentation() { @@ -30,12 +32,12 @@ public RequiredActionConfigInfoRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigInfoRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigInfoRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigInfoRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigInfoRepresentation(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "properties", n => { Properties = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ConfigPropertyRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "properties", n => { Properties = n.GetCollectionOfObjectValues(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ConfigPropertyRepresentation.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -55,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteCollectionOfObjectValues("properties", Properties); + writer.WriteCollectionOfObjectValues("properties", Properties); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation.cs index 22904eab..4cbec093 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RequiredActionConfigRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,13 +17,13 @@ public class RequiredActionConfigRepresentation : IAdditionalDataHolder, IParsab /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config? Config { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config Config { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public RequiredActionConfigRepresentation() { @@ -30,12 +32,12 @@ public RequiredActionConfigRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "config", n => { Config = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config.CreateFromDiscriminatorValue); } }, + { "config", n => { Config = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config.CreateFromDiscriminatorValue); } }, }; } /// @@ -55,8 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("config", Config); + writer.WriteObjectValue("config", Config); writer.WriteAdditionalData(AdditionalData); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation_config.cs index 8484d93d..4beda66c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionConfigRepresentation_config.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RequiredActionConfigRepresentation_config : IAdditionalDataHolder, IParsable + 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. + /// Instantiates a new and sets the default values. /// public RequiredActionConfigRepresentation_config() { @@ -22,12 +24,12 @@ public RequiredActionConfigRepresentation_config() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionConfigRepresentation_config(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation.cs index 451a3c60..9f947183 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RequiredActionProviderRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -23,10 +25,10 @@ public class RequiredActionProviderRepresentation : IAdditionalDataHolder, IPars /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation_config? Config { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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; } @@ -51,7 +53,7 @@ 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() { @@ -60,12 +62,12 @@ public RequiredActionProviderRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation(); } /// /// The deserialization information for the current model @@ -76,7 +78,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "alias", n => { Alias = n.GetStringValue(); } }, - { "config", n => { Config = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation_config.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -92,7 +94,7 @@ 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); @@ -102,3 +104,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation_config.cs index d467df33..6814d261 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RequiredActionProviderRepresentation_config.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RequiredActionProviderRepresentation_config : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public RequiredActionProviderRepresentation_config() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RequiredActionProviderRepresentation_config(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceOwnerRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceOwnerRepresentation.cs index 73d899e7..5166179b 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceOwnerRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceOwnerRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ResourceOwnerRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -29,7 +31,7 @@ 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() { @@ -38,12 +40,12 @@ public ResourceOwnerRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceOwnerRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceOwnerRepresentation(); } /// /// The deserialization information for the current model @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation.cs index 4c796843..26347a63 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ResourceRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class ResourceRepresentation : IAdditionalDataHolder, IParsable /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -55,28 +57,28 @@ public class ResourceRepresentation : IAdditionalDataHolder, IParsable /// The owner property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_owner? Owner { get; private set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_owner? Owner { get; private set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -104,7 +106,7 @@ 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() { @@ -113,12 +115,12 @@ public ResourceRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation(); } /// /// The deserialization information for the current model @@ -128,18 +130,18 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "attributes", n => { Attributes = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_owner.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "scopesUma", n => { ScopesUma = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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()?.ToList(); } }, + { "uris", n => { Uris = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -149,14 +151,14 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -164,3 +166,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_attributes.cs index 971e20d9..f0a301e3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_attributes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ResourceRepresentation_attributes : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public ResourceRepresentation_attributes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_attributes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_owner.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_owner.cs index 831b932f..d678430c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_owner.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceRepresentation_owner.cs @@ -1,24 +1,26 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ResourceRepresentation_owner : Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceOwnerRepresentation, IParsable + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_owner(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation_owner(); } /// /// The deserialization information for the current model @@ -41,3 +43,4 @@ public override void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceServerRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceServerRepresentation.cs index 579ef4e8..995dfbdb 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceServerRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ResourceServerRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ResourceServerRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -23,7 +25,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 @@ -43,31 +45,31 @@ 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() { @@ -76,12 +78,12 @@ public ResourceServerRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceServerRepresentation(); } /// /// The deserialization information for the current model @@ -93,13 +95,13 @@ public virtual IDictionary> GetFieldDeserializers() { { "allowRemoteResourceManagement", n => { AllowRemoteResourceManagement = n.GetBoolValue(); } }, { "clientId", n => { ClientId = n.GetStringValue(); } }, - { "decisionStrategy", n => { DecisionStrategy = n.GetEnumValue(); } }, + { "decisionStrategy", n => { DecisionStrategy = n.GetEnumValue(); } }, { "id", n => { Id = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "policies", n => { Policies = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "policyEnforcementMode", n => { PolicyEnforcementMode = n.GetEnumValue(); } }, - { "resources", n => { Resources = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "scopes", n => { Scopes = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, }; } /// @@ -111,14 +113,15 @@ 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation.cs index a757a8f8..47dd1994 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RoleRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class RoleRepresentation : IAdditionalDataHolder, IParsable /// The attributes property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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; } @@ -27,10 +29,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 @@ -68,7 +70,7 @@ 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() { @@ -77,12 +79,12 @@ public RoleRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation(); } /// /// The deserialization information for the current model @@ -92,10 +94,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "attributes", n => { Attributes = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation_attributes.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.Composites.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -110,10 +112,10 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -123,3 +125,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation_attributes.cs index a2d9be28..17d8328e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RoleRepresentation_attributes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RoleRepresentation_attributes : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public RoleRepresentation_attributes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation_attributes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation.cs index f9f4d6dd..41683996 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RolesRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -16,29 +18,29 @@ public class RolesRepresentation : IAdditionalDataHolder, IParsable [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_application? Application { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_application? Application { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_client? Client { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_client? Client { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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() { @@ -47,12 +49,12 @@ public RolesRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation(); } /// /// The deserialization information for the current model @@ -62,9 +64,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "application", n => { Application = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_application.CreateFromDiscriminatorValue); } }, - { "client", n => { Client = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_client.CreateFromDiscriminatorValue); } }, - { "realm", n => { Realm = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RoleRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, }; } /// @@ -74,10 +76,11 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_application.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_application.cs index 0498be24..d175fc0e 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_application.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_application.cs @@ -1,20 +1,22 @@ // +#pragma warning disable CS0618 +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 { [Obsolete("")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RolesRepresentation_application : IAdditionalDataHolder, IParsable + 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() { @@ -23,12 +25,12 @@ public RolesRepresentation_application() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_application(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_application(); } /// /// The deserialization information for the current model @@ -51,3 +53,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_client.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_client.cs index 507efea0..20a59c18 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_client.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/RolesRepresentation_client.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class RolesRepresentation_client : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public RolesRepresentation_client() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_client(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.RolesRepresentation_client(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeMappingRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeMappingRepresentation.cs index afe66bbd..c6d44991 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeMappingRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeMappingRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ScopeMappingRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -54,7 +56,7 @@ 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() { @@ -63,12 +65,12 @@ public ScopeMappingRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeMappingRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeMappingRepresentation(); } /// /// The deserialization information for the current model @@ -81,7 +83,7 @@ public virtual IDictionary> GetFieldDeserializers() { "client", n => { Client = n.GetStringValue(); } }, { "clientScope", n => { ClientScope = n.GetStringValue(); } }, { "clientTemplate", n => { ClientTemplate = n.GetStringValue(); } }, - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "self", n => { Self = n.GetStringValue(); } }, }; } @@ -101,3 +103,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeRepresentation.cs index 7b520441..b7515198 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/ScopeRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class ScopeRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -47,21 +49,21 @@ 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() { @@ -70,12 +72,12 @@ public ScopeRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ScopeRepresentation(); } /// /// The deserialization information for the current model @@ -89,8 +91,8 @@ public virtual IDictionary> GetFieldDeserializers() { "iconUri", n => { IconUri = n.GetStringValue(); } }, { "id", n => { Id = n.GetStringValue(); } }, { "name", n => { Name = n.GetStringValue(); } }, - { "policies", n => { Policies = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.PolicyRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "resources", n => { Resources = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.ResourceRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, }; } /// @@ -104,9 +106,10 @@ public virtual void Serialize(ISerializationWriter writer) 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/SocialLinkRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/SocialLinkRepresentation.cs index 66207a8b..5a8183e7 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/SocialLinkRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/SocialLinkRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class SocialLinkRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -37,7 +39,7 @@ 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() { @@ -46,12 +48,12 @@ public SocialLinkRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.SocialLinkRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.SocialLinkRepresentation(); } /// /// The deserialization information for the current model @@ -80,3 +82,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute.cs index b27efad1..f2fe4e60 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UPAttribute : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class UPAttribute : IAdditionalDataHolder, IParsable /// The annotations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_annotations? Annotations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_annotations? Annotations { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -49,37 +51,37 @@ public class UPAttribute : IAdditionalDataHolder, IParsable /// The permissions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributePermissions? Permissions { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributePermissions? Permissions { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeRequired? Required { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeRequired? Required { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeSelector? Selector { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeSelector? Selector { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_validations? Validations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_validations? Validations { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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() { @@ -88,12 +90,12 @@ public UPAttribute() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute(); } /// /// The deserialization information for the current model @@ -103,15 +105,15 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "annotations", n => { Annotations = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_annotations.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributePermissions.CreateFromDiscriminatorValue); } }, - { "required", n => { Required = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeRequired.CreateFromDiscriminatorValue); } }, - { "selector", n => { Selector = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeSelector.CreateFromDiscriminatorValue); } }, - { "validations", n => { Validations = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_validations.CreateFromDiscriminatorValue); } }, + { "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); } }, }; } /// @@ -121,16 +123,17 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributePermissions.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributePermissions.cs index 9cc9af6f..16e6887f 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributePermissions.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributePermissions.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UPAttributePermissions : IAdditionalDataHolder, IParsable + 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. @@ -29,7 +31,7 @@ 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() { @@ -38,12 +40,12 @@ public UPAttributePermissions() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributePermissions(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributePermissions(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "edit", n => { Edit = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "view", n => { View = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "edit", n => { Edit = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "view", n => { View = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeRequired.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeRequired.cs index 284c494a..2d4c1be8 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeRequired.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeRequired.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UPAttributeRequired : IAdditionalDataHolder, IParsable + 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. @@ -29,7 +31,7 @@ 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() { @@ -38,12 +40,12 @@ public UPAttributeRequired() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeRequired(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeRequired(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -70,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeSelector.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeSelector.cs index 865b04a6..f5cca3b5 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeSelector.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttributeSelector.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UPAttributeSelector : IAdditionalDataHolder, IParsable + 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. @@ -21,7 +23,7 @@ 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() { @@ -30,12 +32,12 @@ public UPAttributeSelector() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeSelector(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttributeSelector(); } /// /// The deserialization information for the current model @@ -45,7 +47,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "scopes", n => { Scopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, }; } /// @@ -60,3 +62,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_annotations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_annotations.cs index 6a68ad54..be266a5c 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_annotations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_annotations.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UPAttribute_annotations : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public UPAttribute_annotations() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_annotations(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_annotations(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_validations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_validations.cs index ddf94c0d..e89628ea 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_validations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPAttribute_validations.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UPAttribute_validations : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public UPAttribute_validations() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_validations(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute_validations(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPConfig.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPConfig.cs index 0af0dbdf..d66b1a64 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPConfig.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPConfig.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UPConfig : IAdditionalDataHolder, IParsable + 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. @@ -15,23 +17,23 @@ public class UPConfig : IAdditionalDataHolder, IParsable /// 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() { @@ -40,12 +42,12 @@ public UPConfig() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPConfig(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPConfig(); } /// /// The deserialization information for the current model @@ -55,9 +57,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "attributes", n => { Attributes = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPAttribute.CreateFromDiscriminatorValue)?.ToList(); } }, - { "groups", n => { Groups = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup.CreateFromDiscriminatorValue)?.ToList(); } }, - { "unmanagedAttributePolicy", n => { UnmanagedAttributePolicy = n.GetEnumValue(); } }, + { "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(); } }, }; } /// @@ -67,10 +69,11 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup.cs index 88085dae..d0206800 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UPGroup : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class UPGroup : IAdditionalDataHolder, IParsable /// The annotations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup_annotations? Annotations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup_annotations? Annotations { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -45,7 +47,7 @@ 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() { @@ -54,12 +56,12 @@ public UPGroup() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup(); } /// /// The deserialization information for the current model @@ -69,7 +71,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "annotations", n => { Annotations = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup_annotations.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -82,7 +84,7 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup_annotations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup_annotations.cs index b5198641..34df5ea3 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup_annotations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UPGroup_annotations.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UPGroup_annotations : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public UPGroup_annotations() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup_annotations(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UPGroup_annotations(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UnmanagedAttributePolicy.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UnmanagedAttributePolicy.cs index 7f5917f9..6bf65702 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UnmanagedAttributePolicy.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UnmanagedAttributePolicy.cs @@ -3,6 +3,7 @@ using System; namespace Keycloak.AuthServices.Sdk.Kiota.Admin.Models { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 public enum UnmanagedAttributePolicy #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 d52d85cf..30a6116a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserConsentRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserConsentRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserConsentRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -42,7 +44,7 @@ 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() { @@ -51,12 +53,12 @@ public UserConsentRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserConsentRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserConsentRepresentation(); } /// /// The deserialization information for the current model @@ -68,8 +70,8 @@ public virtual IDictionary> GetFieldDeserializers() { { "clientId", n => { ClientId = n.GetStringValue(); } }, { "createdDate", n => { CreatedDate = n.GetLongValue(); } }, - { "grantedClientScopes", n => { GrantedClientScopes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - { "grantedRealmRoles", n => { GrantedRealmRoles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "grantedClientScopes", n => { GrantedClientScopes = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "grantedRealmRoles", n => { GrantedRealmRoles = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "lastUpdatedDate", n => { LastUpdatedDate = n.GetLongValue(); } }, }; } @@ -89,3 +91,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation.cs index 0fb6a950..c9f4fa63 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserFederationMapperRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class UserFederationMapperRepresentation : IAdditionalDataHolder, IParsab /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation_config? Config { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -53,7 +55,7 @@ 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() { @@ -62,12 +64,12 @@ public UserFederationMapperRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation(); } /// /// The deserialization information for the current model @@ -77,7 +79,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "config", n => { Config = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation_config.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -91,7 +93,7 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -100,3 +102,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation_config.cs index dafb9e11..c7720b20 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationMapperRepresentation_config.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserFederationMapperRepresentation_config : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public UserFederationMapperRepresentation_config() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationMapperRepresentation_config(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation.cs index afc4c971..b78327bd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserFederationProviderRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -17,10 +19,10 @@ public class UserFederationProviderRepresentation : IAdditionalDataHolder, IPars /// The config property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation_config? Config { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation_config? Config { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -53,7 +55,7 @@ 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() { @@ -62,12 +64,12 @@ public UserFederationProviderRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation(); } /// /// The deserialization information for the current model @@ -78,7 +80,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "changedSyncPeriod", n => { ChangedSyncPeriod = n.GetIntValue(); } }, - { "config", n => { Config = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation_config.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -95,7 +97,7 @@ 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); @@ -106,3 +108,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation_config.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation_config.cs index 0eaf6672..0ae4d007 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation_config.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserFederationProviderRepresentation_config.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserFederationProviderRepresentation_config : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public UserFederationProviderRepresentation_config() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation_config(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserFederationProviderRepresentation_config(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata.cs index b00cffad..2a6b9ae9 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserProfileAttributeGroupMetadata : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class UserProfileAttributeGroupMetadata : IAdditionalDataHolder, IParsabl /// The annotations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata_annotations? Annotations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata_annotations? Annotations { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -45,7 +47,7 @@ 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() { @@ -54,12 +56,12 @@ public UserProfileAttributeGroupMetadata() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata(); } /// /// The deserialization information for the current model @@ -69,7 +71,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "annotations", n => { Annotations = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata_annotations.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -82,7 +84,7 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -90,3 +92,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata_annotations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata_annotations.cs index 0796de99..ebd936fb 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata_annotations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeGroupMetadata_annotations.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserProfileAttributeGroupMetadata_annotations : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public UserProfileAttributeGroupMetadata_annotations() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata_annotations(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata_annotations(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata.cs index a19fe1bf..d9abd876 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserProfileAttributeMetadata : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class UserProfileAttributeMetadata : IAdditionalDataHolder, IParsable /// The annotations property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_annotations? Annotations { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_annotations? Annotations { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -53,13 +55,13 @@ public class UserProfileAttributeMetadata : IAdditionalDataHolder, IParsable /// The validators property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_validators? Validators { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_validators? Validators { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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() { @@ -68,12 +70,12 @@ public UserProfileAttributeMetadata() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata(); } /// /// The deserialization information for the current model @@ -83,14 +85,14 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "annotations", n => { Annotations = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_annotations.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_validators.CreateFromDiscriminatorValue); } }, + { "validators", n => { Validators = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_validators.CreateFromDiscriminatorValue); } }, }; } /// @@ -100,15 +102,16 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_annotations.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_annotations.cs index 8aa63c7b..7063117a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_annotations.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_annotations.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserProfileAttributeMetadata_annotations : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public UserProfileAttributeMetadata_annotations() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_annotations(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_annotations(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_validators.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_validators.cs index d965cbbb..d6fb39bd 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_validators.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileAttributeMetadata_validators.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserProfileAttributeMetadata_validators : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public UserProfileAttributeMetadata_validators() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_validators(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata_validators(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileMetadata.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileMetadata.cs index d81c80c9..218415e6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileMetadata.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserProfileMetadata.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserProfileMetadata : IAdditionalDataHolder, IParsable + 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. @@ -15,21 +17,21 @@ public class UserProfileMetadata : IAdditionalDataHolder, IParsable /// 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() { @@ -38,12 +40,12 @@ public UserProfileMetadata() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata(); } /// /// The deserialization information for the current model @@ -53,8 +55,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "attributes", n => { Attributes = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeMetadata.CreateFromDiscriminatorValue)?.ToList(); } }, - { "groups", n => { Groups = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileAttributeGroupMetadata.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(); } }, }; } /// @@ -64,9 +66,10 @@ public virtual IDictionary> GetFieldDeserializers() 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation.cs index f9088879..1f62366a 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation.cs @@ -1,22 +1,24 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserRepresentation : IAdditionalDataHolder, IParsable + 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_access? Access { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_access? Access { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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; } @@ -24,44 +26,44 @@ public class UserRepresentation : IAdditionalDataHolder, IParsable [Obsolete("")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_applicationRoles? ApplicationRoles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_applicationRoles? ApplicationRoles { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_attributes? Attributes { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_attributes? Attributes { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_clientRoles? ClientRoles { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_clientRoles? ClientRoles { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -86,10 +88,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 @@ -177,10 +179,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; } @@ -195,13 +197,13 @@ 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() { @@ -210,12 +212,12 @@ public UserRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation(); } /// /// The deserialization information for the current model @@ -225,32 +227,32 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "access", n => { Access = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_access.CreateFromDiscriminatorValue); } }, - { "applicationRoles", n => { ApplicationRoles = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_applicationRoles.CreateFromDiscriminatorValue); } }, - { "attributes", n => { Attributes = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_attributes.CreateFromDiscriminatorValue); } }, - { "clientConsents", n => { ClientConsents = n.GetCollectionOfObjectValues(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserConsentRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "clientRoles", n => { ClientRoles = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_clientRoles.CreateFromDiscriminatorValue); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.CredentialRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, - { "disableableCredentialTypes", n => { DisableableCredentialTypes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.FederatedIdentityRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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()?.ToList(); } }, + { "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()?.ToList(); } }, - { "requiredActions", n => { RequiredActions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.SocialLinkRepresentation.CreateFromDiscriminatorValue)?.ToList(); } }, + { "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(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata.CreateFromDiscriminatorValue); } }, + { "userProfileMetadata", n => { UserProfileMetadata = n.GetObjectValue(global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserProfileMetadata.CreateFromDiscriminatorValue); } }, { "username", n => { Username = n.GetStringValue(); } }, }; } @@ -261,18 +263,18 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -284,11 +286,12 @@ 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); } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_access.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_access.cs index 4112fb75..515af909 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_access.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_access.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserRepresentation_access : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public UserRepresentation_access() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_access(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_access(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_applicationRoles.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_applicationRoles.cs index 49830afa..1aa0b27d 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_applicationRoles.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_applicationRoles.cs @@ -1,20 +1,22 @@ // +#pragma warning disable CS0618 +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 { [Obsolete("")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserRepresentation_applicationRoles : IAdditionalDataHolder, IParsable + 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() { @@ -23,12 +25,12 @@ public UserRepresentation_applicationRoles() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_applicationRoles(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_applicationRoles(); } /// /// The deserialization information for the current model @@ -51,3 +53,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_attributes.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_attributes.cs index a40a427a..fba289a4 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_attributes.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_attributes.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserRepresentation_attributes : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public UserRepresentation_attributes() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_attributes(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_attributes(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_clientRoles.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_clientRoles.cs index c54bafa4..59832db6 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_clientRoles.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserRepresentation_clientRoles.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserRepresentation_clientRoles : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public UserRepresentation_clientRoles() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_clientRoles(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserRepresentation_clientRoles(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation.cs index a23a2b5a..fa059fea 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation.cs @@ -1,13 +1,15 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserSessionRepresentation : IAdditionalDataHolder, IParsable + 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. @@ -15,10 +17,10 @@ public class UserSessionRepresentation : IAdditionalDataHolder, IParsable /// The clients property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation_clients? Clients { get; set; } + public global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation_clients? Clients { get; set; } #nullable restore #else - public Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 @@ -61,7 +63,7 @@ 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() { @@ -70,12 +72,12 @@ public UserSessionRepresentation() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation(); } /// /// The deserialization information for the current model @@ -85,7 +87,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - { "clients", n => { Clients = n.GetObjectValue(Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation_clients.CreateFromDiscriminatorValue); } }, + { "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(); } }, @@ -103,7 +105,7 @@ public virtual IDictionary> GetFieldDeserializers() 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); @@ -116,3 +118,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618 diff --git a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation_clients.cs b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation_clients.cs index d1e20168..b347dd58 100644 --- a/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation_clients.cs +++ b/src/Keycloak.AuthServices.Sdk.Kiota/Models/UserSessionRepresentation_clients.cs @@ -1,19 +1,21 @@ // +#pragma warning disable CS0618 +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 { + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] #pragma warning disable CS1591 - public class UserSessionRepresentation_clients : IAdditionalDataHolder, IParsable + 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() { @@ -22,12 +24,12 @@ public UserSessionRepresentation_clients() /// /// 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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.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 Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation_clients(); + return new global::Keycloak.AuthServices.Sdk.Kiota.Admin.Models.UserSessionRepresentation_clients(); } /// /// The deserialization information for the current model @@ -50,3 +52,4 @@ public virtual void Serialize(ISerializationWriter writer) } } } +#pragma warning restore CS0618