Skip to content

Commit

Permalink
Automatically generated by magic modules for service: vertex_ai and r…
Browse files Browse the repository at this point in the history
…esource: Tensorboards__experiments__run.

This commit includes the following changes:
- Singular Resource
- Plural Resource
- Documentation updates
- Terraform configuration
- Integration tests

Signed-off-by: Samir Anand <[email protected]>
  • Loading branch information
samiranand1990 committed Sep 21, 2023
1 parent ca02c8e commit 9969a91
Show file tree
Hide file tree
Showing 9 changed files with 421 additions and 85 deletions.
77 changes: 39 additions & 38 deletions build/inspec/test/integration/build/gcp-mm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1346,17 +1346,24 @@ resource "google_data_loss_prevention_stored_info_type" "basic" {
}
}

resource "google_healthcare_dataset" "default" {
name = "example-dataset-${local.name_suffix}"
location = "us-central1"
time_zone = "UTC"



resource "google_vertex_ai_tensorboard" "tensorboard" {
display_name = "terraform-${local.name_suffix}"
description = "sample description"
labels = {
"key1" : "value1",
"key2" : "value2"
}
region = "us-central1"
}


resource "google_healthcare_dataset" "default" {
name = "example-dataset-${local.name_suffix}"
location = "us-central1"
time_zone = "UTC"
resource "google_ml_engine_model" "default" {
name = "default-${local.name_suffix}"
description = "My model"
regions = ["us-central1"]
}


Expand Down Expand Up @@ -1389,43 +1396,37 @@ resource "google_vertex_ai_featurestore_entitytype_feature" "feature" {
value_type = "INT64_ARRAY"
}

resource "google_vertex_ai_tensorboard" "tensorboard" {
display_name = "terraform-${local.name_suffix}"
description = "sample description"

resource "google_vertex_ai_index_endpoint" "index_endpoint" {
display_name = "sample-endpoint"
description = "A sample vertex endpoint"
region = "us-central1"
labels = {
"key1" : "value1",
"key2" : "value2"
label-one = "value-one"
}
region = "us-central1"
network = "projects/${data.google_project.project.number}/global/networks/${data.google_compute_network.vertex_network.name}"
depends_on = [
google_service_networking_connection.vertex_vpc_connection
]
}


resource "google_vertex_ai_featurestore" "featurestore" {
name = "terraform-${local.name_suffix}"
labels = {
foo = "bar"
}
region = "us-central1"
online_serving_config {
fixed_node_count = 2
}
resource "google_service_networking_connection" "vertex_vpc_connection" {
network = data.google_compute_network.vertex_network.id
service = "servicenetworking.googleapis.com"
reserved_peering_ranges = [google_compute_global_address.vertex_range.name]
}

resource "google_vertex_ai_featurestore_entitytype" "entity" {
name = "terraform-${local.name_suffix}"
labels = {
foo = "bar"
}
featurestore = google_vertex_ai_featurestore.featurestore.id
resource "google_compute_global_address" "vertex_range" {
name = "address-name-${local.name_suffix}"
purpose = "VPC_PEERING"
address_type = "INTERNAL"
prefix_length = 24
network = data.google_compute_network.vertex_network.id
}

resource "google_vertex_ai_featurestore_entitytype_feature" "feature" {
name = "terraform-${local.name_suffix}"
labels = {
foo = "bar"
}
entitytype = google_vertex_ai_featurestore_entitytype.entity.id

value_type = "INT64_ARRAY"
data "google_compute_network" "vertex_network" {
name = "network-name-${local.name_suffix}"
}

data "google_project" "project" {}

95 changes: 48 additions & 47 deletions build/inspec/test/integration/configuration/mm-attributes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -546,104 +546,105 @@ dlp:
location: "europe-west2"
type: "Infotype"

pipeline_job:
featurestore:
name : "value_name"
region : "value_region"
parent : "value_parent"
end_time : "value_endtime"
update_time : "value_updatetime"
state : "value_state"
create_time : "value_createtime"
schedule_name : "value_schedulename"
start_time : "value_starttime"
service_account : "value_serviceaccount"
display_name : "value_displayname"
template_uri : "value_templateuri"
network : "value_network"
etag : "value_etag"
update_time : "value_updatetime"

endpoint:
training_pipeline:
name : "value_name"
job_id: "job_id"
region : "value_region"
parent : "value_parent"
update_time : "value_updatetime"
model_deployment_monitoring_job : "value_modeldeploymentmonitoringjob"
description : "value_description"
network : "value_network"
display_name : "value_displayname"
etag : "value_etag"


nas_job:
name : "value_name"
region : "value_region"
parent : "value_parent"
end_time : "value_endtime"
state : "value_state"
create_time : "value_createtime"
display_name : "value_displayname"
start_time : "value_starttime"
update_time : "value_updatetime"

batch_prediction_job:
name : "value_name"
region : "value_region"
parent : "value_parent"
create_time : "value_createtime"
model_version_id : "1"
model_version_id : "value_modelversionid"
end_time : "value_endtime"
start_time : "value_starttime"
update_time : "value_updatetime"
state : "value_state"
model : "value_model"
display_name : "value_displayname"
service_account : "value_serviceaccount"

custom_job:
name : "value_name"
region : "value_region"
parent : "value_parent"
job_id: "job_id"

training_pipeline:
name : "value_name"
job_id: "job_id"
region : "value_region"
parent : "value_parent"


schedule:
tensorboard:
name : "value_name"
region : "value_region"
parent : "value_parent"
started_run_count : "value_startedruncount"
cron : "value_cron"
last_pause_time : "value_lastpausetime"
create_time : "value_createtime"
start_time : "value_starttime"
max_run_count : "value_maxruncount"
next_run_time : "value_nextruntime"
update_time : "value_updatetime"
last_resume_time : "value_lastresumetime"
max_concurrent_run_count : "value_maxconcurrentruncount"
state : "value_state"
blob_storage_path_prefix : "value_blobstoragepathprefix"
etag : "value_etag"
create_time : "value_createtime"
display_name : "value_displayname"
end_time : "value_endtime"
description : "value_description"

tensorboard:
model:
name : "value_name"
region : "value_region"
parent : "value_parent"
update_time : "value_updatetime"
blob_storage_path_prefix : "value_blobstoragepathprefix"
etag : "value_etag"
description : "value_description"
create_time : "value_createtime"
pipeline_job : "value_pipelinejob"
version_update_time : "value_versionupdatetime"
metadata_artifact : "value_metadataartifact"
metadata_schema_uri : "value_metadataschemauri"
version_id : "value_versionid"
artifact_uri : "value_artifacturi"
training_pipeline : "value_trainingpipeline"
display_name : "value_displayname"
description : "value_description"
version_create_time : "value_versioncreatetime"
version_description : "value_versiondescription"


nas_job:
index_endpoint:
name : "value_name"
region : "value_region"
parent : "value_parent"
end_time : "value_endtime"
state : "value_state"
create_time : "value_createtime"
display_name : "value_displayname"
start_time : "value_starttime"
create_time : "value_createtime"
network : "value_network"
update_time : "value_updatetime"
public_endpoint_domain_name : "value_publicendpointdomainname"
etag : "value_etag"
description : "value_description"

featurestore:
featurestores_entity_type:
name : "value_name"
region : "value_region"
parent : "value_parent"
state : "value_state"
description : "value_description"
create_time : "value_createtime"
etag : "value_etag"
update_time : "value_updatetime"

tensorboard_experiment_run:
name : "value_name"
region : "value_region"
parent : "value_parent"
42 changes: 42 additions & 0 deletions docs/resources/google_vertex_ai_tensorboard_experiment_run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
title: About the google_vertex_ai_tensorboard_experiment_run resource
platform: gcp
---

## Syntax
A `google_vertex_ai_tensorboard_experiment_run` is used to test a Google TensorboardExperimentRun resource

## Examples
```
describe google_vertex_ai_tensorboard_experiment_run(name: "projects/#{gcp_project_id}/locations/#{tensorboard_experiment_run['region']}/tensorboards/#{tensorboard_experiment_run['tensorboard']}/experiments/#{tensorboard_experiment_run['experiment']}/runs/#{tensorboard_experiment_run['run']}", region: ' value_region') do
it { should exist }
end
describe google_vertex_ai_tensorboard_experiment_run(name: "does_not_exit", region: ' value_region') do
it { should_not exist }
end
```

## Properties
Properties that can be accessed from the `google_vertex_ai_tensorboard_experiment_run` resource:


* `display_name`: Required. User provided name of this TensorboardRun. This value must be unique among all TensorboardRuns belonging to the same parent TensorboardExperiment.

* `update_time`: Output only. Timestamp when this TensorboardRun was last updated.

* `description`: Description of this TensorboardRun.

* `etag`: Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

* `labels`: The labels with user-defined metadata to organize your TensorboardRuns. This field will be used to filter and visualize Runs in the Tensorboard UI. For example, a Vertex AI training job can set a label aiplatform.googleapis.com/training_job_id=xxxxx to all the runs created within that job. An end user can set a label experiment_id=xxxxx for all the runs produced in a Jupyter notebook. These runs can be grouped by a label value and visualized together in the Tensorboard UI. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one TensorboardRun (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.

* `additional_properties`:

* `create_time`: Output only. Timestamp when this TensorboardRun was created.

* `name`: Output only. Name of the TensorboardRun. Format: `projects/{project}/locations/{location}/tensorboards/{tensorboard}/experiments/{experiment}/runs/{run}`


## GCP Permissions
32 changes: 32 additions & 0 deletions docs/resources/google_vertex_ai_tensorboard_experiment_runs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: About the google_vertex_ai_tensorboard_experiment_runs resource
platform: gcp
---

## Syntax
A `google_vertex_ai_tensorboard_experiment_runs` is used to test a Google TensorboardExperimentRun resource

## Examples
```
describe google_vertex_ai_tensorboard_experiment_runs(parent: "projects/#{gcp_project_id}/locations/#{tensorboard_experiment_run['region']}/tensorboards/#{tensorboard_experiment_run['tensorboard']}/experiments/#{tensorboard_experiment_run['experiment']}", region: ' value_region') do
it { should exist }
end
```

## Properties
Properties that can be accessed from the `google_vertex_ai_tensorboard_experiment_runs` resource:

See [google_vertex_ai_tensorboard_experiment_run.md](google_vertex_ai_tensorboard_experiment_run.md) for more detailed information
* `display_names`: an array of `google_vertex_ai_tensorboard_experiment_run` display_name
* `update_times`: an array of `google_vertex_ai_tensorboard_experiment_run` update_time
* `descriptions`: an array of `google_vertex_ai_tensorboard_experiment_run` description
* `etags`: an array of `google_vertex_ai_tensorboard_experiment_run` etag
* `labels`: an array of `google_vertex_ai_tensorboard_experiment_run` labels
* `create_times`: an array of `google_vertex_ai_tensorboard_experiment_run` create_time
* `names`: an array of `google_vertex_ai_tensorboard_experiment_run` name

## Filter Criteria
This resource supports all of the above properties as filter criteria, which can be used
with `where` as a block or a method.

## GCP Permissions
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# frozen_string_literal: false

# ----------------------------------------------------------------------------
#
# *** AUTO GENERATED CODE *** Type: MMv1 ***
#
# ----------------------------------------------------------------------------
#
# This file is automatically generated by Magic Modules and manual
# changes will be clobbered when the file is regenerated.
#
# Please read more about how to change this file in README.md and
# CONTRIBUTING.md located at the root of this package.
#
# ----------------------------------------------------------------------------
module GoogleInSpec
module VertexAI
module Property
class TensorboardExperimentRunLabels
attr_reader :additional_properties

def initialize(args = nil, parent_identifier = nil)
return if args.nil?
@parent_identifier = parent_identifier
@additional_properties = args['additionalProperties']
end

def to_s
"#{@parent_identifier} TensorboardExperimentRunLabels"
end
end
end
end
end
Loading

0 comments on commit 9969a91

Please sign in to comment.