private static void CheckDomainPermissionForAgency(IamClient iamV3Client)
        {
            var checkPermissionForAgencyOnDomainRequest = new CheckDomainPermissionForAgencyRequest()
            {
                DomainId = "",
                AgencyId = "",
                RoleId   = ""
            };

            try
            {
                var checkPermissionForAgencyOnDomainResponse =
                    iamV3Client.CheckDomainPermissionForAgency(checkPermissionForAgencyOnDomainRequest);
                Console.WriteLine(JsonConvert.SerializeObject(checkPermissionForAgencyOnDomainResponse.HttpStatusCode));
            }
            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);
            }
        }