OCISDK/OCISDK/Identity/identityClient.cs
/// <summary>
/// Updates the the specified tag definition. You can update description, and isRetired.
/// </summary>
/// <param name="updateRequest"></param>
/// <returns></returns>
Updates the the specified tag definition. You can update description, and isRetired.
Updates the the specified tag definition . You can update description and isRetired .
public UpdateTagResponse UpdateTag(UpdateTagRequest updateRequest)
        {
            var uri = new Uri(
                $"{GetEndPoint(IdentityServices.TagNamespaces, this.Region)}/{updateRequest.TagNamespaceId}/tags/" +
                $"{updateRequest.TagName}");
            using (var webResponse = this.RestClient.Put(uri, updateRequest.UpdateTagDetails))
            using (var stream = webResponse.GetResponseStream())
            using (var reader = new StreamReader(stream))
            {
                var response = reader.ReadToEnd();
                return new UpdateTagResponse()
                {
                    Tag = JsonSerializer.Deserialize<Tag>(response),
                    OpcRequestId = webResponse.Headers.Get("opc-request-id")
                };
            }
        }
public UpdateTagResponse UpdateTag ( UpdateTagRequest updateRequest ) { var uri = new Uri ( $" { GetEndPoint ( IdentityServices . TagNamespaces , this . Region ) } / { updateRequest . TagNamespaceId } /tags/ " + $" { updateRequest . TagName } " ) ; using ( var webResponse = this . RestClient . Put ( uri , updateRequest . UpdateTagDetails ) ) using ( var stream = webResponse . GetResponseStream ( ) ) using ( var reader = new StreamReader ( stream ) ) { var response = reader . ReadToEnd ( ) ; return new UpdateTagResponse ( ) { Tag = JsonSerializer . Deserialize < Tag > ( response ) , OpcRequestId = webResponse . Headers . Get ( " " ) } ; } }
Updates the the specified tag definition.
Updates the the specified tag definition .
None
updateRequest
UpdateTagRequest
None