# ----------------------------------------------------------------------------
#
#     ***     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.
#
# ----------------------------------------------------------------------------

title 'Test GCP google_vertex_ai_tensorboard_experiment_run_time_series_resource resource.'

gcp_project_id = input(:gcp_project_id, value: 'gcp_project_id', description: 'The GCP project identifier.')

  tensorboard_experiment_run_time_series_resource = input('tensorboard_experiment_run_time_series_resource', value: {
  "name": "1197045318546358272",
  "tensorboard": "1143342559305662464",
  "experiment": "autologging-experiment-a6k29mzk",
  "region": "us-central1",
  "parent": "projects/165434197229/locations/us-central1/tensorboards/1143342559305662464/experiments/autologging-experiment-a6k29mzk/runs/autologging-tf-experiment-a6k29mzk/timeSeries/",
  "run": "autologging-tf-experiment-a6k29mzk",
  "plugin_name": "value_pluginname",
  "plugin_data": "value_plugindata",
  "description": "value_description",
  "etag": "value_etag",
  "display_name": "value_displayname",
  "update_time": "value_updatetime",
  "create_time": "value_createtime",
  "value_type": "value_valuetype"
}, description: 'tensorboard_experiment_run_time_series_resource description')
control 'google_vertex_ai_tensorboard_experiment_run_time_series_resource-1.0' do
  impact 1.0
  title 'google_vertex_ai_tensorboard_experiment_run_time_series_resource resource test'

  describe google_vertex_ai_tensorboard_experiment_run_time_series_resource(name: "projects/#{gcp_project_id}/locations/#{tensorboard_experiment_run_time_series_resource['region']}/tensorboards/#{tensorboard_experiment_run_time_series_resource['tensorboard']}/experiments/#{tensorboard_experiment_run_time_series_resource['experiment']}/runs/#{tensorboard_experiment_run_time_series_resource['run']}/timeSeries/#{tensorboard_experiment_run_time_series_resource['timeSery']}", region: tensorboard_experiment_run_time_series_resource['region']) do
  	it { should exist }
  	its('plugin_name') { should cmp tensorboard_experiment_run_time_series_resource['plugin_name'] }
  	its('plugin_data') { should cmp tensorboard_experiment_run_time_series_resource['plugin_data'] }
  	its('description') { should cmp tensorboard_experiment_run_time_series_resource['description'] }
  	its('etag') { should cmp tensorboard_experiment_run_time_series_resource['etag'] }
  	its('display_name') { should cmp tensorboard_experiment_run_time_series_resource['display_name'] }
  	its('update_time') { should cmp tensorboard_experiment_run_time_series_resource['update_time'] }
  	its('create_time') { should cmp tensorboard_experiment_run_time_series_resource['create_time'] }
  	its('name') { should cmp tensorboard_experiment_run_time_series_resource['name'] }
  	its('value_type') { should cmp tensorboard_experiment_run_time_series_resource['value_type'] }

  end

  describe google_vertex_ai_tensorboard_experiment_run_time_series_resource(name: "does_not_exit", region: tensorboard_experiment_run_time_series_resource['region']) do
  	it { should_not exist }
  end
end
