Skip to content

Commit

Permalink
refreshing the provider for intersight version 14430 (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvb authored Nov 20, 2023
1 parent 99d98c2 commit 2c74d77
Show file tree
Hide file tree
Showing 15,207 changed files with 24,036 additions and 21,655 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.42
* Refreshes the terraform module to be in sync with the latest Cisco Intersight model (build 14430)

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

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.41
VERSION=1.0.42
TEST?=$$(go list ./... |grep -v 'vendor')
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
WEBSITE_REPO=github.com/hashicorp/terraform-website
Expand Down
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.41"
version = "1.0.42"
}
}
}
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.41"
version = "1.0.42"
}
}
}
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.41"
version = "1.0.42"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ require (
github.com/oklog/run v1.0.0 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/zclconf/go-cty v1.2.1 // indirect
golang.org/x/net v0.16.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/net v0.18.0 // indirect
golang.org/x/sys v0.14.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/appengine v1.6.6 // indirect
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987 // indirect
google.golang.org/grpc v1.32.0 // indirect
Expand Down
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/
golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.16.0 h1:7eBu7KsSvFDtSXUIDbh3aqlK4DPsZ1rByC8PFfBThos=
golang.org/x/net v0.16.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
golang.org/x/net v0.18.0 h1:mIYleuAkSbHh0tCv7RvjL3F6ZVbLjq4+R7zbOn3Kokg=
golang.org/x/net v0.18.0/go.mod h1:/czyP5RqHAH4odGYxBJ1qz0+CE5WZ+2j1YgoEo8F2jQ=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
Expand Down Expand Up @@ -373,15 +373,15 @@ golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q=
golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k=
golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
Expand Down
6 changes: 3 additions & 3 deletions intersight/data_source_intersight_appliance_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func getApplianceBackupSchema() map[string]*schema.Schema {
},
},
"protocol": {
Description: "Communication protocol used by the file server (e.g. scp or sftp).\n* `scp` - Secure Copy Protocol (SCP) to access the file server.\n* `sftp` - SSH File Transfer Protocol (SFTP) to access file server.",
Description: "Communication protocol used by the file server (e.g. scp, sftp, or CIFS).\n* `scp` - Secure Copy Protocol (SCP) to access the file server.\n* `sftp` - SSH File Transfer Protocol (SFTP) to access file server.\n* `cifs` - Common Internet File System (CIFS) Protocol to access file server.",
Type: schema.TypeString,
Optional: true,
},
Expand All @@ -240,7 +240,7 @@ func getApplianceBackupSchema() map[string]*schema.Schema {
Optional: true,
},
"remote_path": {
Description: "File server directory to copy the file.",
Description: "File server directory or share name to copy the file.",
Type: schema.TypeString,
Optional: true,
},
Expand All @@ -260,7 +260,7 @@ func getApplianceBackupSchema() map[string]*schema.Schema {
Optional: true,
},
"status": {
Description: "Status of the backup managed object.\n* `Started` - Backup or restore process has started.\n* `Created` - Backup or restore is in created state.\n* `Failed` - Backup or restore process has failed.\n* `Completed` - Backup or restore process has completed.\n* `Copied` - Backup file has been copied.",
Description: "Status of the backup managed object.\n* `Started` - Backup or restore process has started.\n* `Created` - Backup or restore is in created state.\n* `Failed` - Backup or restore process has failed.\n* `Completed` - Backup or restore process has completed.\n* `Copied` - Backup file has been copied.\n* `Cleanup Failed` - Cleanup of the old backup has failed.",
Type: schema.TypeString,
Optional: true,
},
Expand Down
24 changes: 23 additions & 1 deletion intersight/data_source_intersight_appliance_backup_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,18 @@ func getApplianceBackupMonitorSchema() map[string]*schema.Schema {
Type: schema.TypeString,
Optional: true,
},
"filename": {
Description: "Filename of the backup for the backup monitor.",
Type: schema.TypeString,
Optional: true,
},
"last_backup_rotation_status": {
Description: "Status of the oldest Intersight Appliance backup cleanup.\n* `BackupFound` - Backup is successful and complete.\n* `BackupFailed` - The current Backup failed.\n* `BackupOutdated` - Backup is old and outdated.\n* `BackupCleanupFailed` - Cleanup of the old backup has failed.",
Type: schema.TypeString,
Optional: true,
},
"last_backup_status": {
Description: "Status of the most recent Intersight Appliance backup.\n* `BackupFound` - Backup is successful and complete.\n* `BackupFailed` - The current Backup failed.\n* `BackupOutdated` - Backup is old and outdated.",
Description: "Status of the most recent Intersight Appliance backup.\n* `BackupFound` - Backup is successful and complete.\n* `BackupFailed` - The current Backup failed.\n* `BackupOutdated` - Backup is old and outdated.\n* `BackupCleanupFailed` - Cleanup of the old backup has failed.",
Type: schema.TypeString,
Optional: true,
},
Expand Down Expand Up @@ -479,6 +489,16 @@ func dataSourceApplianceBackupMonitorRead(c context.Context, d *schema.ResourceD
o.SetDomainGroupMoid(x)
}

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

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

if v, ok := d.GetOk("last_backup_status"); ok {
x := (v.(string))
o.SetLastBackupStatus(x)
Expand Down Expand Up @@ -750,6 +770,8 @@ func dataSourceApplianceBackupMonitorRead(c context.Context, d *schema.ResourceD

temp["create_time"] = (s.GetCreateTime()).String()
temp["domain_group_moid"] = (s.GetDomainGroupMoid())
temp["filename"] = (s.GetFilename())
temp["last_backup_rotation_status"] = (s.GetLastBackupRotationStatus())
temp["last_backup_status"] = (s.GetLastBackupStatus())

temp["mod_time"] = (s.GetModTime()).String()
Expand Down
26 changes: 24 additions & 2 deletions intersight/data_source_intersight_appliance_backup_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func getApplianceBackupPolicySchema() map[string]*schema.Schema {
},
},
"protocol": {
Description: "Communication protocol used by the file server (e.g. scp or sftp).\n* `scp` - Secure Copy Protocol (SCP) to access the file server.\n* `sftp` - SSH File Transfer Protocol (SFTP) to access file server.",
Description: "Communication protocol used by the file server (e.g. scp, sftp, or CIFS).\n* `scp` - Secure Copy Protocol (SCP) to access the file server.\n* `sftp` - SSH File Transfer Protocol (SFTP) to access file server.\n* `cifs` - Common Internet File System (CIFS) Protocol to access file server.",
Type: schema.TypeString,
Optional: true,
},
Expand All @@ -235,7 +235,7 @@ func getApplianceBackupPolicySchema() map[string]*schema.Schema {
Optional: true,
},
"remote_path": {
Description: "File server directory to copy the file.",
Description: "File server directory or share name to copy the file.",
Type: schema.TypeString,
Optional: true,
},
Expand All @@ -244,6 +244,16 @@ func getApplianceBackupPolicySchema() map[string]*schema.Schema {
Type: schema.TypeInt,
Optional: true,
},
"retention_count": {
Description: "The number of backups before earliest backup is overwritten. Requires cleanup policy to be enabled.",
Type: schema.TypeInt,
Optional: true,
},
"retention_policy_enabled": {
Description: "If backup rotate policy is set, older backups will automatically be overwritten. The number of backups before overwriting is defined by the retentionCount property.",
Type: schema.TypeBool,
Optional: true,
},
"schedule": {
Description: "Schedule to create a backup of the Intersight Appliance. Manualbackup field must be set to 'false' for this schedule to be active.",
Type: schema.TypeList,
Expand Down Expand Up @@ -738,6 +748,16 @@ func dataSourceApplianceBackupPolicyRead(c context.Context, d *schema.ResourceDa
o.SetRemotePort(x)
}

if v, ok := d.GetOkExists("retention_count"); ok {
x := int64(v.(int))
o.SetRetentionCount(x)
}

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

if v, ok := d.GetOk("schedule"); ok {
p := make([]models.OnpremSchedule, 0, 1)
s := v.([]interface{})
Expand Down Expand Up @@ -991,6 +1011,8 @@ func dataSourceApplianceBackupPolicyRead(c context.Context, d *schema.ResourceDa
temp["remote_host"] = (s.GetRemoteHost())
temp["remote_path"] = (s.GetRemotePath())
temp["remote_port"] = (s.GetRemotePort())
temp["retention_count"] = (s.GetRetentionCount())
temp["retention_policy_enabled"] = (s.GetRetentionPolicyEnabled())

temp["schedule"] = flattenMapOnpremSchedule(s.GetSchedule(), d)
temp["shared_scope"] = (s.GetSharedScope())
Expand Down
Loading

0 comments on commit 2c74d77

Please sign in to comment.