Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #176 from modular-magician/codegen-pr-2122
Browse files Browse the repository at this point in the history
adding labels to instance templates
  • Loading branch information
rambleraptor authored Aug 5, 2019
2 parents a800a31 + bbcd8da commit 1a95979
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/resources/google_compute_instance_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Properties that can be accessed from the `google_compute_instance_template` reso

* `disks`: An array of disks that are associated with the instances that are created from this template.

* `labels`: Labels to apply to this address. A list of key->value pairs.

* `machine_type`: The machine type to use in the VM instance template.

* `min_cpu_platform`: Specifies a minimum CPU platform for the VM instance. Applicable values are the friendly names of CPU platforms
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class InstanceTemplateProperties

attr_reader :disks

attr_reader :labels

attr_reader :machine_type

attr_reader :min_cpu_platform
Expand All @@ -51,6 +53,7 @@ def initialize(args = nil, parent_identifier = nil)
@can_ip_forward = args['canIpForward']
@description = args['description']
@disks = GoogleInSpec::Compute::Property::InstanceTemplatePropertiesDisksArray.parse(args['disks'], to_s)
@labels = args['labels']
@machine_type = args['machineType']
@min_cpu_platform = args['minCpuPlatform']
@metadata = args['metadata']
Expand Down

0 comments on commit 1a95979

Please sign in to comment.