Skip to content

Commit

Permalink
refreshing the provider for intersight version 4950 (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb authored Dec 12, 2021
1 parent 5e7db7c commit c78c636
Show file tree
Hide file tree
Showing 12,325 changed files with 143,273 additions and 52,534 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.21
* Refreshes the terraform module to be in sync with the latest Cisco Intersight model (build 4950)

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

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.20
VERSION=1.0.21
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/firmware/firmware_bios_descriptor.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
resource "intersight_firmware_bios_descriptor" "firmware_bios_descriptor1" {
description = "firmware bios descriptor"
model = "N20-B6620-1"
version = "S5500.86B.01.00.0036-191.0.2020091126"
version = "S5500.86B.01.00.0036-191.0.2120091126"
vendor = "Cisco Systems Inc"
revision = "0"
}
Expand Down
Empty file.
Empty file.
Empty file.
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.20"
version = "1.0.21"
}
}
}
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.20"
version = "1.0.21"
}
}
}
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.20"
version = "1.0.21"
}
}
}
Expand Down
Empty file.
4 changes: 2 additions & 2 deletions intersight/data_source_intersight_asset_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func dataSourceAssetDeployment() *schema.Resource {
Optional: true,
},
"license_type": {
Description: "Active license tier for the purchased Cisco device's deployment.\n* `Base` - Base as a License type. It is default license type.\n* `Essential` - Essential as a License type.\n* `Standard` - Standard as a License type.\n* `Advantage` - Advantage as a License type.\n* `Premier` - Premier as a License type.\n* `IWO-Essential` - IWO-Essential as a License type.\n* `IWO-Advantage` - IWO-Advantage as a License type.\n* `IWO-Premier` - IWO-Premier as a License type.",
Description: "Active license tier for the purchased Cisco device's deployment.\n* `Base` - Base as a License type. It is default license type.\n* `Essential` - Essential as a License type.\n* `Standard` - Standard as a License type.\n* `Advantage` - Advantage as a License type.\n* `Premier` - Premier as a License type.\n* `IWO-Essential` - IWO-Essential as a License type.\n* `IWO-Advantage` - IWO-Advantage as a License type.\n* `IWO-Premier` - IWO-Premier as a License type.\n* `IKS-Advantage` - IKS-Advantage as a License type.",
Type: schema.TypeString,
Optional: true,
},
Expand Down Expand Up @@ -831,7 +831,7 @@ func dataSourceAssetDeployment() *schema.Resource {
Optional: true,
},
"license_type": {
Description: "Active license tier for the purchased Cisco device's deployment.\n* `Base` - Base as a License type. It is default license type.\n* `Essential` - Essential as a License type.\n* `Standard` - Standard as a License type.\n* `Advantage` - Advantage as a License type.\n* `Premier` - Premier as a License type.\n* `IWO-Essential` - IWO-Essential as a License type.\n* `IWO-Advantage` - IWO-Advantage as a License type.\n* `IWO-Premier` - IWO-Premier as a License type.",
Description: "Active license tier for the purchased Cisco device's deployment.\n* `Base` - Base as a License type. It is default license type.\n* `Essential` - Essential as a License type.\n* `Standard` - Standard as a License type.\n* `Advantage` - Advantage as a License type.\n* `Premier` - Premier as a License type.\n* `IWO-Essential` - IWO-Essential as a License type.\n* `IWO-Advantage` - IWO-Advantage as a License type.\n* `IWO-Premier` - IWO-Premier as a License type.\n* `IKS-Advantage` - IKS-Advantage as a License type.",
Type: schema.TypeString,
Optional: true,
},
Expand Down
108 changes: 108 additions & 0 deletions intersight/data_source_intersight_chassis_iom_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,39 @@ func dataSourceChassisIomProfile() *schema.Resource {
Type: schema.TypeString,
Optional: true,
},
"action_params": {
Type: schema.TypeList,
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,
},
"name": {
Description: "The action parameter identifier.",
Type: schema.TypeString,
Optional: true,
},
"object_type": {
Description: "The fully-qualified name of the instantiated, concrete type.\nThe value should be the same as the 'ClassId' property.",
Type: schema.TypeString,
Optional: true,
},
"value": {
Description: "The action parameter value.",
Type: schema.TypeString,
Optional: true,
},
},
},
},
"additional_properties": {
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -559,6 +592,39 @@ func dataSourceChassisIomProfile() *schema.Resource {
Type: schema.TypeString,
Optional: true,
},
"action_params": {
Type: schema.TypeList,
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,
},
"name": {
Description: "The action parameter identifier.",
Type: schema.TypeString,
Optional: true,
},
"object_type": {
Description: "The fully-qualified name of the instantiated, concrete type.\nThe value should be the same as the 'ClassId' property.",
Type: schema.TypeString,
Optional: true,
},
"value": {
Description: "The action parameter value.",
Type: schema.TypeString,
Optional: true,
},
},
},
},
"additional_properties": {
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -1109,6 +1175,46 @@ func dataSourceChassisIomProfileRead(c context.Context, d *schema.ResourceData,
o.SetAction(x)
}

if v, ok := d.GetOk("action_params"); ok {
x := make([]models.PolicyActionParam, 0)
s := v.([]interface{})
for i := 0; i < len(s); i++ {
o := &models.PolicyActionParam{}
l := s[i].(map[string]interface{})
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("policy.ActionParam")
if v, ok := l["name"]; ok {
{
x := (v.(string))
o.SetName(x)
}
}
if v, ok := l["object_type"]; ok {
{
x := (v.(string))
o.SetObjectType(x)
}
}
if v, ok := l["value"]; ok {
{
x := (v.(string))
o.SetValue(x)
}
}
x = append(x, *o)
}
o.SetActionParams(x)
}

if v, ok := d.GetOk("additional_properties"); ok {
x := []byte(v.(string))
var x1 interface{}
Expand Down Expand Up @@ -1723,6 +1829,8 @@ func dataSourceChassisIomProfileRead(c context.Context, d *schema.ResourceData,
var temp = make(map[string]interface{})
temp["account_moid"] = (s.GetAccountMoid())
temp["action"] = (s.GetAction())

temp["action_params"] = flattenListPolicyActionParam(s.GetActionParams(), d)
temp["additional_properties"] = flattenAdditionalProperties(s.AdditionalProperties)

temp["ancestors"] = flattenListMoBaseMoRelationship(s.GetAncestors(), d)
Expand Down
108 changes: 108 additions & 0 deletions intersight/data_source_intersight_chassis_profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,39 @@ func dataSourceChassisProfile() *schema.Resource {
Type: schema.TypeString,
Optional: true,
},
"action_params": {
Type: schema.TypeList,
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,
},
"name": {
Description: "The action parameter identifier.",
Type: schema.TypeString,
Optional: true,
},
"object_type": {
Description: "The fully-qualified name of the instantiated, concrete type.\nThe value should be the same as the 'ClassId' property.",
Type: schema.TypeString,
Optional: true,
},
"value": {
Description: "The action parameter value.",
Type: schema.TypeString,
Optional: true,
},
},
},
},
"additional_properties": {
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -731,6 +764,39 @@ func dataSourceChassisProfile() *schema.Resource {
Type: schema.TypeString,
Optional: true,
},
"action_params": {
Type: schema.TypeList,
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,
},
"name": {
Description: "The action parameter identifier.",
Type: schema.TypeString,
Optional: true,
},
"object_type": {
Description: "The fully-qualified name of the instantiated, concrete type.\nThe value should be the same as the 'ClassId' property.",
Type: schema.TypeString,
Optional: true,
},
"value": {
Description: "The action parameter value.",
Type: schema.TypeString,
Optional: true,
},
},
},
},
"additional_properties": {
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -1453,6 +1519,46 @@ func dataSourceChassisProfileRead(c context.Context, d *schema.ResourceData, met
o.SetAction(x)
}

if v, ok := d.GetOk("action_params"); ok {
x := make([]models.PolicyActionParam, 0)
s := v.([]interface{})
for i := 0; i < len(s); i++ {
o := &models.PolicyActionParam{}
l := s[i].(map[string]interface{})
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("policy.ActionParam")
if v, ok := l["name"]; ok {
{
x := (v.(string))
o.SetName(x)
}
}
if v, ok := l["object_type"]; ok {
{
x := (v.(string))
o.SetObjectType(x)
}
}
if v, ok := l["value"]; ok {
{
x := (v.(string))
o.SetValue(x)
}
}
x = append(x, *o)
}
o.SetActionParams(x)
}

if v, ok := d.GetOk("additional_properties"); ok {
x := []byte(v.(string))
var x1 interface{}
Expand Down Expand Up @@ -2273,6 +2379,8 @@ func dataSourceChassisProfileRead(c context.Context, d *schema.ResourceData, met
var temp = make(map[string]interface{})
temp["account_moid"] = (s.GetAccountMoid())
temp["action"] = (s.GetAction())

temp["action_params"] = flattenListPolicyActionParam(s.GetActionParams(), d)
temp["additional_properties"] = flattenAdditionalProperties(s.AdditionalProperties)

temp["ancestors"] = flattenListMoBaseMoRelationship(s.GetAncestors(), d)
Expand Down
16 changes: 16 additions & 0 deletions intersight/data_source_intersight_compute_blade.go
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,11 @@ func dataSourceComputeBlade() *schema.Resource {
Type: schema.TypeString,
Optional: true,
},
"name": {
Description: "The name of the UCS Fabric Interconnect cluster or Cisco Integrated Management Controller (CIMC). When this server is attached to a UCS Fabric Interconnect, the value of this property is the name of the UCS Fabric Interconnect along with chassis/server Id. When this server configured in standalone mode, the value of this property is the name of the Cisco Integrated Management Controller. when this server is configired in IMM mode, the value of this property contains model and chassis/server Id.",
Type: schema.TypeString,
Optional: true,
},
"num_adaptors": {
Description: "The total number of network adapters present on the server.",
Type: schema.TypeInt,
Expand Down Expand Up @@ -3042,6 +3047,11 @@ func dataSourceComputeBlade() *schema.Resource {
Type: schema.TypeString,
Optional: true,
},
"name": {
Description: "The name of the UCS Fabric Interconnect cluster or Cisco Integrated Management Controller (CIMC). When this server is attached to a UCS Fabric Interconnect, the value of this property is the name of the UCS Fabric Interconnect along with chassis/server Id. When this server configured in standalone mode, the value of this property is the name of the Cisco Integrated Management Controller. when this server is configired in IMM mode, the value of this property contains model and chassis/server Id.",
Type: schema.TypeString,
Optional: true,
},
"num_adaptors": {
Description: "The total number of network adapters present on the server.",
Type: schema.TypeInt,
Expand Down Expand Up @@ -5033,6 +5043,11 @@ func dataSourceComputeBladeRead(c context.Context, d *schema.ResourceData, meta
o.SetMoid(x)
}

if v, ok := d.GetOk("name"); ok {
x := (v.(string))
o.SetName(x)
}

if v, ok := d.GetOkExists("num_adaptors"); ok {
x := int64(v.(int))
o.SetNumAdaptors(x)
Expand Down Expand Up @@ -5817,6 +5832,7 @@ func dataSourceComputeBladeRead(c context.Context, d *schema.ResourceData, meta
temp["mod_time"] = (s.GetModTime()).String()
temp["model"] = (s.GetModel())
temp["moid"] = (s.GetMoid())
temp["name"] = (s.GetName())
temp["num_adaptors"] = (s.GetNumAdaptors())
temp["num_cpu_cores"] = (s.GetNumCpuCores())
temp["num_cpu_cores_enabled"] = (s.GetNumCpuCoresEnabled())
Expand Down
Loading

0 comments on commit c78c636

Please sign in to comment.