def test_update_repository_properties_kwargs(self, containerregistry_endpoint):
        repo = self.get_resource_name("repo")
        tag = self.get_resource_name("tag")
        self.import_image(containerregistry_endpoint, HELLO_WORLD, ["{}:{}".format(repo, tag)])

        client = self.create_registry_client(containerregistry_endpoint)

        properties = client.get_repository_properties(repo)
        properties = self.set_all_properties(properties, True)
        received = client.update_repository_properties(repo, properties)
        self.assert_all_properties(properties, True)

        received = client.update_repository_properties(repo, can_delete=False)
        assert received.can_delete == False
        assert received.can_list == True
        assert received.can_read == True
        assert received.can_write == True

        received = client.update_repository_properties(repo, can_read=False)
        assert received.can_delete == False
        assert received.can_list == True
        assert received.can_read == False
        assert received.can_write == True

        received = client.update_repository_properties(repo, can_write=False)
        assert received.can_delete == False
        assert received.can_list == True
        assert received.can_read == False
        assert received.can_write == False

        received = client.update_repository_properties(repo, can_list=False)
        assert received.can_delete == False
        assert received.can_list == False
        assert received.can_read == False
        assert received.can_write == False

        received = client.update_repository_properties(
            repo,
            can_delete=True,
            can_read=True,
            can_write=True,
            can_list=True,
        )

        self.assert_all_properties(received, True)