Skip to content

Commit

Permalink
update attributes & readme
Browse files Browse the repository at this point in the history
Signed-off-by: balasubramanian-s <[email protected]>
  • Loading branch information
balasubramanian-s committed Jun 20, 2024
1 parent e313523 commit 4cef55e
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 105 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ The following resources are available in the InSpec GCP Profile
| [google_container_server_config](docs/resources/google_container_server_config.md) | No Plural Resource |
| [google_dataflow_project_location_job](docs/resources/google_dataflow_project_location_job.md) | [google_dataflow_project_location_jobs](docs/resources/google_dataflow_project_location_jobs.md) |
| [google_dataproc_cluster](docs/resources/google_dataproc_cluster.md) | [google_dataproc_clusters](docs/resources/google_dataproc_clusters.md) |
| [google_dataproc_workflow_template](docs/resources/google_dataproc_workflow_template.md) | [google_dataproc_workflow_templates](docs/resources/google_dataproc_workflow_templates.md) |
| [google_dns_managed_zone](docs/resources/google_dns_managed_zone.md) | [google_dns_managed_zones](docs/resources/google_dns_managed_zones.md) |
| [google_dns_resource_record_set](docs/resources/google_dns_resource_record_set.md) | [google_dns_resource_record_sets](docs/resources/google_dns_resource_record_sets.md) |
| [google_dlp_dt](docs/resources/google_dlp_dt.md) | [google_dlp_dts](docs/resources/google_dlp_dts.md)
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
---
title: About the google_dataproc_project_location_workflow_templates resource
title: About the google_dataproc_workflow_templates resource
platform: gcp
---

## Syntax
A `google_dataproc_project_location_workflow_templates` is used to test a Google ProjectLocationWorkflowTemplate resource
A `google_dataproc_workflow_templates` is used to test a Google WorkflowTemplates resource

## Examples
```
describe google_dataproc_project_location_workflow_templates(parent: ' ') do
describe google_dataproc_workflow_templates(parent: 'value_parent') do
it { should exist }
end
```
## Parameters
* `parent`: The resource name of the region or location, as described in https://cloud.google.com/apis/design/resource_names.
For projects.regions.workflowTemplates,list, the resource name of the region has the following format: projects/{projectId}/regions/{region}
For projects.locations.workflowTemplates.list, the resource name of the location has the following format: projects/{projectId}/locations/{location}

## Properties
Properties that can be accessed from the `google_dataproc_project_location_workflow_templates` resource:
Properties that can be accessed from the `google_dataproc_workflow_templates` resource:

See [google_dataproc_project_location_workflow_template.md](google_dataproc_project_location_workflow_template.md) for more detailed information
* `ids`: an array of `google_dataproc_project_location_workflow_template` id
Expand Down
Binary file removed libraries/google/dataproc/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion libraries/google_dataproc_workflow_templates.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DataprocWorkflowTemplates < GcpResourceBase
def initialize(params = {})
super(params.merge({ use_http_transport: true }))
@params = params
@table = fetch_wrapped_resource('workflowTemplates')
@table = fetch_wrapped_resource('templates')
end

def fetch_wrapped_resource(wrap_path)
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# ----------------------------------------------------------------------------
#
# *** 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_dataproc_workflow_template resource.'

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

workflow_template = input('workflow_template', value: {
"project": "ppradhan",
"reservation": "value_reservation",
"zone": "value_zone",
"id": "template-8b819",
"parent": "projects/ppradhan/regions/us-central1",
"name": "projects/ppradhan/regions/us-central1/workflowTemplates/template-8b819",
"create_time": "2024-06-17T09:08:05.009118Z",
"update_time": "2024-06-17T09:08:05.009118Z",
"dag_timeout": "value_dagtimeout"
}, description: 'workflow_template description')
control 'google_dataproc_workflow_template-1.0' do
impact 1.0
title 'google_dataproc_workflow_template resource test'

describe google_dataproc_workflow_template(name: workflow_template['name']) do
it { should exist }
its('id') { should cmp workflow_template['id'] }
its('name') { should cmp workflow_template['name'] }
its('create_time') { should cmp workflow_template['create_time'] }
its('update_time') { should cmp workflow_template['update_time'] }
its('dag_timeout') { should cmp workflow_template['dag_timeout'] }

end

describe google_dataproc_workflow_template(name: "does_not_exit") do
it { should_not exist }
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,26 @@
#
# ----------------------------------------------------------------------------

title 'Test GCP google_dataproc_project_location_workflow_templates resource.'
title 'Test GCP google_dataproc_workflow_templates resource.'

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

project_location_workflow_template = input('project_location_workflow_template', value: {
"project": "value_project",
workflow_template = input('workflow_template', value: {
"project": "ppradhan",
"reservation": "value_reservation",
"zone": "value_zone",
"id": "value_id",
"name": "value_name",
"create_time": "value_createtime",
"update_time": "value_updatetime",
"id": "template-8b819",
"parent": "projects/ppradhan/regions/us-central1",
"name": "projects/ppradhan/regions/us-central1/workflowTemplates/template-8b819",
"create_time": "2024-06-17T09:08:05.009118Z",
"update_time": "2024-06-17T09:08:05.009118Z",
"dag_timeout": "value_dagtimeout"
}, description: 'project_location_workflow_template description')
control 'google_dataproc_project_location_workflow_templates-1.0' do
}, description: 'workflow_template description')
control 'google_dataproc_workflow_templates-1.0' do
impact 1.0
title 'google_dataproc_project_location_workflow_templates resource test'
title 'google_dataproc_workflow_templates resource test'

describe google_dataproc_project_location_workflow_templates(parent: project_location_workflow_template['parent']) do
describe google_dataproc_workflow_templates(parent: workflow_template['parent']) do
it { should exist }
end
end

0 comments on commit 4cef55e

Please sign in to comment.