Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed Feb 1, 2024
1 parent 137bf32 commit a0dcfb0
Show file tree
Hide file tree
Showing 45 changed files with 688 additions and 73 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
run: go test ./... -coverprofile=./cover.out

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@9cc74bf7e13a810454a28846494ddbc3795eb693 # v3.1.6
uses: codecov/codecov-action@edd20798ab377991aad21abfb1f2d5e093b681e8 # v4.0.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
22 changes: 0 additions & 22 deletions src/coverage/google.md
Original file line number Diff line number Diff line change
Expand Up @@ -667,28 +667,6 @@ Datasource percentage coverage 91.35
./resource.ps1 google_tags_tag_value_iam_policy
./resource.ps1 google_tpu_node
./resource.ps1 google_tpu_v2_vm
./resource.ps1 google_vertex_ai_dataset
./resource.ps1 google_vertex_ai_endpoint
./resource.ps1 google_vertex_ai_endpoint_iam_binding
./resource.ps1 google_vertex_ai_endpoint_iam_member
./resource.ps1 google_vertex_ai_endpoint_iam_policy
./resource.ps1 google_vertex_ai_feature_group
./resource.ps1 google_vertex_ai_feature_group_feature
./resource.ps1 google_vertex_ai_feature_online_store
./resource.ps1 google_vertex_ai_feature_online_store_featureview
./resource.ps1 google_vertex_ai_featurestore
./resource.ps1 google_vertex_ai_featurestore_entitytype
./resource.ps1 google_vertex_ai_featurestore_entitytype_feature
./resource.ps1 google_vertex_ai_featurestore_entitytype_iam_binding
./resource.ps1 google_vertex_ai_featurestore_entitytype_iam_member
./resource.ps1 google_vertex_ai_featurestore_entitytype_iam_policy
./resource.ps1 google_vertex_ai_featurestore_iam_binding
./resource.ps1 google_vertex_ai_featurestore_iam_member
./resource.ps1 google_vertex_ai_featurestore_iam_policy
./resource.ps1 google_vertex_ai_index
./resource.ps1 google_vertex_ai_index_endpoint
./resource.ps1 google_vertex_ai_metadata_store
./resource.ps1 google_vertex_ai_tensorboard
./resource.ps1 google_vmwareengine_cluster
./resource.ps1 google_vmwareengine_external_access_rule
./resource.ps1 google_vmwareengine_external_address
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"apply": [
"aiplatform.datasets.create",
"aiplatform.datasets.update",
"aiplatform.datasets.delete",
"aiplatform.datasets.get",
"storage.objects.list"
],
"attributes": {
"tags": []
},
"destroy": [
"aiplatform.datasets.delete"
],
"modify": [
"aiplatform.datasets.update"
],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"aiplatform.endpoints.create",
"aiplatform.endpoints.delete",
"aiplatform.endpoints.update",
"aiplatform.endpoints.get"
],
"attributes": {
"tags": []
},
"destroy": [
"aiplatform.endpoints.delete"
],
"modify": [
"aiplatform.endpoints.update"
],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"apply": [
"aiplatform.endpoints.getIamPolicy",
"aiplatform.endpoints.setIamPolicy"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"apply": [
"aiplatform.featureGroups.create",
"aiplatform.featureGroups.delete",
"aiplatform.featureGroups.get",
"aiplatform.featureGroups.list",
"aiplatform.featureGroups.update"
],
"attributes": {
"tags": []
},
"destroy": [
"aiplatform.featureGroups.delete"
],
"modify": [
"aiplatform.featureGroups.update"
],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"apply": [
"aiplatform.features.create",
"aiplatform.features.delete",
"aiplatform.features.get",
"aiplatform.features.list",
"aiplatform.features.update"
],
"attributes": {
"tags": []
},
"destroy": [
"aiplatform.features.delete"
],
"modify": [
"aiplatform.features.update"
],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"aiplatform.featureOnlineStores.create",
"aiplatform.featureOnlineStores.delete",
"aiplatform.featureOnlineStores.update",
"aiplatform.featureOnlineStores.get"
],
"attributes": {
"tags": []
},
"destroy": [
"aiplatform.featureOnlineStores.delete"
],
"modify": [
"aiplatform.featureOnlineStores.update"
],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"apply": [
"aiplatform.featureViews.create",
"aiplatform.featureViews.delete",
"aiplatform.featureViews.get",
"aiplatform.featureViews.list",
"aiplatform.featureViews.update"
],
"attributes": {
"tags": []
},
"destroy": [
"aiplatform.featureViews.delete"
],
"modify": [
"aiplatform.featureViews.update"
],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"aiplatform.featurestores.create",
"aiplatform.featurestores.get",
"aiplatform.featurestores.update",
"aiplatform.featurestores.delete"
],
"attributes": {
"tags": []
},
"destroy": [
"aiplatform.featurestores.delete"
],
"modify": [
"aiplatform.featurestores.update"
],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[
{
"apply": [
"aiplatform.entityTypes.delete",
"aiplatform.entityTypes.get",
"aiplatform.entityTypes.update"
],
"attributes": {
"tags": []
},
"destroy": [
"aiplatform.entityTypes.delete"
],
"modify": [
"aiplatform.entityTypes.update"
],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"apply": [
"aiplatform.entityTypes.writeFeatureValues",
"aiplatform.entityTypes.deleteFeatureValues",
"aiplatform.entityTypes.readFeatureValues"
],
"attributes": {
"tags": []
},
"destroy": [
"aiplatform.entityTypes.deleteFeatureValues"
],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"apply": [
"aiplatform.entityTypes.setIamPolicy",
"aiplatform.entityTypes.getIamPolicy"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"apply": [
"aiplatform.featurestores.getIamPolicy",
"aiplatform.featurestores.setIamPolicy"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
13 changes: 13 additions & 0 deletions src/mapping/google/resource/aiplatform/google_vertex_ai_index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"apply": [
"aiplatform.indexes.create"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"apply": [
"aiplatform.indexEndpoints.create"
],
"attributes": {
"tags": []
},
"destroy": [],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"apply": [
"aiplatform.metadataStores.create",
"aiplatform.metadataStores.delete",
"aiplatform.metadataStores.get"
],
"attributes": {
"tags": []
},
"destroy": [
"aiplatform.metadataStores.delete"
],
"modify": [],
"plan": []
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"apply": [
"aiplatform.tensorboards.create",
"aiplatform.tensorboards.delete",
"aiplatform.tensorboards.update",
"aiplatform.tensorboards.get"
],
"attributes": {
"tags": []
},
"destroy": [
"aiplatform.tensorboards.delete"
],
"modify": [
"aiplatform.tensorboards.update"
],
"plan": []
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"resourcemanager.projects.get",
"servicenetworking.services.get",
"servicenetworking.services.addPeering",
"compute.networks.removePeering"
"compute.networks.removePeering",
"servicenetworking.services.deleteConnection"
],
"attributes": {
"tags": []
Expand Down
2 changes: 1 addition & 1 deletion terraform/google/backup/google_project_iam_policy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# role = "roles/compute.admin"
#
# members = [
# "user:jane@example.com",
# "user:crwoolfenden@gmail.com",
# ]
#
# condition {
Expand Down
9 changes: 9 additions & 0 deletions terraform/google/backup/google_vertex_ai_dataset.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
resource "google_vertex_ai_dataset" "pike" {
display_name = "terraform"
metadata_schema_uri = "gs://google-cloud-aiplatform/schema/dataset/metadata/image_1.0.0.yaml"
region = "us-central1"

labels = {
env = "test"
}
}
17 changes: 17 additions & 0 deletions terraform/google/backup/google_vertex_ai_endpoint.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
resource "google_vertex_ai_endpoint" "pike" {
name = "endpoint-name"
display_name = "sample-endpoint"
description = "A sample vertex endpoint"
location = "us-central1"
region = "us-central1"
labels = {
label-one = "value-one"
}
network = "projects/${data.google_project.project.number}/global/networks/${google_compute_network.vertex_network.name}"
encryption_spec {
kms_key_name = "projects/pike-gcp/locations/us-central1/keyRings/cluster-1vpUU/cryptoKeys/cluster-1vpUU"
}
depends_on = [
google_service_networking_connection.vertex_vpc_connection
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resource "google_vertex_ai_endpoint_iam_binding" "pike" {
provider = google-beta
endpoint = google_vertex_ai_endpoint.pike.name
role = "roles/viewer"
members = [
"user:crwoolfenden@gmail.com",
]
}
Loading

0 comments on commit a0dcfb0

Please sign in to comment.