You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: `A list of short names or self_links of resource policies to attach to the instance. Modifying this list will cause the instance to recreate. Currently a max of 1 resource policy is supported.`,
739
739
},
740
+
741
+
"reservation_affinity": {
742
+
Type: schema.TypeList,
743
+
MaxItems: 1,
744
+
Optional: true,
745
+
ForceNew: true,
746
+
Description: `Specifies the reservations that this instance can consume from.`,
Description: `The type of reservation from which this instance can consume resources.`,
755
+
},
756
+
757
+
"specific_reservation": {
758
+
Type: schema.TypeList,
759
+
MaxItems: 1,
760
+
Optional: true,
761
+
ForceNew: true,
762
+
Description: `Specifies the label selector for the reservation to use.`,
763
+
764
+
Elem: &schema.Resource{
765
+
Schema: map[string]*schema.Schema{
766
+
"key": {
767
+
Type: schema.TypeString,
768
+
Required: true,
769
+
ForceNew: true,
770
+
Description: `Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value.`,
771
+
},
772
+
"values": {
773
+
Type: schema.TypeList,
774
+
Elem: &schema.Schema{Type: schema.TypeString},
775
+
Required: true,
776
+
ForceNew: true,
777
+
Description: `Corresponds to the label values of a reservation resource.`,
Description: `The type of reservation from which this instance can consume resources.`,
632
+
},
633
+
634
+
"specific_reservation": {
635
+
Type: schema.TypeList,
636
+
MaxItems: 1,
637
+
Optional: true,
638
+
ForceNew: true,
639
+
Description: `Specifies the label selector for the reservation to use.`,
640
+
641
+
Elem: &schema.Resource{
642
+
Schema: map[string]*schema.Schema{
643
+
"key": {
644
+
Type: schema.TypeString,
645
+
Required: true,
646
+
ForceNew: true,
647
+
Description: `Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value.`,
648
+
},
649
+
"values": {
650
+
Type: schema.TypeList,
651
+
Elem: &schema.Schema{Type: schema.TypeString},
652
+
Required: true,
653
+
ForceNew: true,
654
+
Description: `Corresponds to the label values of a reservation resource.`,
655
+
},
656
+
},
657
+
},
658
+
},
659
+
},
660
+
},
661
+
},
617
662
},
618
663
UseJSONNumber: true,
619
664
}
@@ -871,6 +916,11 @@ func resourceComputeInstanceTemplateCreate(d *schema.ResourceData, meta interfac
0 commit comments