Skip to content

Commit

Permalink
refreshing the provider for intersight version 5313 (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb authored Feb 22, 2022
1 parent ddde0bd commit 21f451a
Show file tree
Hide file tree
Showing 12,596 changed files with 45,915 additions and 18,554 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Logs

## v1.0.23
* Refreshes the terraform module to be in sync with the latest Cisco Intersight model (build 5313)

## v1.0.22
* Refreshes the terraform module to be in sync with the latest Cisco Intersight model (build 5208)

Expand Down
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PKG_NAME=intersight
VERSION=1.0.22
VERSION=1.0.23
TEST?=$$(go list ./... |grep -v 'vendor')
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
WEBSITE_REPO=github.com/hashicorp/terraform-website
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion examples/sample_modules/os_install/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
intersight = {
source = "CiscoDevNet/intersight"
version = "1.0.22"
version = "1.0.23"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_modules/server_configurations/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
intersight = {
source = "CiscoDevNet/intersight"
version = "1.0.22"
version = "1.0.23"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_modules/server_deployment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
intersight = {
source = "CiscoDevNet/intersight"
version = "1.0.22"
version = "1.0.23"
}
}
}
Expand Down
115 changes: 115 additions & 0 deletions intersight/data_source_intersight_cloud_aws_security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,41 @@ func dataSourceCloudAwsSecurityGroup() *schema.Resource {
},
},
},
"aws_billing_unit": {
Description: "A reference to a cloudAwsBillingUnit resource.\nWhen the $expand query parameter is specified, the referenced resource is returned inline.",
Type: schema.TypeList,
MaxItems: 1,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"additional_properties": {
Type: schema.TypeString,
Optional: true,
DiffSuppressFunc: SuppressDiffAdditionProps,
},
"class_id": {
Description: "The fully-qualified name of the instantiated, concrete type.\nThis property is used as a discriminator to identify the type of the payload\nwhen marshaling and unmarshaling data.",
Type: schema.TypeString,
Optional: true,
},
"moid": {
Description: "The Moid of the referenced REST resource.",
Type: schema.TypeString,
Optional: true,
},
"object_type": {
Description: "The fully-qualified name of the remote type referred by this relationship.",
Type: schema.TypeString,
Optional: true,
},
"selector": {
Description: "An OData $filter expression which describes the REST resource to be referenced. This field may\nbe set instead of 'moid' by clients.\n1. If 'moid' is set this field is ignored.\n1. If 'selector' is set and 'moid' is empty/absent from the request, Intersight determines the Moid of the\nresource matching the filter expression and populates it in the MoRef that is part of the object\ninstance being inserted/updated to fulfill the REST request.\nAn error is returned if the filter matches zero or more than one REST resource.\nAn example filter string is: Serial eq '3AA8B7T11'.",
Type: schema.TypeString,
Optional: true,
},
},
},
},
"billing_unit": {
Description: "Details of the paying account for this cloud resource.",
Type: schema.TypeList,
Expand Down Expand Up @@ -738,6 +773,41 @@ func dataSourceCloudAwsSecurityGroup() *schema.Resource {
},
},
},
"aws_billing_unit": {
Description: "A reference to a cloudAwsBillingUnit resource.\nWhen the $expand query parameter is specified, the referenced resource is returned inline.",
Type: schema.TypeList,
MaxItems: 1,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"additional_properties": {
Type: schema.TypeString,
Optional: true,
DiffSuppressFunc: SuppressDiffAdditionProps,
},
"class_id": {
Description: "The fully-qualified name of the instantiated, concrete type.\nThis property is used as a discriminator to identify the type of the payload\nwhen marshaling and unmarshaling data.",
Type: schema.TypeString,
Optional: true,
},
"moid": {
Description: "The Moid of the referenced REST resource.",
Type: schema.TypeString,
Optional: true,
},
"object_type": {
Description: "The fully-qualified name of the remote type referred by this relationship.",
Type: schema.TypeString,
Optional: true,
},
"selector": {
Description: "An OData $filter expression which describes the REST resource to be referenced. This field may\nbe set instead of 'moid' by clients.\n1. If 'moid' is set this field is ignored.\n1. If 'selector' is set and 'moid' is empty/absent from the request, Intersight determines the Moid of the\nresource matching the filter expression and populates it in the MoRef that is part of the object\ninstance being inserted/updated to fulfill the REST request.\nAn error is returned if the filter matches zero or more than one REST resource.\nAn example filter string is: Serial eq '3AA8B7T11'.",
Type: schema.TypeString,
Optional: true,
},
},
},
},
"billing_unit": {
Description: "Details of the paying account for this cloud resource.",
Type: schema.TypeList,
Expand Down Expand Up @@ -1443,6 +1513,49 @@ func dataSourceCloudAwsSecurityGroupRead(c context.Context, d *schema.ResourceDa
o.SetAncestors(x)
}

if v, ok := d.GetOk("aws_billing_unit"); ok {
p := make([]models.CloudAwsBillingUnitRelationship, 0, 1)
s := v.([]interface{})
for i := 0; i < len(s); i++ {
l := s[i].(map[string]interface{})
o := &models.MoMoRef{}
if v, ok := l["additional_properties"]; ok {
{
x := []byte(v.(string))
var x1 interface{}
err := json.Unmarshal(x, &x1)
if err == nil && x1 != nil {
o.AdditionalProperties = x1.(map[string]interface{})
}
}
}
o.SetClassId("")
if v, ok := l["moid"]; ok {
{
x := (v.(string))
o.SetMoid(x)
}
}
if v, ok := l["object_type"]; ok {
{
x := (v.(string))
o.SetObjectType(x)
}
}
if v, ok := l["selector"]; ok {
{
x := (v.(string))
o.SetSelector(x)
}
}
p = append(p, models.MoMoRefAsCloudAwsBillingUnitRelationship(o))
}
if len(p) > 0 {
x := p[0]
o.SetAwsBillingUnit(x)
}
}

if v, ok := d.GetOk("billing_unit"); ok {
p := make([]models.CloudBillingUnit, 0, 1)
s := v.([]interface{})
Expand Down Expand Up @@ -2059,6 +2172,8 @@ func dataSourceCloudAwsSecurityGroupRead(c context.Context, d *schema.ResourceDa

temp["ancestors"] = flattenListMoBaseMoRelationship(s.GetAncestors(), d)

temp["aws_billing_unit"] = flattenMapCloudAwsBillingUnitRelationship(s.GetAwsBillingUnit(), d)

temp["billing_unit"] = flattenMapCloudBillingUnit(s.GetBillingUnit(), d)
temp["class_id"] = (s.GetClassId())

Expand Down
115 changes: 115 additions & 0 deletions intersight/data_source_intersight_compute_physical_summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,41 @@ func dataSourceComputePhysicalSummary() *schema.Resource {
Type: schema.TypeString,
Optional: true,
},
"equipment_chassis": {
Description: "A reference to a equipmentChassis resource.\nWhen the $expand query parameter is specified, the referenced resource is returned inline.",
Type: schema.TypeList,
MaxItems: 1,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"additional_properties": {
Type: schema.TypeString,
Optional: true,
DiffSuppressFunc: SuppressDiffAdditionProps,
},
"class_id": {
Description: "The fully-qualified name of the instantiated, concrete type.\nThis property is used as a discriminator to identify the type of the payload\nwhen marshaling and unmarshaling data.",
Type: schema.TypeString,
Optional: true,
},
"moid": {
Description: "The Moid of the referenced REST resource.",
Type: schema.TypeString,
Optional: true,
},
"object_type": {
Description: "The fully-qualified name of the remote type referred by this relationship.",
Type: schema.TypeString,
Optional: true,
},
"selector": {
Description: "An OData $filter expression which describes the REST resource to be referenced. This field may\nbe set instead of 'moid' by clients.\n1. If 'moid' is set this field is ignored.\n1. If 'selector' is set and 'moid' is empty/absent from the request, Intersight determines the Moid of the\nresource matching the filter expression and populates it in the MoRef that is part of the object\ninstance being inserted/updated to fulfill the REST request.\nAn error is returned if the filter matches zero or more than one REST resource.\nAn example filter string is: Serial eq '3AA8B7T11'.",
Type: schema.TypeString,
Optional: true,
},
},
},
},
"fault_summary": {
Description: "The fault summary for the server.",
Type: schema.TypeInt,
Expand Down Expand Up @@ -847,6 +882,41 @@ func dataSourceComputePhysicalSummary() *schema.Resource {
Type: schema.TypeString,
Optional: true,
},
"equipment_chassis": {
Description: "A reference to a equipmentChassis resource.\nWhen the $expand query parameter is specified, the referenced resource is returned inline.",
Type: schema.TypeList,
MaxItems: 1,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"additional_properties": {
Type: schema.TypeString,
Optional: true,
DiffSuppressFunc: SuppressDiffAdditionProps,
},
"class_id": {
Description: "The fully-qualified name of the instantiated, concrete type.\nThis property is used as a discriminator to identify the type of the payload\nwhen marshaling and unmarshaling data.",
Type: schema.TypeString,
Optional: true,
},
"moid": {
Description: "The Moid of the referenced REST resource.",
Type: schema.TypeString,
Optional: true,
},
"object_type": {
Description: "The fully-qualified name of the remote type referred by this relationship.",
Type: schema.TypeString,
Optional: true,
},
"selector": {
Description: "An OData $filter expression which describes the REST resource to be referenced. This field may\nbe set instead of 'moid' by clients.\n1. If 'moid' is set this field is ignored.\n1. If 'selector' is set and 'moid' is empty/absent from the request, Intersight determines the Moid of the\nresource matching the filter expression and populates it in the MoRef that is part of the object\ninstance being inserted/updated to fulfill the REST request.\nAn error is returned if the filter matches zero or more than one REST resource.\nAn example filter string is: Serial eq '3AA8B7T11'.",
Type: schema.TypeString,
Optional: true,
},
},
},
},
"fault_summary": {
Description: "The fault summary for the server.",
Type: schema.TypeInt,
Expand Down Expand Up @@ -1574,6 +1644,49 @@ func dataSourceComputePhysicalSummaryRead(c context.Context, d *schema.ResourceD
o.SetDomainGroupMoid(x)
}

if v, ok := d.GetOk("equipment_chassis"); ok {
p := make([]models.EquipmentChassisRelationship, 0, 1)
s := v.([]interface{})
for i := 0; i < len(s); i++ {
l := s[i].(map[string]interface{})
o := &models.MoMoRef{}
if v, ok := l["additional_properties"]; ok {
{
x := []byte(v.(string))
var x1 interface{}
err := json.Unmarshal(x, &x1)
if err == nil && x1 != nil {
o.AdditionalProperties = x1.(map[string]interface{})
}
}
}
o.SetClassId("")
if v, ok := l["moid"]; ok {
{
x := (v.(string))
o.SetMoid(x)
}
}
if v, ok := l["object_type"]; ok {
{
x := (v.(string))
o.SetObjectType(x)
}
}
if v, ok := l["selector"]; ok {
{
x := (v.(string))
o.SetSelector(x)
}
}
p = append(p, models.MoMoRefAsEquipmentChassisRelationship(o))
}
if len(p) > 0 {
x := p[0]
o.SetEquipmentChassis(x)
}
}

if v, ok := d.GetOkExists("fault_summary"); ok {
x := int64(v.(int))
o.SetFaultSummary(x)
Expand Down Expand Up @@ -2150,6 +2263,8 @@ func dataSourceComputePhysicalSummaryRead(c context.Context, d *schema.ResourceD
temp["device_mo_id"] = (s.GetDeviceMoId())
temp["dn"] = (s.GetDn())
temp["domain_group_moid"] = (s.GetDomainGroupMoid())

temp["equipment_chassis"] = flattenMapEquipmentChassisRelationship(s.GetEquipmentChassis(), d)
temp["fault_summary"] = (s.GetFaultSummary())
temp["firmware"] = (s.GetFirmware())
temp["hardware_uuid"] = (s.GetHardwareUuid())
Expand Down
Loading

0 comments on commit 21f451a

Please sign in to comment.