private static void UpdateAgency(IamClient iamClient)
        {
            var updateAgencyRequest = new UpdateAgencyRequest()
            {
                AgencyId = "",
                Body     = new UpdateAgencyRequestBody()
                {
                    Agency = new UpdateAgencyOption()
                    {
                        Description     = "",
                        Duration        = UpdateAgencyOption.DurationEnum.ONEDAY,
                        TrustDomainId   = "",
                        TrustDomainName = ""
                    }
                }
            };

            try
            {
                var updateAgencyResponse = iamClient.UpdateAgency(updateAgencyRequest);
                Console.WriteLine(JsonConvert.SerializeObject(updateAgencyResponse.Agency));
            }
            catch (RequestTimeoutException requestTimeoutException)
            {
                Console.WriteLine(requestTimeoutException.ErrorMessage);
            }
            catch (ServiceResponseException clientRequestException)
            {
                Console.WriteLine(clientRequestException.HttpStatusCode);
                Console.WriteLine(clientRequestException.ErrorCode);
                Console.WriteLine(clientRequestException.ErrorMsg);
            }
            catch (ConnectionException connectionException)
            {
                Console.WriteLine(connectionException.ErrorMessage);
            }
        }