GCP Cloud Finctions source_repository throwing exception

I am trying to use GCP cloud functions as described in terraform documentation similar to following:

resource “google_cloudfunctions_function” “my-function” {

source_repository = {
url = “https://source.developers.google.com/projects/terraform-project/repos/my_repositoryt/moveable-aliases/master/paths/

}

}

but when I am running terraform plan, it is throwing following exception:

An argument named “source_repository” is not expected here. Did you mean to
define a block of type “source_repository”?

Can anyone help me what is going wrong here?

I am using terraform version 0.12.25

Sorry I found the solution myself. Instead of assigning a block to source_repository, it need to defined as following, no assignment i.e. NO “equal to” sign, just define itself as a block.

source_repository {
url = “https://source.developers.google.com/projects/terraform-project/repos/my_repositoryt/moveable-aliases/master/paths/
}