Skip to content

Commit

Permalink
refreshing the provider for intersight version 18534 (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb authored Sep 30, 2024
1 parent 8c5b9f6 commit 44b38f9
Show file tree
Hide file tree
Showing 10,289 changed files with 29,651 additions and 26,927 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.56
* Refreshes the terraform module to be in sync with the latest Cisco Intersight model (build 18534)

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

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.55
VERSION=1.0.56
TEST?=$$(go list ./... |grep -v 'vendor')
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
WEBSITE_REPO=github.com/hashicorp/terraform-website
Expand Down
File renamed without changes.
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.55"
version = "1.0.56"
}
}
}
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.55"
version = "1.0.56"
}
}
}
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.55"
version = "1.0.56"
}
}
}
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion intersight/data_source_intersight_asset_target.go

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion intersight/data_source_intersight_cloud_regions.go

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion intersight/data_source_intersight_cloud_sku_volume_type.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion intersight/data_source_intersight_compute_blade.go
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@ func getComputeBladeSchema() map[string]*schema.Schema {
Optional: true,
},
"nr_lifecycle": {
Description: "The lifecycle state of the server. This will map to the discovery lifecycle as represented in the server Identity object.\n* `None` - Default state of an equipment. This should be an initial state when no state is defined for an equipment.\n* `Active` - Default Lifecycle State for a physical entity.\n* `Decommissioned` - Decommission Lifecycle state.\n* `DiscoveryInProgress` - DiscoveryInProgress Lifecycle state.\n* `DiscoveryFailed` - DiscoveryFailed Lifecycle state.\n* `FirmwareUpgradeInProgress` - Firmware upgrade is in progress on given physical entity.\n* `SecureEraseInProgress` - Secure Erase is in progress on given physical entity.\n* `BladeMigrationInProgress` - Server slot migration is in progress on given physical entity.\n* `SlotMismatch` - The blade server is detected in a different chassis/slot than it was previously.",
Description: "The lifecycle state of the server. This will map to the discovery lifecycle as represented in the server Identity object.\n* `None` - Default state of an equipment. This should be an initial state when no state is defined for an equipment.\n* `Active` - Default Lifecycle State for a physical entity.\n* `Decommissioned` - Decommission Lifecycle state.\n* `DiscoveryInProgress` - DiscoveryInProgress Lifecycle state.\n* `DiscoveryFailed` - DiscoveryFailed Lifecycle state.\n* `FirmwareUpgradeInProgress` - Firmware upgrade is in progress on given physical entity.\n* `SecureEraseInProgress` - Secure Erase is in progress on given physical entity.\n* `BladeMigrationInProgress` - Server slot migration is in progress on given physical entity.\n* `SlotMismatch` - The blade server is detected in a different chassis/slot than it was previously.\n* `Removed` - The blade server has been removed from its discovered slot, and not detected anywhere else. Blade inventory can be cleaned up by performing a software remove operation on the physically removed blade.\n* `Moved` - The blade server has been moved from its discovered location to a new location. Blade inventory can be updated by performing a rediscover operation on the moved blade.\n* `Replaced` - The blade server has been removed from its discovered location and another blade has been inserted in that location. Blade inventory can be cleaned up and updated by doing a software remove operation on the physically removed blade.\n* `MovedAndReplaced` - The blade server has been moved from its discovered location to a new location and another blade has been inserted into the old discovered location. Blade inventory can be updated by performing a rediscover operation on the moved blade.",
Type: schema.TypeString,
Optional: true,
},
Expand Down
165 changes: 164 additions & 1 deletion intersight/data_source_intersight_compute_blade_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,40 @@ func getComputeBladeIdentitySchema() map[string]*schema.Schema {
},
},
},
"discovered_blade_id_in_curr_location": {
Description: "An array of relationships to computeBladeIdentity resources.",
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,
},
"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,
},
},
},
},
"domain_group_moid": {
Description: "The DomainGroup ID for this managed object.",
Type: schema.TypeString,
Expand All @@ -150,7 +184,7 @@ func getComputeBladeIdentitySchema() map[string]*schema.Schema {
Optional: true,
},
"nr_lifecycle": {
Description: "The equipment's lifecycle status.\n* `None` - Default state of an equipment. This should be an initial state when no state is defined for an equipment.\n* `Active` - Default Lifecycle State for a physical entity.\n* `Decommissioned` - Decommission Lifecycle state.\n* `DecommissionInProgress` - Decommission Inprogress Lifecycle state.\n* `RecommissionInProgress` - Recommission Inprogress Lifecycle state.\n* `OperationFailed` - Failed Operation Lifecycle state.\n* `ReackInProgress` - ReackInProgress Lifecycle state.\n* `RemoveInProgress` - RemoveInProgress Lifecycle state.\n* `Discovered` - Discovered Lifecycle state.\n* `DiscoveryInProgress` - DiscoveryInProgress Lifecycle state.\n* `DiscoveryFailed` - DiscoveryFailed Lifecycle state.\n* `FirmwareUpgradeInProgress` - Firmware upgrade is in progress on given physical entity.\n* `SecureEraseInProgress` - Secure Erase is in progress on given physical entity.\n* `BladeMigrationInProgress` - Server slot migration is in progress on given physical entity.\n* `Inactive` - Inactive Lifecycle state.\n* `ReplaceInProgress` - ReplaceInProgress Lifecycle state.\n* `SlotMismatch` - The blade server is detected in a different chassis/slot than it was previously.\n* `DomainRmaPendingUserAction` - Domain RMA detected due to the presence of an old pair of FIs with mismatched serial numbers within the same account. User to either initiate the 'Replace Domain workflow' or unclaim the old domain.",
Description: "The equipment's lifecycle status.\n* `None` - Default state of an equipment. This should be an initial state when no state is defined for an equipment.\n* `Active` - Default Lifecycle State for a physical entity.\n* `Decommissioned` - Decommission Lifecycle state.\n* `DecommissionInProgress` - Decommission Inprogress Lifecycle state.\n* `RecommissionInProgress` - Recommission Inprogress Lifecycle state.\n* `OperationFailed` - Failed Operation Lifecycle state.\n* `ReackInProgress` - ReackInProgress Lifecycle state.\n* `RemoveInProgress` - RemoveInProgress Lifecycle state.\n* `Discovered` - Discovered Lifecycle state.\n* `DiscoveryInProgress` - DiscoveryInProgress Lifecycle state.\n* `DiscoveryFailed` - DiscoveryFailed Lifecycle state.\n* `FirmwareUpgradeInProgress` - Firmware upgrade is in progress on given physical entity.\n* `SecureEraseInProgress` - Secure Erase is in progress on given physical entity.\n* `BladeMigrationInProgress` - Server slot migration is in progress on given physical entity.\n* `Inactive` - Inactive Lifecycle state.\n* `ReplaceInProgress` - ReplaceInProgress Lifecycle state.\n* `SlotMismatch` - The blade server is detected in a different chassis/slot than it was previously.\n* `ReplacementPendingUserAction` - A new blade server is detected, and discovery is pending cleanup of old blade originally discovered in the new blade's location.\n* `Removed` - The blade server has been removed from its discovered slot, and not detected anywhere else within the domain.\n* `Moved` - The blade server has been moved from its discovered location to a new location within the domain.\n* `Replaced` - The blade server has been removed from its discovered location and another blade has been inserted. in that location.\n* `MovedAndReplaced` - The blade server has been moved from its discovered location to a new location within the domain and another blade has been inserted into the previously discovered location.\n* `DomainRmaPendingUserAction` - Domain RMA detected due to the presence of an old pair of FIs with mismatched serial numbers within the same account. User to either initiate the 'Replace Domain workflow' or unclaim the old domain.",
Type: schema.TypeString,
Optional: true,
},
Expand Down Expand Up @@ -218,6 +252,40 @@ func getComputeBladeIdentitySchema() map[string]*schema.Schema {
Type: schema.TypeString,
Optional: true,
},
"new_blade_id_in_discovered_location": {
Description: "An array of relationships to computeBladeIdentity resources.",
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,
},
"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,
},
},
},
},
"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,
Expand Down Expand Up @@ -372,6 +440,11 @@ func getComputeBladeIdentitySchema() map[string]*schema.Schema {
},
},
},
"reset_to_default": {
Description: "Specifies whether device configurations need to be reset to default upon first-time discovery or recommission of a server.",
Type: schema.TypeBool,
Optional: true,
},
"serial": {
Description: "The serial number of the equipment.",
Type: schema.TypeString,
Expand Down Expand Up @@ -679,6 +752,46 @@ func dataSourceComputeBladeIdentityRead(c context.Context, d *schema.ResourceDat
o.SetCustomPermissionResources(x)
}

if v, ok := d.GetOk("discovered_blade_id_in_curr_location"); ok {
x := make([]models.ComputeBladeIdentityRelationship, 0)
s := v.([]interface{})
for i := 0; i < len(s); i++ {
o := &models.MoMoRef{}
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("mo.MoRef")
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)
}
}
x = append(x, models.MoMoRefAsComputeBladeIdentityRelationship(o))
}
o.SetDiscoveredBladeIdInCurrLocation(x)
}

if v, ok := d.GetOk("domain_group_moid"); ok {
x := (v.(string))
o.SetDomainGroupMoid(x)
Expand Down Expand Up @@ -774,6 +887,46 @@ func dataSourceComputeBladeIdentityRead(c context.Context, d *schema.ResourceDat
o.SetName(x)
}

if v, ok := d.GetOk("new_blade_id_in_discovered_location"); ok {
x := make([]models.ComputeBladeIdentityRelationship, 0)
s := v.([]interface{})
for i := 0; i < len(s); i++ {
o := &models.MoMoRef{}
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("mo.MoRef")
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)
}
}
x = append(x, models.MoMoRefAsComputeBladeIdentityRelationship(o))
}
o.SetNewBladeIdInDiscoveredLocation(x)
}

if v, ok := d.GetOk("object_type"); ok {
x := (v.(string))
o.SetObjectType(x)
Expand Down Expand Up @@ -964,6 +1117,11 @@ func dataSourceComputeBladeIdentityRead(c context.Context, d *schema.ResourceDat
}
}

if v, ok := d.GetOkExists("reset_to_default"); ok {
x := (v.(bool))
o.SetResetToDefault(x)
}

if v, ok := d.GetOk("serial"); ok {
x := (v.(string))
o.SetSerial(x)
Expand Down Expand Up @@ -1140,6 +1298,8 @@ func dataSourceComputeBladeIdentityRead(c context.Context, d *schema.ResourceDat
temp["current_slot_id"] = (s.GetCurrentSlotId())

temp["custom_permission_resources"] = flattenListMoBaseMoRelationship(s.GetCustomPermissionResources(), d)

temp["discovered_blade_id_in_curr_location"] = flattenListComputeBladeIdentityRelationship(s.GetDiscoveredBladeIdInCurrLocation(), d)
temp["domain_group_moid"] = (s.GetDomainGroupMoid())
temp["firmware_supportability"] = (s.GetFirmwareSupportability())
temp["identifier"] = (s.GetIdentifier())
Expand All @@ -1155,6 +1315,8 @@ func dataSourceComputeBladeIdentityRead(c context.Context, d *schema.ResourceDat
temp["model"] = (s.GetModel())
temp["moid"] = (s.GetMoid())
temp["name"] = (s.GetName())

temp["new_blade_id_in_discovered_location"] = flattenListComputeBladeIdentityRelationship(s.GetNewBladeIdInDiscoveredLocation(), d)
temp["object_type"] = (s.GetObjectType())
temp["owners"] = (s.GetOwners())

Expand All @@ -1166,6 +1328,7 @@ func dataSourceComputeBladeIdentityRead(c context.Context, d *schema.ResourceDat
temp["presence"] = (s.GetPresence())

temp["registered_device"] = flattenMapAssetDeviceRegistrationRelationship(s.GetRegisteredDevice(), d)
temp["reset_to_default"] = (s.GetResetToDefault())
temp["serial"] = (s.GetSerial())
temp["shared_scope"] = (s.GetSharedScope())
temp["slot_id"] = (s.GetSlotId())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ func getComputePhysicalSummarySchema() map[string]*schema.Schema {
Optional: true,
},
"nr_lifecycle": {
Description: "The lifecycle of the blade server.\n* `None` - Default state of an equipment. This should be an initial state when no state is defined for an equipment.\n* `Active` - Default Lifecycle State for a physical entity.\n* `Decommissioned` - Decommission Lifecycle state.\n* `DiscoveryInProgress` - DiscoveryInProgress Lifecycle state.\n* `DiscoveryFailed` - DiscoveryFailed Lifecycle state.\n* `FirmwareUpgradeInProgress` - Firmware upgrade is in progress on given physical entity.\n* `SecureEraseInProgress` - Secure Erase is in progress on given physical entity.\n* `BladeMigrationInProgress` - Server slot migration is in progress on given physical entity.\n* `SlotMismatch` - The blade server is detected in a different chassis/slot than it was previously.",
Description: "The lifecycle of the blade server.\n* `None` - Default state of an equipment. This should be an initial state when no state is defined for an equipment.\n* `Active` - Default Lifecycle State for a physical entity.\n* `Decommissioned` - Decommission Lifecycle state.\n* `DiscoveryInProgress` - DiscoveryInProgress Lifecycle state.\n* `DiscoveryFailed` - DiscoveryFailed Lifecycle state.\n* `FirmwareUpgradeInProgress` - Firmware upgrade is in progress on given physical entity.\n* `SecureEraseInProgress` - Secure Erase is in progress on given physical entity.\n* `BladeMigrationInProgress` - Server slot migration is in progress on given physical entity.\n* `SlotMismatch` - The blade server is detected in a different chassis/slot than it was previously.\n* `Removed` - The blade server has been removed from its discovered slot, and not detected anywhere else. Blade inventory can be cleaned up by performing a software remove operation on the physically removed blade.\n* `Moved` - The blade server has been moved from its discovered location to a new location. Blade inventory can be updated by performing a rediscover operation on the moved blade.\n* `Replaced` - The blade server has been removed from its discovered location and another blade has been inserted in that location. Blade inventory can be cleaned up and updated by doing a software remove operation on the physically removed blade.\n* `MovedAndReplaced` - The blade server has been moved from its discovered location to a new location and another blade has been inserted into the old discovered location. Blade inventory can be updated by performing a rediscover operation on the moved blade.",
Type: schema.TypeString,
Optional: true,
},
Expand Down
Loading

0 comments on commit 44b38f9

Please sign in to comment.