Skip to content

Commit

Permalink
feat(vertexai): Add IAM resources for Vertex AI FeatureStore EntityTy…
Browse files Browse the repository at this point in the history
…pe (beta) (GoogleCloudPlatform#6789)

* feat: add the iam resources for featurestore entitytype

* fix: fix the unit test errors
  • Loading branch information
shotarok authored and hao-nan-li committed Dec 6, 2022
1 parent 2a25f46 commit b082cdb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mmv1/products/vertexai/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,14 @@ objects:
'Official Documentation':
'https://cloud.google.com/vertex-ai/docs'
api: 'https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.featurestores.entityTypes'
iam_policy: !ruby/object:Api::Resource::IamPolicy
method_name_separator: ':'
fetch_iam_policy_verb: :POST
parent_resource_type: featurestore
parent_resource_attribute: entitytype
import_format: ['{{%featurestore}}/entityTypes/{{name}}', '{{name}}']
example_config_body: 'templates/terraform/iam/example_config_body/vertex_ai_featurestore_entitytype.tf.erb'
min_version: beta
async: !ruby/object:Api::OpAsync
actions:
- create
Expand Down
1 change: 1 addition & 0 deletions mmv1/products/vertexai/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ overrides: !ruby/object:Overrides::ResourceOverrides
- !ruby/object:Provider::Terraform::Examples
name: "vertex_ai_featurestore_entitytype"
primary_resource_id: "entity"
primary_resource_name: "fmt.Sprintf(\"projects/%s/locations/%s/featurestores/%s\", getTestProjectFromEnv(), getTestRegionFromEnv(), fmt.Sprintf(\"terraform%s\", context[\"random_suffix\"])), fmt.Sprintf(\"terraform%s\", context[\"random_suffix\"])"
vars:
name: "terraform"
project: "vertex-ai"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
featurestore = google_vertex_ai_featurestore_entitytype.entity.featurestore
entitytype = google_vertex_ai_featurestore_entitytype.entity.name

0 comments on commit b082cdb

Please sign in to comment.