private static void KeystoneAssociateGroupWithProjectPermission(IamClient iamClient) { var keystoneGrantPermissionToGroupOnProjectRequest = new KeystoneAssociateGroupWithProjectPermissionRequest() { ProjectId = "", GroupId = "", RoleId = "", }; try { var keystoneGrantPermissionToGroupOnProjectResponse = iamClient.KeystoneAssociateGroupWithProjectPermission(keystoneGrantPermissionToGroupOnProjectRequest); Console.WriteLine( JsonConvert.SerializeObject(keystoneGrantPermissionToGroupOnProjectResponse.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); } }