Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloud run v2 iam support #7091

Merged
merged 2 commits into from
Jan 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions mmv1/products/cloudrunv2/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ objects:
error: !ruby/object:Api::OpAsync::Error
path: "error"
message: "message"
iam_policy: !ruby/object:Api::Resource::IamPolicy
method_name_separator: ':'
parent_resource_attribute: 'name'
base_url: projects/{{project}}/locations/{{location}}/jobs/{{name}}
import_format: ["projects/{{project}}/locations/{{location}}/jobs/{{name}}", "{{name}}"]
parameters:
- !ruby/object:Api::Type::String
name: "location"
Expand Down Expand Up @@ -669,6 +674,11 @@ objects:
api: "https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services"
description: |
Service acts as a top-level container that manages a set of configurations and revision templates which implement a network service. Service exists to provide a singular abstraction which can be access controlled, reasoned about, and which encapsulates software lifecycle decisions such as rollout policy and team resource ownership.
iam_policy: !ruby/object:Api::Resource::IamPolicy
method_name_separator: ':'
parent_resource_attribute: 'name'
base_url: projects/{{project}}/locations/{{location}}/services/{{name}}
import_format: ["projects/{{project}}/locations/{{location}}/services/{{name}}", "{{name}}"]
async: !ruby/object:Api::OpAsync
operation: !ruby/object:Api::OpAsync::Operation
path: "name"
Expand Down
4 changes: 2 additions & 2 deletions mmv1/products/cloudrunv2/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ overrides: !ruby/object:Overrides::ResourceOverrides
- !ruby/object:Provider::Terraform::Examples
name: "cloudrunv2_job_basic"
primary_resource_id: "default"
primary_resource_name: "fmt.Sprintf(\"tf-test-cloudrun-srv%s\", context[\"random_suffix\"])"
primary_resource_name: "fmt.Sprintf(\"tf-test-cloudrun-job%s\", context[\"random_suffix\"])"
vars:
cloud_run_job_name: "cloudrun-job"
- !ruby/object:Provider::Terraform::Examples
Expand Down Expand Up @@ -96,7 +96,7 @@ overrides: !ruby/object:Overrides::ResourceOverrides
- !ruby/object:Provider::Terraform::Examples
name: "cloudrunv2_service_basic"
primary_resource_id: "default"
primary_resource_name: "fmt.Sprintf(\"tf-test-cloudrun-srv%s\", context[\"random_suffix\"])"
primary_resource_name: "fmt.Sprintf(\"tf-test-cloudrun-service%s\", context[\"random_suffix\"])"
vars:
cloud_run_service_name: "cloudrun-service"
- !ruby/object:Provider::Terraform::Examples
Expand Down