OCISDK/OCISDK/Identity/identityClient.cs
/// <summary>
/// Gets the specified UserGroupMembership's information.
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
Gets the specified UserGroupMembership's information.
Gets the specified UserGroupMembership ' s information .
public GetUserGroupMembershipResponse GetUserGroupMembership(GetUserGroupMembershipRequest request)
        {
            var uri = new Uri($"{GetEndPoint(IdentityServices.UserGroupMemberships, this.Region)}/{request.UserGroupMembershipId}");
            using (var webResponse = this.RestClient.Get(uri))
            using (var stream = webResponse.GetResponseStream())
            using (var reader = new StreamReader(stream))
            {
                var response = reader.ReadToEnd();
                return new GetUserGroupMembershipResponse()
                {
                    UserGroupMembership = JsonSerializer.Deserialize<UserGroupMembership>(response),
                    OpcRequestId = webResponse.Headers.Get("opc-request-id"),
                    ETag = webResponse.Headers.Get("ETag")
                };
            }
        }
public GetUserGroupMembershipResponse GetUserGroupMembership ( GetUserGroupMembershipRequest request ) { var uri = new Uri ( $" { GetEndPoint ( IdentityServices . UserGroupMemberships , this . Region ) } / { request . UserGroupMembershipId } " ) ; using ( var webResponse = this . RestClient . Get ( uri ) ) using ( var stream = webResponse . GetResponseStream ( ) ) using ( var reader = new StreamReader ( stream ) ) { var response = reader . ReadToEnd ( ) ; return new GetUserGroupMembershipResponse ( ) { UserGroupMembership = JsonSerializer . Deserialize < UserGroupMembership > ( response ) , OpcRequestId = webResponse . Headers . Get ( " " ) , ETag = webResponse . Headers . Get ( " " ) } ; } }
Gets the specified UserGroupMembership's information.
Gets the specified UserGroupMembership ' s information .
None
request
GetUserGroupMembershipRequest
None