interfaces

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var POW2BYTEMAP = map[string]int{

	"bytes": 1,
	"b":     1,
	"k":     1024,
	"m":     int(math.Pow(1024, 2)),
	"g":     int(math.Pow(1024, 3)),
	"t":     int(math.Pow(1024, 4)),
	"p":     int(math.Pow(1024, 5)),
	"e":     int(math.Pow(1024, 6)),
	"z":     int(math.Pow(1024, 7)),
	"y":     int(math.Pow(1024, 8)),
	"kb":    1024,
	"mb":    int(math.Pow(1024, 2)),
	"gb":    int(math.Pow(1024, 3)),
	"tb":    int(math.Pow(1024, 4)),
	"pb":    int(math.Pow(1024, 5)),
	"eb":    int(math.Pow(1024, 6)),
	"zb":    int(math.Pow(1024, 7)),
	"yb":    int(math.Pow(1024, 8)),
}

POW2BYTEMAP coverts size based on size unit.

Functions

func BoolToOnline

func BoolToOnline(value bool) string

BoolToOnline converts bool to online or offline

func ByteFormat

func ByteFormat(value int64) (int64, string)

ByteFormat converts bytes to respective byte size

func CreateCluster added in v1.1.0

func CreateCluster(errorHandler *utils.ErrorHandler, r restclient.RestClient, body ClusterResourceBodyDataModelONTAP) error

CreateCluster to create cluster. This is async operation.

func CreateStorageFlexcache added in v1.1.0

func CreateStorageFlexcache(errorHandler *utils.ErrorHandler, r restclient.RestClient, data StorageFlexcacheResourceModel) error

CreateStorageFlexcache creates flexcache. POST API returns result, but does not include the attributes that are not set. Make a spearate GET call to get all attributes.

func DeleteCifsLocalGroup added in v1.1.0

func DeleteCifsLocalGroup(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmid string, uuid string) error

DeleteCifsLocalGroup to delete protocols_cifs_local_group

func DeleteCifsLocalGroupMember added in v1.1.0

func DeleteCifsLocalGroupMember(errorHandler *utils.ErrorHandler, r restclient.RestClient, body CifsLocalGroupMemberResourceBodyDataModelONTAP, svmid string, groupid string) error

DeleteCifsLocalGroupMember to delete protocols_cifs_local_group_member

func DeleteCifsLocalUser added in v1.1.0

func DeleteCifsLocalUser(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmid string, uuid string) error

DeleteCifsLocalUser to delete protocols_cifs_local_user

func DeleteCifsService added in v1.1.0

func DeleteCifsService(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmid string, force bool, body CifsServiceResourceDeleteBodyDataModelONTAP) error

DeleteCifsService to delete protocols_cifs_service

func DeleteClusterLicensingLicense

func DeleteClusterLicensingLicense(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, serialNumber string) error

DeleteClusterLicensingLicense to delete /cluster/licensing/licenses

func DeleteClusterPeers added in v1.1.0

func DeleteClusterPeers(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) error

DeleteClusterPeers to delete cluster_peers

func DeleteClusterSchedule

func DeleteClusterSchedule(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) error

DeleteClusterSchedule to delete job schedule

func DeleteExportPolicy

func DeleteExportPolicy(errorHandler *utils.ErrorHandler, r restclient.RestClient, id string) error

DeleteExportPolicy to delete export policy

func DeleteExportPolicyRule

func DeleteExportPolicyRule(errorHandler *utils.ErrorHandler, r restclient.RestClient, exportPolicyID string, index int64) error

DeleteExportPolicyRule to delete export policy rule

func DeleteGoPrefix

func DeleteGoPrefix(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) error

DeleteGoPrefix to delete tag_prefix

func DeleteIPInterface

func DeleteIPInterface(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) error

DeleteIPInterface to delete ip_interface

func DeleteIPRoute

func DeleteIPRoute(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) error

DeleteIPRoute to delete net_route

func DeleteNameServicesDNS

func DeleteNameServicesDNS(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) error

DeleteNameServicesDNS deletes a DNS

func DeleteNameServicesLDAP added in v1.1.0

func DeleteNameServicesLDAP(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmid string) error

DeleteNameServicesLDAP to delete name_services_ldap

func DeleteProtocolsCIFSShare added in v1.1.0

func DeleteProtocolsCIFSShare(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, svmUUID string) error

DeleteProtocolsCIFSShare to delete protocols_cifs_share

func DeleteProtocolsCIFSShareACL added in v1.1.3

func DeleteProtocolsCIFSShareACL(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmID string, shareName string, userOrGroup string, aclType string) error

DeleteProtocolsCIFSShareACL to delete protocols_cifs_share_acl

func DeleteProtocolsNfsService

func DeleteProtocolsNfsService(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) error

DeleteProtocolsNfsService Deletes a NFS Service

func DeleteProtocolsSanIgroup added in v1.1.0

func DeleteProtocolsSanIgroup(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) error

DeleteProtocolsSanIgroup to delete protocols_san_igroup

func DeleteProtocolsSanLunMaps added in v1.1.0

func DeleteProtocolsSanLunMaps(errorHandler *utils.ErrorHandler, r restclient.RestClient, igroupUUID string, lunUUID string) error

DeleteProtocolsSanLunMaps to delete protocols_san_lun-maps

func DeleteSVMPeers added in v1.1.0

func DeleteSVMPeers(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) error

DeleteSVMPeers to delete svm_peers

func DeleteSecurityAccount added in v1.1.0

func DeleteSecurityAccount(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, ownerID string) error

DeleteSecurityAccount deletes a security account.

func DeleteSnapmirror

func DeleteSnapmirror(errorHandler *utils.ErrorHandler, r restclient.RestClient, id string) error

DeleteSnapmirror to delete ip_interface

func DeleteSnapmirrorPolicy

func DeleteSnapmirrorPolicy(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) error

DeleteSnapmirrorPolicy to delete ip_interface

func DeleteSnapshotPolicy

func DeleteSnapshotPolicy(errorHandler *utils.ErrorHandler, r restclient.RestClient, id string) error

DeleteSnapshotPolicy to delete storage_snapshot_policy

func DeleteStorageAggregate

func DeleteStorageAggregate(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) error

DeleteStorageAggregate to delete aggregate

func DeleteStorageFlexcache added in v1.1.0

func DeleteStorageFlexcache(errorHandler *utils.ErrorHandler, r restclient.RestClient, id string) error

DeleteStorageFlexcache to delete flexcache by id.

func DeleteStorageLun added in v1.1.0

func DeleteStorageLun(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) error

DeleteStorageLun to delete storage_lun

func DeleteStorageVolume

func DeleteStorageVolume(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) error

DeleteStorageVolume to delete volume

func DeleteStorageVolumeSnapshot

func DeleteStorageVolumeSnapshot(errorHandler *utils.ErrorHandler, r restclient.RestClient, volumeUUID string, uuid string) error

DeleteStorageVolumeSnapshot to delete a snapshot

func DeleteSvm

func DeleteSvm(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) error

DeleteSvm to delete svm

func GetCompression

func GetCompression(compression bool, inlineCompression bool) string

GetCompression gets values to compression and inlineCompression parameters

func GetJobByID

func GetJobByID(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) (interface{}, error)

GetJobByID returns the job state given the job uuid.

func InitializeSnapmirror

func InitializeSnapmirror(errorHandler *utils.ErrorHandler, r restclient.RestClient, id string, state string) error

InitializeSnapmirror ...

func OnlineToBool

func OnlineToBool(value string) bool

OnlineToBool converts online or offline to bool value

func UpdateCifsService added in v1.1.0

func UpdateCifsService(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmid string, force bool, body CifsServiceResourceBodyDataModelONTAP) error

UpdateCifsService to update protocols_cifs_service

func UpdateCluster added in v1.1.0

func UpdateCluster(errorHandler *utils.ErrorHandler, r restclient.RestClient, body ClusterResourceBodyDataModelONTAP) error

UpdateCluster to update cluster. This is async operation.

func UpdateClusterPeers added in v1.1.0

func UpdateClusterPeers(errorHandler *utils.ErrorHandler, r restclient.RestClient, data any, uuid string) error

UpdateClusterPeers updates Cluster Peer

func UpdateClusterSchedule

func UpdateClusterSchedule(errorHandler *utils.ErrorHandler, r restclient.RestClient, data ClusterScheduleResourceBodyDataModelONTAP, id string) error

UpdateClusterSchedule to update a job schedule

func UpdateExportPolicy

func UpdateExportPolicy(errorHandler *utils.ErrorHandler, r restclient.RestClient, data ExportpolicyResourceModel, id string) error

UpdateExportPolicy updates export policy

func UpdateIPInterface

func UpdateIPInterface(errorHandler *utils.ErrorHandler, r restclient.RestClient, body IPInterfaceResourceBodyDataModelONTAP, id string) error

UpdateIPInterface to update ip_interface

func UpdateNameServicesLDAP added in v1.1.0

func UpdateNameServicesLDAP(errorHandler *utils.ErrorHandler, r restclient.RestClient, body NameServicesLDAPResourceBodyDataModelONTAP, svmid string) error

UpdateNameServicesLDAP to update name_services_ldap

func UpdateProtocolsCIFSShare added in v1.1.0

func UpdateProtocolsCIFSShare(errorHandler *utils.ErrorHandler, r restclient.RestClient, body ProtocolsCIFSShareResourceBodyDataModelONTAP, name string, svmUUID string) error

UpdateProtocolsCIFSShare to update protocols_cifs_share

func UpdateProtocolsCIFSShareACL added in v1.1.3

func UpdateProtocolsCIFSShareACL(errorHandler *utils.ErrorHandler, r restclient.RestClient, body ProtocolsCIFSShareACLResourceBodyDataModelONTAP, svmID string, shareName string, userOrGroup string, aclType string) error

UpdateProtocolsCIFSShareACL to update protocols_cifs_share_acl

func UpdateProtocolsNfsService

func UpdateProtocolsNfsService(errorHandler *utils.ErrorHandler, r restclient.RestClient, request ProtocolsNfsServiceGetDataModelONTAP, uuid string) error

UpdateProtocolsNfsService Update a NFS service

func UpdateProtocolsSanIgroup added in v1.1.0

func UpdateProtocolsSanIgroup(errorHandler *utils.ErrorHandler, r restclient.RestClient, data UpdateProtocolsSanIgroupResourceBodyDataModelONTAP, uuid string) error

UpdateProtocolsSanIgroup to update a protocols_san_igroup

func UpdateSVMPeers added in v1.1.0

func UpdateSVMPeers(errorHandler *utils.ErrorHandler, r restclient.RestClient, data any, uuid string) error

UpdateSVMPeers updates svm peers

func UpdateSnapmirror added in v1.1.0

func UpdateSnapmirror(errorHandler *utils.ErrorHandler, r restclient.RestClient, data any, uuid string) error

UpdateSnapmirror updates Snapmirror

func UpdateSnapmirrorPolicy

func UpdateSnapmirrorPolicy(errorHandler *utils.ErrorHandler, r restclient.RestClient, data any, id string) error

UpdateSnapmirrorPolicy to update snapmirror policy

func UpdateSnapshotPolicy

func UpdateSnapshotPolicy(errorHandler *utils.ErrorHandler, r restclient.RestClient, data SnapshotPolicyResourceUpdateRequestONTAP, id string) error

UpdateSnapshotPolicy to update a Snapshot copy policy

func UpdateStorageAggregate

func UpdateStorageAggregate(errorHandler *utils.ErrorHandler, r restclient.RestClient, data StorageAggregateResourceModel, diskSize int, uuid string) error

UpdateStorageAggregate updates aggregate

func UpdateStorageLun added in v1.1.0

func UpdateStorageLun(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string, body StorageLunResourceBodyDataModelONTAP) error

UpdateStorageLun to update storage_lun

func UpdateStorageVolumeSnapshot

func UpdateStorageVolumeSnapshot(errorHandler *utils.ErrorHandler, r restclient.RestClient, data StorageVolumeSnapshotResourceModel, volumeUUID string, UUID string) error

UpdateStorageVolumeSnapshot updates snapshot

func UpdateSvm

func UpdateSvm(errorHandler *utils.ErrorHandler, r restclient.RestClient, data SvmResourceModel, uuid string, setAggrEmpty bool, setCommentEmpty bool) error

UpdateSvm to update a svm

func UpddateStorageVolume

func UpddateStorageVolume(errorHandler *utils.ErrorHandler, r restclient.RestClient, data StorageVolumeResourceModel, ID string) error

UpddateStorageVolume to update volume

func ValidateIntORString

func ValidateIntORString(errorHandler *utils.ErrorHandler, value string, astring string) error

ValidateIntORString to validate int or string

Types

type Acls added in v1.1.0

type Acls struct {
	Permission  string `json:"permission"` // Because Acls is nested in ProtocolsCIFSShareResourceBodyDataModelONTAP, when it unmarshal from API to go struct, 'mapstructure' does not work, and result in "Permission" instead of "permission". So, we need to use "json" tag to map the field.
	Type        string `json:"type"`
	UserOrGroup string `json:"user_or_group"`
}

Acls describes the acls data model using go types for mapping in ProtocolsCIFSShareResourceBodyDataModelONTAP.

type AclsGet added in v1.1.0

type AclsGet struct {
	Permission  string `mapstructure:"permission"` // ProtocolsCIFSShareGetDataModelONTAP needs 'mapstructure'
	Type        string `mapstructure:"type"`
	UserOrGroup string `mapstructure:"user_or_group"`
}

AclsGet describes the acls data model using go types for mapping in ProtocolsCIFSShareGetDataModelONTAP.

type AdDomainDataModel added in v1.1.0

type AdDomainDataModel struct {
	OrganizationalUnit string `mapstructure:"organizational_unit,omitempty"`
	User               string `mapstructure:"user,omitempty"`
	Password           string `mapstructure:"password,omitempty"`
	Fqdn               string `mapstructure:"fqdn,omitempty"`
}

AdDomainDataModel describes the ad_domain data model using go types for mapping.

type Aggregate

type Aggregate struct {
	Name string `mapstructure:"name"`
}

Aggregate describes the resource data model.

type AggregateBlockStorage

type AggregateBlockStorage struct {
	Primary AggregateBlockStoragePrimary `mapstructure:"primary"`
	Mirror  AggregateBlockStorageMirror  `mapstructure:"mirror"`
}

AggregateBlockStorage describes block_storage within StorageAggregateGetDataModelONTAP

type AggregateBlockStorageMirror

type AggregateBlockStorageMirror struct {
	Enabled bool `mapstructure:"enabled"`
}

AggregateBlockStorageMirror describes mirror within AggregateBlockStorage

type AggregateBlockStoragePrimary

type AggregateBlockStoragePrimary struct {
	DiskClass string `mapstructure:"disk_class,omitempty"`
	DiskCount int64  `mapstructure:"disk_count,omitempty"`
	RaidSize  int64  `mapstructure:"raid_size,omitempty"`
	RaidType  string `mapstructure:"raid_type,omitempty"`
}

AggregateBlockStoragePrimary describes primary within AggregateBlockStorage

type AggregateDataEncryption

type AggregateDataEncryption struct {
	SoftwareEncryptionEnabled bool `mapstructure:"software_encryption_enabled"`
}

AggregateDataEncryption describes data_encryption within StorageAggregateGetDataModelONTAP

type Analytics

type Analytics struct {
	State string `mapstructure:"state,omitempty"`
}

Analytics describes the resource data model.

type Authentication added in v1.1.0

type Authentication struct {
	State              string `mapstructure:"state,omitempty"`
	GeneratePassphrase bool   `mapstructure:"generate_passphrase,omitempty"`
	Passphrase         string `mapstructure:"passphrase,omitempty"`
}

Authentication describes the POST record body model using go types for mapping.

type AuthenticationCreateResponse added in v1.1.0

type AuthenticationCreateResponse struct {
	Passphrase string `mapstructure:"passphrase,omitempty"`
}

AuthenticationCreateResponse describes the POST record response model using go types for mapping.

type CifsLocalGroupDataSourceFilterModel added in v1.1.0

type CifsLocalGroupDataSourceFilterModel struct {
	Name    string `mapstructure:"name"`
	SVMName string `mapstructure:"svm.name"`
}

CifsLocalGroupDataSourceFilterModel describes the data source data model for queries.

type CifsLocalGroupGetDataModelONTAP added in v1.1.0

type CifsLocalGroupGetDataModelONTAP struct {
	Name        string   `mapstructure:"name"`
	SID         string   `mapstructure:"sid"`
	SVM         svm      `mapstructure:"svm"`
	Description string   `mapstructure:"description"`
	Members     []Member `mapstructure:"members,omitempty"`
}

CifsLocalGroupGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateCifsLocalGroup added in v1.1.0

CreateCifsLocalGroup to create protocols_cifs_local_group

func GetCifsLocalGroup added in v1.1.0

func GetCifsLocalGroup(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmid string, sid string) (*CifsLocalGroupGetDataModelONTAP, error)

GetCifsLocalGroup to get protocols_cifs_local_group info

func GetCifsLocalGroupByName added in v1.1.0

func GetCifsLocalGroupByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, svmName string) (*CifsLocalGroupGetDataModelONTAP, error)

GetCifsLocalGroupByName to get protocols_cifs_local_group info

func GetCifsLocalGroups added in v1.1.0

GetCifsLocalGroups to get protocols_cifs_local_group info for all resources matching a filter

func UpdateCifsLocalGroup added in v1.1.0

UpdateCifsLocalGroup to update protocols_cifs_local_group

type CifsLocalGroupMemberDataSourceFilterModel added in v1.1.0

type CifsLocalGroupMemberDataSourceFilterModel struct {
	Name    string `mapstructure:"name"` // Name of the local group name
	SVMName string `mapstructure:"svm.name"`
}

CifsLocalGroupMemberDataSourceFilterModel describes the data source data model for queries.

type CifsLocalGroupMemberGetDataModelONTAP added in v1.1.0

type CifsLocalGroupMemberGetDataModelONTAP struct {
	Name string `mapstructure:"name"`
	SVM  svm    `mapstructure:"svm"`
}

CifsLocalGroupMemberGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateCifsLocalGroupMember added in v1.1.0

CreateCifsLocalGroupMember to create protocols_cifs_local_group_member

func GetCifsLocalGroupMemberByName added in v1.1.0

func GetCifsLocalGroupMemberByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmid string, groupid string, user string) (*CifsLocalGroupMemberGetDataModelONTAP, error)

GetCifsLocalGroupMemberByName to get protocols_cifs_local_group_member info

func GetCifsLocalGroupMembers added in v1.1.0

func GetCifsLocalGroupMembers(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmid string, groupid string) ([]CifsLocalGroupMemberGetDataModelONTAP, error)

GetCifsLocalGroupMembers to get protocols_cifs_local_group_members info for all members of a group under a svm

type CifsLocalGroupMemberResourceBodyDataModelONTAP added in v1.1.0

type CifsLocalGroupMemberResourceBodyDataModelONTAP struct {
	Name string `mapstructure:"name"`
}

CifsLocalGroupMemberResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type CifsLocalGroupResourceBodyDataModelONTAP added in v1.1.0

type CifsLocalGroupResourceBodyDataModelONTAP struct {
	Name        string `mapstructure:"name,omitempty"`
	SVM         svm    `mapstructure:"svm,omitempty"`
	Description string `mapstructure:"description,omitempty"`
}

CifsLocalGroupResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type CifsLocalUserDataSourceFilterModel added in v1.1.0

type CifsLocalUserDataSourceFilterModel struct {
	Name    string `mapstructure:"name"`
	SVMName string `mapstructure:"svm.name"`
}

CifsLocalUserDataSourceFilterModel describes the data source data model for queries.

type CifsLocalUserGetDataModelONTAP added in v1.1.0

type CifsLocalUserGetDataModelONTAP struct {
	Name            string       `mapstructure:"name"`
	SID             string       `mapstructure:"sid"`
	SVM             svm          `mapstructure:"svm"`
	FullName        string       `mapstructure:"full_name"`
	Description     string       `mapstructure:"description"`
	Membership      []Membership `mapstructure:"membership"`
	AccountDisabled bool         `mapstructure:"account_disabled"`
}

CifsLocalUserGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateCifsLocalUser added in v1.1.0

CreateCifsLocalUser to create protocols_cifs_local_user

func GetCifsLocalUser added in v1.1.0

func GetCifsLocalUser(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmid string, sid string) (*CifsLocalUserGetDataModelONTAP, error)

GetCifsLocalUser to get protocols_cifs_local_user info

func GetCifsLocalUserByName added in v1.1.0

func GetCifsLocalUserByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, svmName string) (*CifsLocalUserGetDataModelONTAP, error)

GetCifsLocalUserByName to get protocols_cifs_local_user info

func GetCifsLocalUsers added in v1.1.0

GetCifsLocalUsers to get protocols_cifs_local_user info for all resources matching a filter

func UpdateCifsLocalUser added in v1.1.0

UpdateCifsLocalUser to update protocols_cifs_local_user

type CifsLocalUserResourceBodyDataModelONTAP added in v1.1.0

type CifsLocalUserResourceBodyDataModelONTAP struct {
	Name            string       `mapstructure:"name,omitempty"`
	SVM             svm          `mapstructure:"svm,omitempty"`
	Password        string       `mapstructure:"password,omitempty"`
	AccountDisabled bool         `mapstructure:"account_disabled"`
	Description     string       `mapstructure:"description,omitempty"`
	FullName        string       `mapstructure:"full_name,omitempty"`
	Membership      []Membership `mapstructure:"membership,omitempty"`
}

CifsLocalUserResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type CifsServiceDataModelONTAP added in v1.1.0

type CifsServiceDataModelONTAP struct {
	Name            string            `mapstructure:"name"`
	SVM             svm               `mapstructure:"svm"`
	DefaultUnixUser string            `mapstructure:"default_unix_user"`
	Enabled         bool              `mapstructure:"enabled"`
	Comment         string            `mapstructure:"comment,omitempty"`
	AdDomain        AdDomainDataModel `mapstructure:"ad_domain,omitempty"`
	Netbios         NetbiosDataModel  `mapstructure:"netbios,omitempty"`
	Security        SecurityDataModel `mapstructure:"security,omitempty"`
}

CifsServiceDataModelONTAP describes the GET record data model using go types for mapping.

func CreateCifsService added in v1.1.0

CreateCifsService to create protocols_cifs_service

func GetCifsServiceByName added in v1.1.0

func GetCifsServiceByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string) (*CifsServiceDataModelONTAP, error)

GetCifsServiceByName to get protocols_cifs_service info

func GetCifsServices added in v1.1.0

GetCifsServices to get protocols_cifs_service info for all resources matching a filter

type CifsServiceDataSourceFilterModel added in v1.1.0

type CifsServiceDataSourceFilterModel struct {
	Name    string `mapstructure:"name"`
	SVMName string `mapstructure:"svm.name"`
}

CifsServiceDataSourceFilterModel describes the data source data model for queries.

type CifsServiceResourceBodyDataModelONTAP added in v1.1.0

type CifsServiceResourceBodyDataModelONTAP struct {
	Name            string            `mapstructure:"name,omitempty"`
	SVM             svm               `mapstructure:"svm"`
	AdDomain        AdDomainDataModel `mapstructure:"ad_domain,omitempty"`
	Netbios         NetbiosDataModel  `mapstructure:"netbios,omitempty"`
	Comment         string            `mapstructure:"comment,omitempty"`
	Enabled         bool              `mapstructure:"enabled"`
	Security        SecurityDataModel `mapstructure:"security,omitempty"`
	DefaultUnixUser string            `mapstructure:"default_unix_user,omitempty"`
}

CifsServiceResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type CifsServiceResourceDeleteBodyDataModelONTAP added in v1.1.0

type CifsServiceResourceDeleteBodyDataModelONTAP struct {
	AdDomain AdDomainDataModel `mapstructure:"ad_domain"`
}

CifsServiceResourceDeleteBodyDataModelONTAP describe the body data model for delete using go types for mapping.

type CifsUserGroupPrivilegeDataSourceFilterModel added in v1.1.0

type CifsUserGroupPrivilegeDataSourceFilterModel struct {
	Name       string `mapstructure:"name"`
	SVMName    string `mapstructure:"svm.name"`
	Privileges string `mapstructure:"privileges"` //only support one privilege search
}

CifsUserGroupPrivilegeDataSourceFilterModel describes the data source data model for queries.

type CifsUserGroupPrivilegeGetDataModelONTAP added in v1.1.0

type CifsUserGroupPrivilegeGetDataModelONTAP struct {
	Name       string   `mapstructure:"name"`
	SVM        svm      `mapstructure:"svm"`
	Privileges []string `mapstructure:"privileges"`
}

CifsUserGroupPrivilegeGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateCifsUserGroupPrivilege added in v1.1.0

CreateCifsUserGroupPrivilege to create protocols_cifs_user_group_privilege

func GetCifsUserGroupPrivilegeByName added in v1.1.0

func GetCifsUserGroupPrivilegeByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, svmName string) (*CifsUserGroupPrivilegeGetDataModelONTAP, error)

GetCifsUserGroupPrivilegeByName to get protocols_cifs_user_group_privilege info

func GetCifsUserGroupPrivileges added in v1.1.0

GetCifsUserGroupPrivileges to get protocols_cifs_user_group_privilege info for all resources matching a filter

func UpdateCifsUserGroupPrivilege added in v1.1.0

UpdateCifsUserGroupPrivilege to update protocols_cifs_user_group_privilege

type CifsUserGroupPrivilegeResourceBodyDataModelONTAP added in v1.1.0

type CifsUserGroupPrivilegeResourceBodyDataModelONTAP struct {
	Name       string   `mapstructure:"name,omitempty"`
	SVM        svm      `mapstructure:"svm,omitempty"`
	Privileges []string `mapstructure:"privileges"`
}

CifsUserGroupPrivilegeResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type ClientMatch

type ClientMatch struct {
	Match string `mapstructure:"match,omitempty"`
}

ClientMatch describes the clients match struct

type Cluster

type Cluster struct {
	Name string `mapstructure:"name,omitempty"`
}

Cluster defines Cluster data model.

type ClusterCertificate added in v1.1.0

type ClusterCertificate struct {
	ID string `mapstructure:"uuid,omitempty"`
}

ClusterCertificate describes the Certificate data model used in ClusterGetDataModelONTAP.

type ClusterGetDataModelONTAP

type ClusterGetDataModelONTAP struct {
	// ConfigurableAttribute types.String `json:"configurable_attribute"`
	// ID                    types.String `json:"id"`
	Name                 string
	Version              versionModelONTAP
	Contact              string
	Location             string
	DNSDomains           []string           `mapstructure:"dns_domains"`
	NameServers          []string           `mapstructure:"name_servers"`
	NtpServers           []string           `mapstructure:"ntp_servers"`
	TimeZone             timeZone           `mapstructure:"timezone"`
	ClusterCertificate   ClusterCertificate `mapstructure:"certificate"`
	ManagementInterfaces []mgmtInterface    `mapstructure:"management_interfaces"`
	ID                   string             `mapstructure:"uuid"`
}

ClusterGetDataModelONTAP describes the GET record data model using go types for mapping.

func GetCluster

func GetCluster(errorHandler *utils.ErrorHandler, r restclient.RestClient) (*ClusterGetDataModelONTAP, error)

GetCluster to get cluster info

type ClusterLicense added in v1.1.0

type ClusterLicense struct {
	Keys []string `mapstructure:"keys,omitempty"`
}

ClusterLicense describes the License data model used in ClusterResourceBodyDataModelONTAP.

type ClusterLicensingLicenseDataSourceModelONTAP

type ClusterLicensingLicenseDataSourceModelONTAP struct {
	Name     string          `mapstructure:"name"`
	Licenses []LicensesModel `mapstructure:"licenses,omitempty"`
	State    string          `mapstructure:"state"`
	Scope    string          `mapstructure:"scope"`
}

ClusterLicensingLicenseDataSourceModelONTAP describes the data source data model.

func GetClusterLicensingLicenseByName

func GetClusterLicensingLicenseByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string) (*ClusterLicensingLicenseDataSourceModelONTAP, error)

GetClusterLicensingLicenseByName to get license by name

func GetListClusterLicensingLicenses

GetListClusterLicensingLicenses to get aggregate info for all resources matching a filter

type ClusterLicensingLicenseFilterModel

type ClusterLicensingLicenseFilterModel struct {
	Name string `mapstructure:"name"`
}

ClusterLicensingLicenseFilterModel describes filter model

type ClusterLicensingLicenseKeyDataModelONTAP

type ClusterLicensingLicenseKeyDataModelONTAP struct {
	Name     string                                          `mapstructure:"name"`
	Scope    string                                          `mapstructure:"scope"`
	State    string                                          `mapstructure:"state"`
	Licenses []ClusterLicensingLicenseLicensesDataModelONTAP `mapstructure:"licenses"`
}

ClusterLicensingLicenseKeyDataModelONTAP a single record from cluster/licensing/licenses

func CreateClusterLicensingLicense

CreateClusterLicensingLicense to create /cluster/licensing/licenses

func GetClusterLicensingLicenses

func GetClusterLicensingLicenses(errorHandler *utils.ErrorHandler, r restclient.RestClient) ([]ClusterLicensingLicenseKeyDataModelONTAP, error)

GetClusterLicensingLicenses to get /cluster/licensing/licenses info

type ClusterLicensingLicenseLicensesDataModelONTAP

type ClusterLicensingLicenseLicensesDataModelONTAP struct {
	SerialNumber string `mapstructure:"serial_number"`
}

ClusterLicensingLicenseLicensesDataModelONTAP a single serial number

type ClusterLicensingLicenseResourceBodyDataModelONTAP

type ClusterLicensingLicenseResourceBodyDataModelONTAP struct {
	Keys []string `mapstructure:"keys"`
}

ClusterLicensingLicenseResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type ClusterMgmtInterface added in v1.1.0

type ClusterMgmtInterface struct {
	IP ClusterMgmtInterfaceIP `mapstructure:"ip"`
}

ClusterMgmtInterface describes the Management Interface data model used in ClusterResourceBodyDataModelONTAP.

type ClusterMgmtInterfaceIP added in v1.1.0

type ClusterMgmtInterfaceIP struct {
	Address string `mapstructure:"address,omitempty"`
	Gateway string `mapstructure:"gateway,omitempty"`
	Netmask string `mapstructure:"netmask,omitempty"`
}

ClusterMgmtInterfaceIP describes the IP data model used in ClusterMgmtInterface.

type ClusterNodeGetDataModelONTAP

type ClusterNodeGetDataModelONTAP struct {
	Name                 string
	ManagementInterfaces []noddMgmtInterface `mapstructure:"management_interfaces"`
}

ClusterNodeGetDataModelONTAP describes the GET record data model using go types for mapping.

func GetClusterNodes

func GetClusterNodes(errorHandler *utils.ErrorHandler, r restclient.RestClient) ([]ClusterNodeGetDataModelONTAP, error)

GetClusterNodes to get cluster nodes info

type ClusterPeerDataSourceFilterModel added in v1.1.0

type ClusterPeerDataSourceFilterModel struct {
	Name string `mapstructure:"name"`
}

ClusterPeerDataSourceFilterModel describes the data source data model for queries.

type ClusterPeerEncryption added in v1.1.0

type ClusterPeerEncryption struct {
	Proposed string `mapstructure:"proposed"`
	State    string `mapstructure:"state"`
}

ClusterPeerEncryption describes the GET record data model using go types for mapping.

type ClusterPeerGetDataModelONTAP added in v1.1.0

type ClusterPeerGetDataModelONTAP struct {
	Name             string                `mapstructure:"name"`
	UUID             string                `mapstructure:"uuid"`
	Remote           Remote                `mapstructure:"remote"`
	Status           Status                `mapstructure:"status"`
	Authentication   Authentication        `mapstructure:"authentication"`
	PeerApplications []string              `mapstructure:"peer_applications"`
	Encryption       ClusterPeerEncryption `mapstructure:"encryption"`
	IPAddress        string                `mapstructure:"ip_address"`
	Ipspace          ClusterPeerIpspace    `mapstructure:"ipspace"`
}

ClusterPeerGetDataModelONTAP describes the GET record data model using go types for mapping.

func GetClusterPeer added in v1.1.0

func GetClusterPeer(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) (*ClusterPeerGetDataModelONTAP, error)

GetClusterPeer to get ClusterPeer info by uuid

func GetClusterPeerByName added in v1.1.0

func GetClusterPeerByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string) (*ClusterPeerGetDataModelONTAP, error)

GetClusterPeerByName gets a cluster peer by name.

func GetClusterPeers added in v1.1.0

GetClusterPeers gets all cluster peers.

type ClusterPeerIpspace added in v1.1.0

type ClusterPeerIpspace struct {
	Name string `mapstructure:"name"`
}

ClusterPeerIpspace describes the GET record data model using go types for mapping.

type ClusterPeerResourceBodyDataModelONTAP added in v1.1.0

type ClusterPeerResourceBodyDataModelONTAP struct {
	Name string `mapstructure:"name"`
	SVM  svm    `mapstructure:"svm"`
}

ClusterPeerResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type ClusterPeersGetDataModelONTAP added in v1.1.0

type ClusterPeersGetDataModelONTAP struct {
	Name           string                       `mapstructure:"name"`
	UUID           string                       `mapstructure:"uuid"`
	Authentication AuthenticationCreateResponse `mapstructure:"authentication"`
}

ClusterPeersGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateClusterPeers added in v1.1.0

CreateClusterPeers to create cluster_peers

type ClusterPeersResourceBodyDataModelONTAP added in v1.1.0

type ClusterPeersResourceBodyDataModelONTAP struct {
	Name             string         `mapstructure:"name,omitempty"`
	Remote           RemoteBody     `mapstructure:"remote"`
	PeerApplications []string       `mapstructure:"peer_applications,omitempty"`
	Authentication   Authentication `mapstructure:"authentication"`
}

ClusterPeersResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type ClusterResourceBodyDataModelONTAP added in v1.1.0

type ClusterResourceBodyDataModelONTAP struct {
	Name                string               `mapstructure:"name,omitempty"`
	License             ClusterLicense       `mapstructure:"license,omitempty"`
	Contact             string               `mapstructure:"contact,omitempty"`
	Location            string               `mapstructure:"location,omitempty"`
	DNSDomains          []string             `mapstructure:"dns_domains,omitempty"`
	NameServers         []string             `mapstructure:"name_servers,omitempty,omitempty"`
	NtpServers          []string             `mapstructure:"ntp_servers,omitempty"`
	TimeZone            timeZone             `mapstructure:"timezone,omitempty"`
	ClusterCertificate  ClusterCertificate   `mapstructure:"certificate,omitempty"`
	ManagementInterface ClusterMgmtInterface `mapstructure:"management_interface,omitempty"`
	Password            string               `mapstructure:"password,omitempty"`
}

ClusterResourceBodyDataModelONTAP describes the POST/PATCH record data model using go types for mapping.

type ClusterScheduleFilterModel

type ClusterScheduleFilterModel struct {
	Type string `mapstructure:"type"`
}

ClusterScheduleFilterModel describes filter model.

type ClusterScheduleGetDataModelONTAP

type ClusterScheduleGetDataModelONTAP struct {
	Name     string       `mapstructure:"name"`
	UUID     string       `mapstructure:"uuid"`
	Type     string       `mapstructure:"type"`
	Scope    string       `mapstructure:"scope"`
	Cron     CronSchedule `mapstructure:"cron,omitempty"`
	Interval string       `mapstructure:"interval,omitempty"`
}

ClusterScheduleGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateClusterSchedule

CreateClusterSchedule to create job schedule

func GetClusterSchedule

func GetClusterSchedule(errorHandler *utils.ErrorHandler, r restclient.RestClient, id string) (*ClusterScheduleGetDataModelONTAP, error)

GetClusterSchedule to get a single schedule info by uuid

func GetClusterScheduleByName added in v1.1.0

func GetClusterScheduleByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string) (*ClusterScheduleGetDataModelONTAP, error)

GetClusterScheduleByName to get a single schedule info

func GetListClusterSchedules

func GetListClusterSchedules(errorHandler *utils.ErrorHandler, r restclient.RestClient, filter *ClusterScheduleFilterModel) ([]ClusterScheduleGetDataModelONTAP, error)

GetListClusterSchedules to get cluster_schedule info for all resources matching a filter

type ClusterScheduleResourceBodyDataModelONTAP

type ClusterScheduleResourceBodyDataModelONTAP struct {
	// 'name' is not allowed in the API body for the update. Set omitempty to keep the flexibility.
	Name     string       `mapstructure:"name,omitempty"`
	Cron     CronSchedule `mapstructure:"cron,omitempty"`
	Interval string       `mapstructure:"interval,omitempty"`
}

ClusterScheduleResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type Compliance

type Compliance struct {
	State string `mapstructure:"state,omitempty"`
}

Compliance describes data source model.

type CopyType

type CopyType struct {
	Schedule        Schedule `mapstructure:"schedule"`
	Count           int64    `mapstructure:"count"`
	Prefix          string   `mapstructure:"prefix,omitempty"`
	RetentionPeriod string   `mapstructure:"retention_period,omitempty"`
	SnapmirrorLabel string   `mapstructure:"snapmirror_label,omitempty"`
}

CopyType describes the copy resouce data model

type CreateDestination

type CreateDestination struct {
	Enabled bool `mapstructure:"enabled"`
}

CreateDestination defines CreateDestination data model.

type CreationScheduleModel

type CreationScheduleModel struct {
	Name string `mapstructure:"name"`
}

CreationScheduleModel defines the resource creationschedule model

type CronSchedule

type CronSchedule struct {
	Hours    []int64 `mapstructure:"hours,omitempty"`
	Days     []int64 `mapstructure:"days,omitempty"`
	Minutes  []int64 `mapstructure:"minutes,omitempty"`
	Weekdays []int64 `mapstructure:"weekdays,omitempty"`
	Months   []int64 `mapstructure:"months,omitempty"`
}

CronSchedule is the body data model for cron schedule fields

type Destination

type Destination struct {
	Path string            `mapstructure:"path"`
	Svm  SvmDataModelONTAP `mapstructure:"svm"`
}

Destination data model

type DestinationDataSourceModel

type DestinationDataSourceModel struct {
	Address string `mapstructure:"address,omitempty"`
	Netmask string `mapstructure:"netmask,omitempty"`
}

DestinationDataSourceModel describes the GET record data model using go types for mapping.

type Efficiency

type Efficiency struct {
	Policy      Policy `mapstructure:"policy,omitempty"`
	Compression string `mapstructure:"compression,omitempty"`
}

Efficiency describes the resource data model.

type Encryption

type Encryption struct {
	Enabled bool `mapstructure:"enabled,omitempty"`
}

Encryption describes the resource data model.

type EndPoint

type EndPoint struct {
	Cluster Cluster `mapstructure:"cluster,omitempty"`
	Path    string  `mapstructure:"path"`
}

EndPoint defines source/destination endpoint data model.

type ExportPolicy

type ExportPolicy struct {
	Name string `mapstructure:"name,omitempty"`
}

ExportPolicy describes the resource data model.

type ExportPolicyGetDataFilterModel

type ExportPolicyGetDataFilterModel struct {
	Name    string `mapstructure:"name"`
	SVMName string `mapstructure:"svm.name"`
}

ExportPolicyGetDataFilterModel describes filter model

type ExportPolicyGetDataModelONTAP

type ExportPolicyGetDataModelONTAP struct {
	Name string `mapstructure:"name"`
	Svm  string `mapstructure:"svm_name"`
	ID   int    `mapstructure:"id"`
}

ExportPolicyGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateExportPolicy

CreateExportPolicy to create export policy

func GetExportPolicy

func GetExportPolicy(errorHandler *utils.ErrorHandler, r restclient.RestClient, id string) (*ExportPolicyGetDataModelONTAP, error)

GetExportPolicy to get export policy

func GetNfsExportPolicyByName

func GetNfsExportPolicyByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, filter interface{}) (*ExportPolicyGetDataModelONTAP, error)

GetNfsExportPolicyByName to get export policy by filter

type ExportPolicyRuleDataSourceFilterModel

type ExportPolicyRuleDataSourceFilterModel struct {
	SVMName string `tfsdk:"svm_name"`
}

ExportPolicyRuleDataSourceFilterModel describes filter model.

type ExportPolicyRuleGetDataModelONTAP

type ExportPolicyRuleGetDataModelONTAP struct {
	Svm                 SvmDataModelONTAP             `mapstructure:"svm,omitempty"`
	RoRule              []string                      `mapstructure:"ro_rule"`
	RwRule              []string                      `mapstructure:"rw_rule"`
	Protocols           []string                      `mapstructure:"protocols"`
	AnonymousUser       string                        `mapstructure:"anonymous_user"`
	Superuser           []string                      `mapstructure:"superuser"`
	AllowDeviceCreation bool                          `mapstructure:"allow_device_creation"`
	NtfsUnixSecurity    string                        `mapstructure:"ntfs_unix_security"`
	ChownMode           string                        `mapstructure:"chown_mode"`
	AllowSuid           bool                          `mapstructure:"allow_suid"`
	ClientsMatch        []ClientMatch                 `mapstructure:"clients"`
	Index               int64                         `mapstructure:"index"`
	ExportPolicy        ExportPolicyGetDataModelONTAP `mapstructure:"policy,omitempty"`
}

ExportPolicyRuleGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateExportPolicyRule

CreateExportPolicyRule to create export policy rule

func GetExportPolicyRule

func GetExportPolicyRule(errorHandler *utils.ErrorHandler, r restclient.RestClient, exportPolicyID string, index int64) (*ExportPolicyRuleGetDataModelONTAP, error)

GetExportPolicyRule to get export policy rule

func GetExportPolicyRuleSingle

func GetExportPolicyRuleSingle(errorHandler *utils.ErrorHandler, r restclient.RestClient, exportPolicyID string, index int64, version versionModelONTAP) (*ExportPolicyRuleGetDataModelONTAP, error)

GetExportPolicyRuleSingle to get export policy rule.

func GetListExportPolicyRules

func GetListExportPolicyRules(errorHandler *utils.ErrorHandler, r restclient.RestClient, exportPolicyID string, filter *ExportPolicyRuleDataSourceFilterModel, version versionModelONTAP) ([]ExportPolicyRuleGetDataModelONTAP, error)

GetListExportPolicyRules to get protocols_nfs_export_policy_rules info

func UpdateExportPolicyRule

func UpdateExportPolicyRule(errorHandler *utils.ErrorHandler, r restclient.RestClient, data ExportpolicyRuleResourceBodyDataModelONTAP, exportPolicyID string, index int64) (*ExportPolicyRuleGetDataModelONTAP, error)

UpdateExportPolicyRule to update export policy rule

type ExportpolicyResourceModel

type ExportpolicyResourceModel struct {
	Name string            `mapstructure:"name"`
	Svm  SvmDataModelONTAP `mapstructure:"svm"`
	ID   int               `mapstructure:"id"`
}

ExportpolicyResourceModel describes the resource data model.

func GetExportPoliciesList

func GetExportPoliciesList(errorHandler *utils.ErrorHandler, r restclient.RestClient, filter *ExportPolicyGetDataFilterModel) ([]ExportpolicyResourceModel, error)

GetExportPoliciesList to get export policies

type ExportpolicyRuleResourceBodyDataModelONTAP

type ExportpolicyRuleResourceBodyDataModelONTAP struct {
	// SVM                 svm                 `mapstructure:"svm"`
	ClientsMatch        []map[string]string `mapstructure:"clients,omitempty"`
	RoRule              []string            `mapstructure:"ro_rule"`
	RwRule              []string            `mapstructure:"rw_rule"`
	Protocols           []string            `mapstructure:"protocols,omitempty"`
	AnonymousUser       string              `mapstructure:"anonymous_user,omitempty"`
	Superuser           []string            `mapstructure:"superuser,omitempty"`
	AllowDeviceCreation bool                `mapstructure:"allow_device_creation,omitempty"`
	NtfsUnixSecurity    string              `mapstructure:"ntfs_unix_security,omitempty"`
	ChownMode           string              `mapstructure:"chown_mode,omitempty"`
	AllowSuid           bool                `mapstructure:"allow_suid,omitempty"`
	Index               int64               `mapstructure:"index,omitempty"`
}

ExportpolicyRuleResourceBodyDataModelONTAP describes the resource data model.

type ExportpolicyRuleResourceModel

type ExportpolicyRuleResourceModel struct {
	Svm                 SvmDataModelONTAP             `mapstructure:"svm,omitempty"`
	ClientsMatch        []map[string]string           `mapstructure:"clients,omitempty"`
	RoRule              []string                      `mapstructure:"ro_rule,omitempty"`
	RwRule              []string                      `mapstructure:"rw_rule,omitempty"`
	Protocols           []string                      `mapstructure:"protocols,omitempty"`
	AnonymousUser       string                        `mapstructure:"anonymous_user,omitempty"`
	Superuser           []string                      `mapstructure:"superuser,omitempty"`
	AllowDeviceCreation bool                          `mapstructure:"allow_device_creation,omitempty"`
	NtfsUnixSecurity    string                        `mapstructure:"ntfs_unix_security,omitempty"`
	ChownMode           string                        `mapstructure:"chown_mode,omitempty"`
	AllowSuid           bool                          `mapstructure:"allow_suid,omitempty"`
	Index               int64                         `mapstructure:"index"`
	ExportPolicy        ExportPolicyGetDataModelONTAP `mapstructure:"policy,omitempty"`
}

ExportpolicyRuleResourceModel describes the resource data model.

type GoPrefixDataSourceFilterModel added in v1.1.0

type GoPrefixDataSourceFilterModel struct {
	Name    string `mapstructure:"name"`
	SVMName string `mapstructure:"svm.name"`
}

GoPrefixDataSourceFilterModel describes the data source data model for queries.

type GoPrefixGetDataModelONTAP

type GoPrefixGetDataModelONTAP struct {
	Name string `mapstructure:"name"`
	UUID string `mapstructure:"uuid"`
}

GoPrefixGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateGoPrefix

CreateGoPrefix to create tag_prefix

func GetGoAllPrefix

GetGoAllPrefix to get tag_prefix info for all resources matching a filter

func GetGoPrefixByName added in v1.1.0

func GetGoPrefixByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, svmName string) (*GoPrefixGetDataModelONTAP, error)

GetGoPrefixByName to get tag_prefix info

type GoPrefixResourceBodyDataModelONTAP

type GoPrefixResourceBodyDataModelONTAP struct {
	Name string `mapstructure:"name"`
	SVM  svm    `mapstructure:"svm"`
}

GoPrefixResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type Guarantee

type Guarantee struct {
	Type string `mapstructure:"type,omitempty"`
}

Guarantee describes the resource data model.

type IGroup added in v1.1.0

type IGroup struct {
	Name string `mapstructure:"name,omitempty"`
	UUID string `mapstructure:"uuid,omitempty"`
}

IGroup describes the resource data model.

type IPInterfaceDataSourceFilterModel

type IPInterfaceDataSourceFilterModel struct {
	Name    string `tfsdk:"name"`
	SVMName string `tfsdk:"svm_name"`
	Scope   string `tfsdk:"scope"`
}

IPInterfaceDataSourceFilterModel describes filter model.

type IPInterfaceGetDataModelONTAP

type IPInterfaceGetDataModelONTAP struct {
	Name     string                      `mapstructure:"name"`
	Scope    string                      `mapstructure:"scope"`
	SVM      IPInterfaceSvmName          `mapstructure:"svm"`
	UUID     string                      `mapstructure:"uuid"`
	IP       IPInterfaceGetIP            `mapstructure:"ip"`
	Location IPInterfaceResourceLocation `mapstructure:"location"`
}

IPInterfaceGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateIPInterface

CreateIPInterface to create ip_interface

func GetIPInterface

func GetIPInterface(errorHandler *utils.ErrorHandler, r restclient.RestClient, id string) (*IPInterfaceGetDataModelONTAP, error)

GetIPInterface to get ip_interface info

func GetIPInterfaceByName added in v1.1.0

func GetIPInterfaceByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, svmName string) (*IPInterfaceGetDataModelONTAP, error)

GetIPInterfaceByName to get ip_interface info

func GetListIPInterfaces

GetListIPInterfaces to get ip_interface info for all resources matching a filter

type IPInterfaceGetIP

type IPInterfaceGetIP struct {
	Address string `mapstructure:"address"`
	Netmask string `mapstructure:"netmask"`
}

IPInterfaceGetIP describes the GET record data for IP.

type IPInterfaceResourceBodyDataModelONTAP

type IPInterfaceResourceBodyDataModelONTAP struct {
	Name     string                      `mapstructure:"name"`
	SVM      IPInterfaceSvmName          `mapstructure:"svm,omitempty"` // API errors if body contains svm name when updating. can not use universal 'svm struct'
	IP       IPInterfaceResourceIP       `mapstructure:"ip"`
	Location IPInterfaceResourceLocation `mapstructure:"location"`
}

IPInterfaceResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type IPInterfaceResourceHomeNode

type IPInterfaceResourceHomeNode struct {
	Name string `mapstructure:"name"`
}

IPInterfaceResourceHomeNode is the body data model for home_node field

type IPInterfaceResourceHomePort

type IPInterfaceResourceHomePort struct {
	Name string                      `mapstructure:"name"`
	Node IPInterfaceResourceHomeNode `mapstructure:"node"`
}

IPInterfaceResourceHomePort is the body data model for home_port field

type IPInterfaceResourceIP

type IPInterfaceResourceIP struct {
	Address string `mapstructure:"address"`
	Netmask int64  `mapstructure:"netmask"`
}

IPInterfaceResourceIP is the body data model for IP field

type IPInterfaceResourceLocation

type IPInterfaceResourceLocation struct {
	HomeNode IPInterfaceResourceHomeNode `mapstructure:"home_node,omitempty"`
	HomePort IPInterfaceResourceHomePort `mapstructure:"home_port,omitempty"`
}

IPInterfaceResourceLocation is the body data model for location field

type IPInterfaceSvmName

type IPInterfaceSvmName struct {
	Name string `mapstructure:"name,omitempty"`
}

IPInterfaceSvmName describes the svm name specifcally for network ip interface.

type IPRouteDataSourceFilterModel

type IPRouteDataSourceFilterModel struct {
	SVMName     string                     `tfsdk:"svm_name"`
	Destination DestinationDataSourceModel `tfsdk:"destination"`
	Gateway     string                     `tfsdk:"gateway"`
}

IPRouteDataSourceFilterModel describes the data source data model for queries.

type IPRouteGetDataModelONTAP

type IPRouteGetDataModelONTAP struct {
	Destination DestinationDataSourceModel `mapstructure:"destination,omitempty"`
	UUID        string                     `mapstructure:"uuid"`
	Gateway     string                     `mapstructure:"gateway"`
	Metric      int64                      `mapstructure:"metric,omitempty"`
	SVMName     svm                        `mapstructure:"svm"`
}

IPRouteGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateIPRoute

CreateIPRoute to create net_route

func GetIPRoute

func GetIPRoute(errorHandler *utils.ErrorHandler, r restclient.RestClient, Destination string, svmName string, Gateway string, version versionModelONTAP) (*IPRouteGetDataModelONTAP, error)

GetIPRoute to get net_route info

func GetIPRouteByGatewayAndSVM added in v1.1.0

func GetIPRouteByGatewayAndSVM(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmName string, Gateway string, version versionModelONTAP) (*IPRouteGetDataModelONTAP, error)

GetIPRouteByGatewayAndSVM to get net_route info

func GetListIPRoutes

func GetListIPRoutes(errorHandler *utils.ErrorHandler, r restclient.RestClient, gateway string, filter *IPRouteDataSourceFilterModel, version versionModelONTAP) ([]IPRouteGetDataModelONTAP, error)

GetListIPRoutes to get net_route info for all resources matching a filter

type IPRouteResourceBodyDataModelONTAP

type IPRouteResourceBodyDataModelONTAP struct {
	Destination DestinationDataSourceModel `mapstructure:"destination,omitempty"`
	SVM         svm                        `mapstructure:"svm"`
	Gateway     string                     `mapstructure:"gateway,omitempty"`
	Metric      int64                      `mapstructure:"metric,omitempty"`
}

IPRouteResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type IgroupInitiator added in v1.1.0

type IgroupInitiator struct {
	Name    string `mapstructure:"name"`
	Comment string `mapstructure:"comment"`
}

IgroupInitiator describes the data model for initiator.

type IgroupLun added in v1.1.0

type IgroupLun struct {
	Name    string `mapstructure:"name"`
	UUID    string `mapstructure:"uuid,omitempty"`
	Comment string `mapstructure:"comment,omitempty"`
}

IgroupLun describes the data model for igroup.

type IgroupLunForLunMap added in v1.1.0

type IgroupLunForLunMap struct {
	Name string `mapstructure:"name"`
	UUID string `mapstructure:"uuid"`
}

IgroupLunForLunMap describes the data model for lun.

type IgroupsLunMap added in v1.1.0

type IgroupsLunMap struct {
	LogicalUnitNumber int                `mapstructure:"logical_unit_number"`
	Lun               IgroupLunForLunMap `mapstructure:"lun"`
}

IgroupsLunMap describes the data model for lun_maps.

type Ipspace

type Ipspace struct {
	Name string `mapstructure:"name,omitempty"`
}

Ipspace describes the resource data model.

type LicensesModel

type LicensesModel struct {
	SerialNumber     string     `mapstructure:"serial_number"`
	Owner            string     `mapstructure:"owner"`
	Compliance       Compliance `mapstructure:"compliance"`
	Active           bool       `mapstructure:"active"`
	Evaluation       bool       `mapstructure:"evaluation"`
	InstalledLicense string     `mapstructure:"installed_license"`
}

LicensesModel describes data source model.

type LogicalSpace

type LogicalSpace struct {
	Enforcement bool `mapstructure:"enforcement,omitempty"`
	Reporting   bool `mapstructure:"reporting,omitempty"`
}

LogicalSpace describes the resource data model.

type Lun added in v1.1.0

type Lun struct {
	Name string `mapstructure:"name,omitempty"`
	UUID string `mapstructure:"uuid,omitempty"`
}

Lun describes the resource data model.

type LunLocation added in v1.1.0

type LunLocation struct {
	LogicalUnit string    `mapstructure:"logical_unit,omitempty"`
	Volume      LunVolume `mapstructure:"volume,omitempty"`
}

LunLocation describes the data model for location.

type LunQoSPolicy added in v1.1.0

type LunQoSPolicy struct {
	Name string `mapstructure:"name,omitempty"`
	UUID string `mapstructure:"uuid,omitempty"`
}

LunQoSPolicy describes the data model for QoS policy.

type LunSpace added in v1.1.0

type LunSpace struct {
	Size int64 `mapstructure:"size,omitempty"`
	Used int64 `mapstructure:"used,omitempty"`
}

LunSpace describes the data model for space.

type LunVolume added in v1.1.0

type LunVolume struct {
	Name string `mapstructure:"name,omitempty"`
	UUID string `mapstructure:"uuid,omitempty"`
}

LunVolume describes the data model for volume.

type Member added in v1.1.0

type Member struct {
	Name string `mapstructure:"name"`
}

Member describes the GET record data model using go types for mapping.

type Membership added in v1.1.0

type Membership struct {
	Name string `mapstructure:"name"`
}

Membership describes the membership data model using go types for mapping.

type NAS

type NAS struct {
	ExportPolicy    ExportPolicy `mapstructure:"export_policy,omitempty"`
	JunctionPath    string       `mapstructure:"path"`
	SecurityStyle   string       `mapstructure:"security_style,omitempty"`
	UnixPermissions int          `mapstructure:"unix_permissions,omitempty"`
	GroupID         int          `mapstructure:"gid"`
	UserID          int          `mapstructure:"uid"`
}

NAS describes the resource data model.

type NameDataModel

type NameDataModel struct {
	Name string
	UUID string
}

NameDataModel is the standard name/uuid pair that required by most resources

func GetUUIDStorageVolumeSnapshotsByName

func GetUUIDStorageVolumeSnapshotsByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, volumeUUID string) (*NameDataModel, error)

GetUUIDStorageVolumeSnapshotsByName get a snapshot UUID based off name

func GetUUIDVolumeByName

func GetUUIDVolumeByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmUUID string, name string) (*NameDataModel, error)

GetUUIDVolumeByName get a volumes UUID by volume name

type NameServicesDNSDataSourceFilterModel

type NameServicesDNSDataSourceFilterModel struct {
	SVMName string `tfsdk:"svm_name"`
	Domains string `tfsdk:"domains"`
	Servers string `tfsdk:"servers"`
}

NameServicesDNSDataSourceFilterModel describes filter model.

type NameServicesDNSGetDataModelONTAP

type NameServicesDNSGetDataModelONTAP struct {
	Domains []string          `mapstructure:"domains"`
	Servers []string          `mapstructure:"servers"`
	SVM     SvmDataModelONTAP `mapstructure:"svm"`
}

NameServicesDNSGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateNameServicesDNS

CreateNameServicesDNS Create a new DNS service

func GetListNameServicesDNSs

GetListNameServicesDNSs to get name_services_dnss info

func GetNameServicesDNS

func GetNameServicesDNS(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmName string) (*NameServicesDNSGetDataModelONTAP, error)

GetNameServicesDNS to get name_services_dns info

type NameServicesLDAPDataSourceFilterModel added in v1.1.0

type NameServicesLDAPDataSourceFilterModel struct {
	SVMName      string `mapstructure:"svm.name"`
	MinBindLevel string `mapstructure:"min_bind_level"`
	BaseScope    string `mapstructure:"base_scope"`
}

NameServicesLDAPDataSourceFilterModel describes the data source data model for queries.

type NameServicesLDAPGetDataModelONTAP added in v1.1.0

type NameServicesLDAPGetDataModelONTAP struct {
	SVM                  SvmDataModelONTAP `mapstructure:"svm"`
	Servers              []string          `mapstructure:"servers"`
	Schema               string            `mapstructure:"schema"`
	AdDomain             string            `mapstructure:"ad_domain,omitempty"`
	BaseDN               string            `mapstructure:"base_dn"`
	BaseScope            string            `mapstructure:"base_scope"`
	BindDN               string            `mapstructure:"bind_dn,omitempty"`
	BindAsCIFSServer     bool              `mapstructure:"bind_as_cifs_server"`
	PreferredADServers   []string          `mapstructure:"preferred_ad_servers,omitempty"`
	Port                 int64             `mapstructure:"port"`
	QueryTimeout         int64             `mapstructure:"query_timeout"`
	MinBindLevel         string            `mapstructure:"min_bind_level"`
	UseStartTLS          bool              `mapstructure:"use_start_tls"`
	ReferralEnabled      bool              `mapstructure:"referral_enabled"`
	SessionSecurity      string            `mapstructure:"session_security"`
	LDAPSEnabled         bool              `mapstructure:"ldaps_enabled"`
	BindPassword         string            `mapstructure:"bind_password,omitempty"`
	SkipConfigValidation bool              `mapstructure:"skip_config_validation,omitempty"`
}

NameServicesLDAPGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateNameServicesLDAP added in v1.1.0

CreateNameServicesLDAP to create name_services_ldap

func GetNameServicesLDAPBySVMID added in v1.1.0

func GetNameServicesLDAPBySVMID(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmID string) (*NameServicesLDAPGetDataModelONTAP, error)

GetNameServicesLDAPBySVMID to get name_services_ldap info

func GetNameServicesLDAPBySVMName added in v1.1.0

func GetNameServicesLDAPBySVMName(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmName string) (*NameServicesLDAPGetDataModelONTAP, error)

GetNameServicesLDAPBySVMName to get name_services_ldap info

func GetNameServicesLDAPs added in v1.1.0

GetNameServicesLDAPs to get name_services_ldap info for all resources matching a filter

type NameServicesLDAPResourceBodyDataModelONTAP added in v1.1.0

type NameServicesLDAPResourceBodyDataModelONTAP struct {
	SVM                  svm      `mapstructure:"svm"`
	Servers              []string `mapstructure:"servers,omitempty"`
	Schema               string   `mapstructure:"schema,omitempty"`
	AdDomain             string   `mapstructure:"ad_domain,omitempty"`
	BaseDN               string   `mapstructure:"base_dn,omitempty"`
	BaseScope            string   `mapstructure:"base_scope,omitempty"`
	BindDN               string   `mapstructure:"bind_dn,omitempty"`
	BindAsCIFSServer     bool     `mapstructure:"bind_as_cifs_server,omitempty"`
	BindPassword         string   `mapstructure:"bind_password,omitempty"`
	PreferredADServers   []string `mapstructure:"preferred_ad_servers,omitempty"`
	Port                 int64    `mapstructure:"port,omitempty"`
	QueryTimeout         int64    `mapstructure:"query_timeout,omitempty"`
	MinBindLevel         string   `mapstructure:"min_bind_level,omitempty"`
	UseStartTLS          bool     `mapstructure:"use_start_tls,omitempty"`
	ReferralEnabled      bool     `mapstructure:"referral_enabled,omitempty"`
	SessionSecurity      string   `mapstructure:"session_security,omitempty"`
	LDAPSEnabled         bool     `mapstructure:"ldaps_enabled,omitempty"`
	SkipConfigValidation bool     `mapstructure:"skip_config_validation,omitempty"`
}

NameServicesLDAPResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type NetbiosDataModel added in v1.1.0

type NetbiosDataModel struct {
	Enabled     bool     `mapstructure:"enabled"`
	Aliases     []string `mapstructure:"aliases,omitempty"`
	WinsServers []string `mapstructure:"wins_servers,omitempty"`
}

NetbiosDataModel describes the netbios data model using go types for mapping.

type NfsServicesFilterModel

type NfsServicesFilterModel struct {
	SVMName string `mapstructure:"svm.name"`
}

NfsServicesFilterModel describes filter model

type Peer added in v1.1.0

type Peer struct {
	Cluster Cluster `mapstructure:"cluster"`
	SVM     SVM     `mapstructure:"svm"`
}

Peer describes the body data model using go types for mapping.

type PeerData added in v1.1.0

type PeerData struct {
	Cluster *Cluster `mapstructure:"cluster"`
	SVM     *SVM     `mapstructure:"svm"`
}

PeerData describes the body data model using go types for mapping.

type Policy

type Policy struct {
	Name string `mapstructure:"name,omitempty"`
}

Policy describes the resource data model.

type Portset added in v1.1.0

type Portset struct {
	Name string `mapstructure:"name,omitempty"`
	UUID string `mapstructure:"uuid,omitempty"`
}

Portset describes the data model for portset.

type Protocol

type Protocol struct {
	V3Enabled   bool        `mapstructure:"v3_enabled"`
	V4IdDomain  string      `mapstructure:"v4_id_domain"`
	V40Enabled  bool        `mapstructure:"v40_enabled"`
	V40Features V40Features `mapstructure:"v40_features"`
	V41Enabled  bool        `mapstructure:"v41_enabled"`
	V41Features V41Features `mapstructure:"v41_features"`
}

Protocol describes the GET record data model using go types for mapping.

type ProtocolsCIFSShareACLDataSourceFilterModel added in v1.1.3

type ProtocolsCIFSShareACLDataSourceFilterModel struct {
	Name        string `mapstructure:"name"`
	SVMName     string `mapstructure:"svm.name"`
	UserOrGroup string `mapstructure:"user_or_group"`
}

ProtocolsCIFSShareACLDataSourceFilterModel describes the data source data model for queries.

type ProtocolsCIFSShareACLGetDataModelONTAP added in v1.1.3

type ProtocolsCIFSShareACLGetDataModelONTAP struct {
	Name        string `mapstructure:"name"`
	UUID        string `mapstructure:"uuid"`
	UserOrGroup string `mapstructure:"user_or_group"`
}

ProtocolsCIFSShareACLGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateProtocolsCIFSShareACL added in v1.1.3

CreateProtocolsCIFSShareACL to create protocols_cifs_share_acl

func GetProtocolsCIFSShareACLByName added in v1.1.3

func GetProtocolsCIFSShareACLByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, svmName string) (*ProtocolsCIFSShareACLGetDataModelONTAP, error)

GetProtocolsCIFSShareACLByName to get protocols_cifs_share_acl info

func GetProtocolsCIFSShareAcls added in v1.1.3

func GetProtocolsCIFSShareAcls(errorHandler *utils.ErrorHandler, r restclient.RestClient, filter *ProtocolsCIFSShareACLDataSourceFilterModel, svmName string, shareName string) ([]ProtocolsCIFSShareACLGetDataModelONTAP, error)

GetProtocolsCIFSShareAcls to get protocols_cifs_share_acl info for all resources matching a filter

type ProtocolsCIFSShareACLResourceBodyDataModelONTAP added in v1.1.3

type ProtocolsCIFSShareACLResourceBodyDataModelONTAP struct {
	// Name       string `mapstructure:"name"`
	// SVM        svm    `mapstructure:"svm"`
	Permission  string `mapstructure:"permission"`
	UserOrGroup string `mapstructure:"user_or_group"`
	Type        string `mapstructure:"type"`
}

ProtocolsCIFSShareACLResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type ProtocolsCIFSShareDataSourceFilterModel added in v1.1.0

type ProtocolsCIFSShareDataSourceFilterModel struct {
	Name    string `mapstructure:"name"`
	SVMName string `mapstructure:"svm.name"`
}

ProtocolsCIFSShareDataSourceFilterModel describes the data source data model for queries.

type ProtocolsCIFSShareGetDataModelONTAP added in v1.1.0

type ProtocolsCIFSShareGetDataModelONTAP struct {
	Name string `mapstructure:"name"`
	UUID string `mapstructure:"uuid"`

	Acls                  []AclsGet `mapstructure:"acls"`
	ChangeNotify          bool      `mapstructure:"change_notify"`
	Comment               string    `mapstructure:"comment"`
	ContinuouslyAvailable bool      `mapstructure:"continuously_available"`
	DirUmask              int64     `mapstructure:"dir_umask"`
	Encryption            bool      `mapstructure:"encryption"`
	FileUmask             int64     `mapstructure:"file_umask"`
	ForceGroupForCreate   string    `mapstructure:"force_group_for_create"`
	HomeDirectory         bool      `mapstructure:"home_directory"`
	NamespaceCaching      bool      `mapstructure:"namespace_caching"`
	NoStrictSecurity      bool      `mapstructure:"no_strict_security"`
	OfflineFiles          string    `mapstructure:"offline_files"`
	Oplocks               bool      `mapstructure:"oplocks"`
	Path                  string    `mapstructure:"path"`
	ShowSnapshot          bool      `mapstructure:"show_snapshot"`
	UnixSymlink           string    `mapstructure:"unix_symlink"`
	VscanProfile          string    `mapstructure:"vscan_profile"`
}

ProtocolsCIFSShareGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateProtocolsCIFSShare added in v1.1.0

CreateProtocolsCIFSShare to create protocols_cifs_share

func GetProtocolsCIFSShareByName added in v1.1.0

func GetProtocolsCIFSShareByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, svmName string) (*ProtocolsCIFSShareGetDataModelONTAP, error)

GetProtocolsCIFSShareByName to get protocols_cifs_share info

func GetProtocolsCIFSShares added in v1.1.0

GetProtocolsCIFSShares to get protocols_cifs_share info for all resources matching a filter

type ProtocolsCIFSShareResourceBodyDataModelONTAP added in v1.1.0

type ProtocolsCIFSShareResourceBodyDataModelONTAP struct {
	Name                  string `mapstructure:"name,omitempty"` // can't be present in update, so omit empty.
	SVM                   svm    `mapstructure:"svm"`
	Acls                  []Acls `mapstructure:"acls,omitempty"` // API complains if this is not omit empty
	ChangeNotify          bool   `mapstructure:"change_notify,omitempty"`
	Comment               string `mapstructure:"comment,omitempty"` // API complains if this is not omit empty
	ContinuouslyAvailable bool   `mapstructure:"continuously_available,omitempty"`
	DirUmask              int64  `mapstructure:"dir_umask,omitempty"`
	Encryption            bool   `mapstructure:"encryption,omitempty"`
	FileUmask             int64  `mapstructure:"file_umask,omitempty"`
	ForceGroupForCreate   string `mapstructure:"force_group_for_create,omitempty"`
	HomeDirectory         bool   `mapstructure:"home_directory,omitempty"` // can't be present in update, so omit empty.
	NamespaceCaching      bool   `mapstructure:"namespace_caching,omitempty"`
	NoStrictSecurity      bool   `mapstructure:"no_strict_security,omitempty"`
	OfflineFiles          string `mapstructure:"offline_files,omitempty"` // API complains if this is not omit empty
	Oplocks               bool   `mapstructure:"oplocks,omitempty"`
	Path                  string `mapstructure:"path,omitempty"` // can't be present in update, so omit empty.
	ShowSnapshot          bool   `mapstructure:"show_snapshot,omitempty"`
	UnixSymlink           string `mapstructure:"unix_symlink,omitempty"`  // API complains if this is not omit empty
	VscanProfile          string `mapstructure:"vscan_profile,omitempty"` // API complains if this is not omit empty
}

ProtocolsCIFSShareResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type ProtocolsNfsServiceGetDataModelONTAP

type ProtocolsNfsServiceGetDataModelONTAP struct {
	Enabled          bool              `mapstructure:"enabled"`
	Protocol         Protocol          `mapstructure:"protocol"`
	Root             Root              `mapstructure:"root"`
	Security         Security          `mapstructure:"security"`
	ShowmountEnabled bool              `mapstructure:"showmount_enabled"`
	Transport        Transport         `mapstructure:"transport"`
	VstorageEnabled  bool              `mapstructure:"vstorage_enabled"`
	Windows          Windows           `mapstructure:"windows"`
	SVM              SvmDataModelONTAP `mapstructure:"svm"`
}

ProtocolsNfsServiceGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateProtocolsNfsService

CreateProtocolsNfsService Create a NFS Service

func GetProtocolsNfsService

func GetProtocolsNfsService(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmName string, version versionModelONTAP) (*ProtocolsNfsServiceGetDataModelONTAP, error)

GetProtocolsNfsService to get protcols_nfs_service info

func GetProtocolsNfsServices

func GetProtocolsNfsServices(errorHandler *utils.ErrorHandler, r restclient.RestClient, filter *NfsServicesFilterModel, version versionModelONTAP) ([]ProtocolsNfsServiceGetDataModelONTAP, error)

GetProtocolsNfsServices to get protocols_nfs_services info

type ProtocolsSanIgroupDataSourceFilterModel added in v1.1.0

type ProtocolsSanIgroupDataSourceFilterModel struct {
	Name    string `mapstructure:"name"`
	SVMName string `mapstructure:"svm.name"`
}

ProtocolsSanIgroupDataSourceFilterModel describes the data source data model for queries.

type ProtocolsSanIgroupGetDataModelONTAP added in v1.1.0

type ProtocolsSanIgroupGetDataModelONTAP struct {
	Name       string            `mapstructure:"name"`
	UUID       string            `mapstructure:"uuid"`
	SVM        SvmDataModelONTAP `mapstructure:"svm"`
	LunMaps    []IgroupsLunMap   `mapstructure:"lun_maps"`
	OsType     string            `mapstructure:"os_type"`
	Protocol   string            `mapstructure:"protocol"`
	Comment    string            `mapstructure:"comment"`
	Igroups    []IgroupLun       `mapstructure:"igroups"`
	Initiators []IgroupInitiator `mapstructure:"initiators"`
	Portset    Portset           `mapstructure:"portset"`
}

ProtocolsSanIgroupGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateProtocolsSanIgroup added in v1.1.0

CreateProtocolsSanIgroup to create protocols_san_igroup

func GetProtocolsSanIgroupByName added in v1.1.0

func GetProtocolsSanIgroupByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, svmName string, version versionModelONTAP) (*ProtocolsSanIgroupGetDataModelONTAP, error)

GetProtocolsSanIgroupByName to get protocols_san_igroup info

func GetProtocolsSanIgroups added in v1.1.0

func GetProtocolsSanIgroups(errorHandler *utils.ErrorHandler, r restclient.RestClient, filter *ProtocolsSanIgroupDataSourceFilterModel, version versionModelONTAP) ([]ProtocolsSanIgroupGetDataModelONTAP, error)

GetProtocolsSanIgroups to get protocols_san_igroup info for all resources matching a filter

type ProtocolsSanIgroupResourceBodyDataModelONTAP added in v1.1.0

type ProtocolsSanIgroupResourceBodyDataModelONTAP struct {
	Name       string                   `mapstructure:"name"`
	SVM        SvmDataModelONTAP        `mapstructure:"svm"`
	OsType     string                   `mapstructure:"os_type"`
	Protocol   string                   `mapstructure:"protocol"`
	Comment    string                   `mapstructure:"comment,omitempty"`
	Igroups    []map[string]interface{} `mapstructure:"igroups,omitempty"`
	Initiators []map[string]interface{} `mapstructure:"initiators,omitempty"`
	Portset    Portset                  `mapstructure:"portset,omitempty"`
}

ProtocolsSanIgroupResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type ProtocolsSanLunMapsDataSourceFilterModel added in v1.1.0

type ProtocolsSanLunMapsDataSourceFilterModel struct {
	Lun    Lun    `mapstructure:"lun"`
	SVM    SVM    `mapstructure:"svm"`
	IGroup IGroup `mapstructure:"igroup"`
}

ProtocolsSanLunMapsDataSourceFilterModel describes the data source data model for queries.

type ProtocolsSanLunMapsGetDataModelONTAP added in v1.1.0

type ProtocolsSanLunMapsGetDataModelONTAP struct {
	SVM               svm    `mapstructure:"svm"`
	LogicalUnitNumber int    `mapstructure:"logical_unit_number"`
	IGroup            IGroup `mapstructure:"igroup"`
	Lun               Lun    `mapstructure:"lun"`
}

ProtocolsSanLunMapsGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateProtocolsSanLunMaps added in v1.1.0

CreateProtocolsSanLunMaps to create protocols_san_lun-maps

func GetProtocolsSanLunMaps added in v1.1.0

GetProtocolsSanLunMaps to get protocols_san_lun-maps info

func GetProtocolsSanLunMapsByName added in v1.1.0

func GetProtocolsSanLunMapsByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, igroupName string, lunName string, svmName string) (*ProtocolsSanLunMapsGetDataModelONTAP, error)

GetProtocolsSanLunMapsByName to get protocols_san_lun-maps info

type ProtocolsSanLunMapsResourceBodyDataModelONTAP added in v1.1.0

type ProtocolsSanLunMapsResourceBodyDataModelONTAP struct {
	SVM               svm    `mapstructure:"svm"`
	IGroup            IGroup `mapstructure:"igroup"`
	Lun               Lun    `mapstructure:"lun"`
	LogicalUnitNumber int    `mapstructure:"logical_unit_number,omitempty"`
}

ProtocolsSanLunMapsResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type QOS

type QOS struct {
	Policy Policy `mapstructure:"policy,omitempty"`
}

QOS describes the resource data model.

type Remote added in v1.1.0

type Remote struct {
	IPAddress []string `mapstructure:"ip_addresses"`
	Name      string   `mapstructure:"name"`
}

Remote describes the GET record data model using go types for mapping.

type RemoteBody added in v1.1.0

type RemoteBody struct {
	IPAddress []string `mapstructure:"ip_addresses"`
}

RemoteBody describes the POST record body model using go types for mapping.

type RetentionGetDataModel

type RetentionGetDataModel struct {
	CreationSchedule CreationScheduleModel `mapstructure:"creation_schedule,omitempty"`
	Count            int64                 `mapstructure:"count"`
	Label            string                `mapstructure:"label"`
	Prefix           string                `mapstructure:"prefix,omitempty"`
}

RetentionGetDataModel defines the resource get retention model

type RetentionGetRawDataModel

type RetentionGetRawDataModel struct {
	CreationSchedule CreationScheduleModel `mapstructure:"creation_schedule,omitempty"`
	Count            string                `mapstructure:"count"`
	Label            string                `mapstructure:"label"`
	Prefix           string                `mapstructure:"prefix,omitempty"`
}

RetentionGetRawDataModel defines the resource get retention model

type Root

type Root struct {
	IgnoreNtACL              bool `mapstructure:"ignore_nt_acl"`
	SkipWritePermissionCheck bool `mapstructure:"skip_write_permission_check"`
}

Root describes the GET record data model using go types for mapping.

type SVM added in v1.1.0

type SVM struct {
	Name string `mapstructure:"name"`
}

SVM describes the resource data model.

type SVMPeerAcceptResourceModel added in v1.1.0

type SVMPeerAcceptResourceModel struct {
	State string `mapstructure:"state"`
}

SVMPeerAcceptResourceModel describes the resource data model.

type SVMPeerDataSourceFilterModel added in v1.1.0

type SVMPeerDataSourceFilterModel struct {
	SVM  SVM  `mapstructure:"svm"`
	Peer Peer `mapstructure:"peer"`
}

SVMPeerDataSourceFilterModel describes the data source data model for queries.

type SVMPeerDataSourceModel added in v1.1.0

type SVMPeerDataSourceModel struct {
	Name         string   `mapstructure:"name,omitempty"`
	UUID         string   `mapstructure:"uuid"`
	Applications []string `mapstructure:"applications"`
	SVM          SVM      `mapstructure:"svm"`
	Peer         Peer     `mapstructure:"peer"`
	State        string   `mapstructure:"state"`
}

SVMPeerDataSourceModel describes the data source model.

func GetSVMPeer added in v1.1.0

func GetSVMPeer(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) (*SVMPeerDataSourceModel, error)

GetSVMPeer to get SVMPeer info by uuid

func GetSVMPeersBySVMNameAndPeerSvmName added in v1.1.0

func GetSVMPeersBySVMNameAndPeerSvmName(errorHandler *utils.ErrorHandler, r restclient.RestClient, svmName string, PeerSvmName string) (*SVMPeerDataSourceModel, error)

GetSVMPeersBySVMNameAndPeerSvmName to get svm_peers info

func GetSvmPeersByName added in v1.1.0

func GetSvmPeersByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, filter *SVMPeerDataSourceFilterModel) ([]SVMPeerDataSourceModel, error)

GetSvmPeersByName to get data source list svm info

type SVMPeerResourceModel added in v1.1.0

type SVMPeerResourceModel struct {
	Name         string   `mapstructure:"name,omitempty"`
	Applications []string `mapstructure:"applications"`
	SVM          SVM      `mapstructure:"svm"`
	Peer         Peer     `mapstructure:"peer"`
}

SVMPeerResourceModel describes the resource data model.

type SVMPeerUpdateResourceModel added in v1.1.0

type SVMPeerUpdateResourceModel struct {
	State        string   `mapstructure:"state,omitempty"`
	Applications []string `mapstructure:"applications,omitempty"`
}

SVMPeerUpdateResourceModel describes the resource data model.

type SVMPeersGetDataModelONTAP added in v1.1.0

type SVMPeersGetDataModelONTAP struct {
	Name  string `mapstructure:"name,omitempty"`
	UUID  string `mapstructure:"uuid"`
	State string `mapstructure:"state"`
}

SVMPeersGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateSVMPeers added in v1.1.0

CreateSVMPeers to create svm_peers

type SVMPeersResourceBodyDataModelONTAP added in v1.1.0

type SVMPeersResourceBodyDataModelONTAP struct {
	Name string `mapstructure:"name,omitempty"`
	SVM  svm    `mapstructure:"svm"`
}

SVMPeersResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type Schedule

type Schedule struct {
	Name string `mapstructure:"name"`
}

Schedule describes the schedule resource data model

type Security

type Security struct {
	ChownMode               string   `mapstructure:"chown_mode"`
	NtACLDisplayPermission  bool     `mapstructure:"nt_acl_display_permission"`
	NtfsUnixSecurity        string   `mapstructure:"ntfs_unix_security"`
	PermittedEncrptionTypes []string `mapstructure:"permitted_encryption_types,omitempty"`
	RpcsecContextIdel       int64    `mapstructure:"rpcsec_context_idle"`
}

Security describes the GET record data model using go types for mapping.

type SecurityAccountApplication added in v1.1.0

type SecurityAccountApplication struct {
	Application                string   `mapstructure:"application,omitempty"`
	SecondAuthenticationMethod string   `mapstructure:"second_authentication_method,omitempty"`
	AuthenticationMethods      []string `mapstructure:"authentication_methods,omitempty"`
}

SecurityAccountApplication describes the application data model using go types for mapping.

type SecurityAccountDataSourceFilterModel added in v1.1.0

type SecurityAccountDataSourceFilterModel struct {
	Name  string                `mapstructure:"name"`
	Owner *SecurityAccountOwner `mapstructure:"owner,omitempty"`
}

SecurityAccountDataSourceFilterModel describes the data source filter data model.

type SecurityAccountGetDataModelONTAP added in v1.1.0

type SecurityAccountGetDataModelONTAP struct {
	Name         string                       `mapstructure:"name"`
	Owner        SecurityAccountOwner         `mapstructure:"owner,omitempty"`
	Locked       bool                         `mapstructure:"locked,omitempty"`
	Comment      string                       `mapstructure:"comment,omitempty"`
	Role         SecurityAccountRole          `mapstructure:"role,omitempty"`
	Scope        string                       `mapstructure:"scope,omitempty"`
	Applications []SecurityAccountApplication `mapstructure:"applications,omitempty"`
}

SecurityAccountGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateSecurityAccount added in v1.1.0

CreateSecurityAccount creates a security account.

func GetSecurityAccountByName added in v1.1.0

func GetSecurityAccountByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, ownerName string) (*SecurityAccountGetDataModelONTAP, error)

GetSecurityAccountByName gets a security account by name.

func GetSecurityAccounts added in v1.1.0

func GetSecurityAccounts(errorHandler *utils.ErrorHandler, r restclient.RestClient, svnName string, name string) ([]SecurityAccountGetDataModelONTAP, error)

GetSecurityAccounts gets all security accounts.

type SecurityAccountOwner added in v1.1.0

type SecurityAccountOwner struct {
	Name string `mapstructure:"name,omitempty"`
	UUID string `mapstructure:"uuid,omitempty"`
}

SecurityAccountOwner describes the owner data model using go types for mapping.

type SecurityAccountResourceBodyDataModelONTAP added in v1.1.0

type SecurityAccountResourceBodyDataModelONTAP struct {
	Name                       string                   `mapstructure:"name"`
	Applications               []map[string]interface{} `mapstructure:"applications,omitempty"`
	Owner                      SecurityAccountOwner     `mapstructure:"owner,omitempty"`
	Role                       SecurityAccountRole      `mapstructure:"role,omitempty"`
	Password                   string                   `mapstructure:"password,omitempty"`
	SecondAuthenticationMethod string                   `mapstructure:"second_authentication_method,omitempty"`
	Comment                    string                   `mapstructure:"comment,omitempty"`
	Locked                     bool                     `mapstructure:"locked,omitempty"`
}

SecurityAccountResourceBodyDataModelONTAP describes the resource data model using go types for mapping.

type SecurityAccountRole added in v1.1.0

type SecurityAccountRole struct {
	Name string `mapstructure:"name,omitempty"`
}

SecurityAccountRole describes the role data model using go types for mapping.

type SecurityDataModel added in v1.1.0

type SecurityDataModel struct {
	RestrictAnonymous        string   `mapstructure:"restrict_anonymous,omitempty"`
	SmbSigning               bool     `mapstructure:"smb_signing"`
	SmbEncryption            bool     `mapstructure:"smb_encryption"`
	KdcEncryption            bool     `mapstructure:"kdc_encryption,omitempty"`
	LmCompatibilityLevel     string   `mapstructure:"lm_compatibility_level,omitempty"`
	AesNetlogonEnabled       bool     `mapstructure:"aes_netlogon_enabled"`
	TryLdapChannelBinding    bool     `mapstructure:"try_ldap_channel_binding,omitempty"`
	LdapReferralEnabled      bool     `mapstructure:"ldap_referral_enabled,omitempty"`
	EncryptDcConnection      bool     `mapstructure:"encrypt_dc_connection,omitempty"`
	UseStartTLS              bool     `mapstructure:"use_start_tls,omitempty"`
	SessionSecurity          string   `mapstructure:"session_security,omitempty"`
	UseLdaps                 bool     `mapstructure:"use_ldaps,omitempty"`
	AdvertisedKdcEncryptions []string `mapstructure:"advertised_kdc_encryptions,omitempty"`
}

SecurityDataModel describes the security data model using go types for mapping.

type Snaplock

type Snaplock struct {
	Type string `mapstructure:"type,omitempty"`
}

Snaplock describes the resource data model.

type SnapmirrorCluster

type SnapmirrorCluster struct {
	Name string `mapstructure:"name"`
	UUID string `mapstructure:"uuid"`
}

SnapmirrorCluster data model

type SnapmirrorDataSourceModel

type SnapmirrorDataSourceModel struct {
	Source      Source           `mapstructure:"source"`
	Destination Destination      `mapstructure:"destination"`
	Healthy     bool             `mapstructure:"healthy"`
	Restore     bool             `mapstructure:"restore"`
	UUID        string           `mapstructure:"uuid"`
	State       string           `mapstructure:"state"`
	Policy      SnapmirrorPolicy `mapstructure:"policy"`
	GroupType   string           `mapstructure:"group_type"`
	Throttle    int              `mapstructure:"throttle"`
}

SnapmirrorDataSourceModel data model

func GetSnapmirrorByDestinationPath

func GetSnapmirrorByDestinationPath(errorHandler *utils.ErrorHandler, r restclient.RestClient, destinationPath string, version *versionModelONTAP) (*SnapmirrorDataSourceModel, error)

GetSnapmirrorByDestinationPath to get snapmirror data source info by Destination Path

func GetSnapmirrors

func GetSnapmirrors(errorHandler *utils.ErrorHandler, r restclient.RestClient, filter *SnapmirrorFilterModel, version versionModelONTAP) ([]SnapmirrorDataSourceModel, error)

GetSnapmirrors to get list of policies

type SnapmirrorFilterModel

type SnapmirrorFilterModel struct {
	DestinationPath string `mapstructure:"destination.path"`
}

SnapmirrorFilterModel Snapmirror filter model

type SnapmirrorGetDataModelONTAP

type SnapmirrorGetDataModelONTAP struct {
	Healthy bool   `mapstructure:"healthy"`
	State   string `mapstructure:"state"`
	UUID    string `mapstructure:"uuid"`
}

SnapmirrorGetDataModelONTAP defines the resource get data model

func GetSnapmirrorByID

func GetSnapmirrorByID(errorHandler *utils.ErrorHandler, r restclient.RestClient, id string) (*SnapmirrorGetDataModelONTAP, error)

GetSnapmirrorByID ...

type SnapmirrorGetRawDataModelONTAP

type SnapmirrorGetRawDataModelONTAP struct {
	UUID string `mapstructure:"uuid"`
}

SnapmirrorGetRawDataModelONTAP defines the resource get data model

func CreateSnapmirror

CreateSnapmirror to create snapmirror

type SnapmirrorPolicy

type SnapmirrorPolicy struct {
	UUID string `mapstructure:"uuid"`
	Name string `mapstructure:"name"`
}

SnapmirrorPolicy data model

type SnapmirrorPolicyFilterModel

type SnapmirrorPolicyFilterModel struct {
	Name string `mapstructure:"name"`
}

SnapmirrorPolicyFilterModel describes filter model

type SnapmirrorPolicyGetDataModelONTAP

type SnapmirrorPolicyGetDataModelONTAP struct {
	Name                      string                  `mapstructure:"name"`
	SVM                       svm                     `mapstructure:"svm"`
	Type                      string                  `mapstructure:"type,omitempty"`
	SyncType                  string                  `mapstructure:"sync_type,omitempty"`
	Comment                   string                  `mapstructure:"comment"`
	TransferSchedule          TransferScheduleType    `mapstructure:"transfer_schedule"`
	NetworkCompressionEnabled bool                    `mapstructure:"network_compression_enabled"`
	Retention                 []RetentionGetDataModel `mapstructure:"retention,omitempty"`
	IdentityPreservation      string                  `mapstructure:"identity_preservation,omitempty"`
	CopyAllSourceSnapshots    bool                    `mapstructure:"copy_all_source_snapshots,omitempty"`
	CopyLatestSourceSnapshot  bool                    `mapstructure:"copy_latest_source_snapshot,omitempty"`
	UUID                      string                  `mapstructure:"uuid"`
}

SnapmirrorPolicyGetDataModelONTAP defines the resource get data model

type SnapmirrorPolicyGetRawDataModelONTAP

type SnapmirrorPolicyGetRawDataModelONTAP struct {
	Name                      string                     `mapstructure:"name"`
	SVM                       svm                        `mapstructure:"svm"`
	Type                      string                     `mapstructure:"type,omitempty"`
	SyncType                  string                     `mapstructure:"sync_type,omitempty"`
	Comment                   string                     `mapstructure:"comment"`
	TransferSchedule          TransferScheduleType       `mapstructure:"transfer_schedule"`
	NetworkCompressionEnabled bool                       `mapstructure:"network_compression_enabled"`
	Retention                 []RetentionGetRawDataModel `mapstructure:"retention"`
	IdentityPreservation      string                     `mapstructure:"identity_preservation,omitempty"`
	CopyAllSourceSnapshots    bool                       `mapstructure:"copy_all_source_snapshots,omitempty"`
	CopyLatestSourceSnapshot  bool                       `mapstructure:"copy_latest_source_snapshot,omitempty"`
	CreateSnapshotOnSource    bool                       `mapstructure:"create_snapshot_on_source,omitempty"`
	UUID                      string                     `mapstructure:"uuid"`
}

SnapmirrorPolicyGetRawDataModelONTAP defines the resource get data model

func CreateSnapmirrorPolicy

CreateSnapmirrorPolicy to create snapmirror policy

func GetSnapmirrorPolicies

func GetSnapmirrorPolicies(errorHandler *utils.ErrorHandler, r restclient.RestClient, filter *SnapmirrorPolicyFilterModel, version versionModelONTAP) ([]SnapmirrorPolicyGetRawDataModelONTAP, error)

GetSnapmirrorPolicies to get list of policies

func GetSnapmirrorPolicy

func GetSnapmirrorPolicy(errorHandler *utils.ErrorHandler, r restclient.RestClient, id string) (*SnapmirrorPolicyGetRawDataModelONTAP, error)

GetSnapmirrorPolicy by ID

func GetSnapmirrorPolicyByName

func GetSnapmirrorPolicyByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, svmName string) (*SnapmirrorPolicyGetRawDataModelONTAP, error)

GetSnapmirrorPolicyByName to get snapmirror policy info

func GetSnapmirrorPolicyDataSourceByName

func GetSnapmirrorPolicyDataSourceByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, version versionModelONTAP) (*SnapmirrorPolicyGetRawDataModelONTAP, error)

GetSnapmirrorPolicyDataSourceByName to get snapmirror policy data source info by name

type SnapmirrorPolicyResourceBodyDataModelONTAP

type SnapmirrorPolicyResourceBodyDataModelONTAP struct {
	Name                      string                   `mapstructure:"name"`
	SVM                       svm                      `mapstructure:"svm"`
	Type                      string                   `mapstructure:"type,omitempty"`
	SyncType                  string                   `mapstructure:"sync_type,omitempty"`
	Comment                   string                   `mapstructure:"comment"`
	TransferSchedule          TransferScheduleType     `mapstructure:"transfer_schedule,omitempty"`
	NetworkCompressionEnabled bool                     `mapstructure:"network_compression_enabled,omitempty"`
	Retention                 []map[string]interface{} `mapstructure:"retention,omitempty"`
	IdentityPreservation      string                   `mapstructure:"identity_preservation,omitempty"`
	CopyAllSourceSnapshots    bool                     `mapstructure:"copy_all_source_snapshots,omitempty"`
	CopyLatestSourceSnapshot  bool                     `mapstructure:"copy_latest_source_snapshot,omitempty"`
	CreateSnapshotOnSource    bool                     `mapstructure:"create_snapshot_on_source,omitempty"`
}

SnapmirrorPolicyResourceBodyDataModelONTAP defines the resource data model

type SnapmirrorResourceBodyDataModelONTAP

type SnapmirrorResourceBodyDataModelONTAP struct {
	SourceEndPoint      EndPoint          `mapstructure:"source"`
	DestinationEndPoint EndPoint          `mapstructure:"destination"`
	CreateDestination   CreateDestination `mapstructure:"create_destination,omitempty"`
	Policy              Policy            `mapstructure:"policy,omitempty"`
}

SnapmirrorResourceBodyDataModelONTAP defines the resource data model

type Snapshot

type Snapshot struct {
	ReservePercent int `mapstructure:"reserve_percent,omitempty"`
}

Snapshot describes the resource data model.

type SnapshotPolicy

type SnapshotPolicy struct {
	Name string `mapstructure:"name,omitempty"`
}

SnapshotPolicy describes the resource data model.

type SnapshotPolicyGetDataFilterModel

type SnapshotPolicyGetDataFilterModel struct {
	Name    string `mapstructure:"name"`
	SVMName string `mapstructure:"svm.name"`
}

SnapshotPolicyGetDataFilterModel describes filter model

type SnapshotPolicyGetDataModelONTAP

type SnapshotPolicyGetDataModelONTAP struct {
	Name    string     `mapstructure:"name"`
	SVM     svm        `mapstructure:"svm"`
	UUID    string     `mapstructure:"uuid,omitempty"`
	Copies  []CopyType `mapstructure:"copies"`
	Comment string     `mapstructure:"comment,omitempty"`
	Enabled bool       `mapstructure:"enabled"`
}

SnapshotPolicyGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateSnapshotPolicy

CreateSnapshotPolicy to create storage_snapshot_policy

func GetSnapshotPolicies

GetSnapshotPolicies to get storage_snapshot_policy info for all resources matching a filter

func GetSnapshotPolicy

func GetSnapshotPolicy(errorHandler *utils.ErrorHandler, r restclient.RestClient, id string) (*SnapshotPolicyGetDataModelONTAP, error)

GetSnapshotPolicy to get storage_snapshot_policy info

func GetSnapshotPolicyByName

func GetSnapshotPolicyByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string) (*SnapshotPolicyGetDataModelONTAP, error)

GetSnapshotPolicyByName to get storage_snapshot_policy info

type SnapshotPolicyResourceBodyDataModelONTAP

type SnapshotPolicyResourceBodyDataModelONTAP struct {
	Name    string                   `mapstructure:"name"`
	SVM     svm                      `mapstructure:"svm"`
	Copies  []map[string]interface{} `mapstructure:"copies"`
	Comment string                   `mapstructure:"comment,omitempty"`
	Enabled bool                     `mapstructure:"enabled"`
}

SnapshotPolicyResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type SnapshotPolicyResourceUpdateRequestONTAP

type SnapshotPolicyResourceUpdateRequestONTAP struct {
	Comment string `mapstructure:"comment,omitempty"`
	Enabled bool   `mapstructure:"enabled,omitempty"`
}

SnapshotPolicyResourceUpdateRequestONTAP describe the PATCH body data model using go types for mapping

type Source

type Source struct {
	Cluster SnapmirrorCluster `mapstructure:"cluster"`
	Path    string            `mapstructure:"path"`
	Svm     SvmDataModelONTAP `mapstructure:"svm"`
}

Source data model

type Space

type Space struct {
	Size         int          `mapstructure:"size,omitempty"`
	Snapshot     Snapshot     `mapstructure:"snapshot,omitempty"`
	LogicalSpace LogicalSpace `mapstructure:"logical_space,omitempty"`
}

Space describes the resource data model.

type Status added in v1.1.0

type Status struct {
	State string `mapstructure:"state"`
}

Status describes the GET record data model using go types for mapping.

type StorageAggregateGetDataFilterModel

type StorageAggregateGetDataFilterModel struct {
	Name    string `mapstructure:"name"`
	SVMName string `mapstructure:"svm.name"`
}

StorageAggregateGetDataFilterModel describes filter model

type StorageAggregateGetDataModelONTAP

type StorageAggregateGetDataModelONTAP struct {
	Name           string                  `mapstructure:"name"`
	UUID           string                  `mapstructure:"uuid"`
	Node           StorageAggregateNode    `mapstructure:"node"`
	BlockStorage   AggregateBlockStorage   `mapstructure:"block_storage"`
	DataEncryption AggregateDataEncryption `mapstructure:"data_encryption"`
	SnaplockType   string                  `mapstructure:"snaplock_type"`
	State          string                  `mapstructure:"state"`
}

StorageAggregateGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateStorageAggregate

func CreateStorageAggregate(errorHandler *utils.ErrorHandler, r restclient.RestClient, data StorageAggregateResourceModel, diskSize int) (*StorageAggregateGetDataModelONTAP, error)

CreateStorageAggregate to create aggregate

func GetStorageAggregate

func GetStorageAggregate(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) (*StorageAggregateGetDataModelONTAP, error)

GetStorageAggregate to get aggregate info by uuid

func GetStorageAggregateByName

func GetStorageAggregateByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string) (*StorageAggregateGetDataModelONTAP, error)

GetStorageAggregateByName to get aggregate info by name

func GetStorageAggregates

GetStorageAggregates to get aggregate info for all resources matching a filter

type StorageAggregateNode

type StorageAggregateNode struct {
	Name string `mapstructure:"name"`
}

StorageAggregateNode is the body data model for node field

type StorageAggregateResourceModel

type StorageAggregateResourceModel struct {
	Name           string                 `mapstructure:"name,omitempty"`
	State          string                 `mapstructure:"state,omitempty"`
	Node           map[string]string      `mapstructure:"node,omitempty"`
	BlockStorage   map[string]interface{} `mapstructure:"block_storage,omitempty"`
	SnaplockType   string                 `mapstructure:"snaplock_type,omitempty"`
	DataEncryption map[string]bool        `mapstructure:"data_encryption,omitempty"`
}

StorageAggregateResourceModel describes the resource data model.

type StorageFlexcacheAggregate added in v1.1.0

type StorageFlexcacheAggregate struct {
	Name string `mapstructure:"name,omitempty"`
	ID   string `mapstructure:"uuid,omitempty"`
}

StorageFlexcacheAggregate describes the aggregate data model of Aggregate within StorageFlexcacheResourceModel.

type StorageFlexcacheDataSourceFilterModel added in v1.1.0

type StorageFlexcacheDataSourceFilterModel struct {
	Name    string `mapstructure:"name"`
	SVMName string `mapstructure:"svm.name"`
}

StorageFlexcacheDataSourceFilterModel describes the data source data model for queries.

type StorageFlexcacheGetDataModelONTAP added in v1.1.0

type StorageFlexcacheGetDataModelONTAP struct {
	Name                     string
	SVM                      svm
	Aggregates               []StorageFlexcacheAggregate `mapstructure:"aggregates"`
	Origins                  []StorageFlexcacheOrigin    `mapstructure:"origins"`
	JunctionPath             string                      `mapstructure:"junction_path,omitempty"`
	Size                     int                         `mapstructure:"size,omitempty"`
	Path                     string                      `mapstructure:"path,omitempty"`
	Guarantee                StorageFlexcacheGuarantee   `mapstructure:"guarantee,omitempty"`
	DrCache                  bool                        `mapstructure:"dr_cache,omitempty"`
	GlobalFileLockingEnabled bool                        `mapstructure:"global_file_locking_enabled,omitempty"`
	UseTieredAggregate       bool                        `mapstructure:"use_tiered_aggregate,omitempty"`
	ConstituentsPerAggregate int                         `mapstructure:"constituents_per_aggregate,omitempty"`
	UUID                     string
}

StorageFlexcacheGetDataModelONTAP describes the GET record data model using go types for mapping.

func GetStorageFlexcacheByName added in v1.1.0

func GetStorageFlexcacheByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, svmName string) (*StorageFlexcacheGetDataModelONTAP, error)

GetStorageFlexcacheByName to get flexcache info by name.

func GetStorageFlexcaches added in v1.1.0

GetStorageFlexcaches to get flexcaches info by filter

type StorageFlexcacheGuarantee added in v1.1.0

type StorageFlexcacheGuarantee struct {
	Type string `mapstructure:"type,omitempty"`
}

StorageFlexcacheGuarantee describes the guarantee data model of Guarantee within StorageFlexcacheResourceModel.

type StorageFlexcacheOrigin added in v1.1.0

type StorageFlexcacheOrigin struct {
	Volume StorageFlexcacheVolume `mapstructure:"volume"`
	SVM    StorageFlexcacheSVM    `mapstructure:"svm"`
}

StorageFlexcacheOrigin describes the origin data model of Origin within StorageFlexcacheResourceModel.

type StorageFlexcacheResourceModel added in v1.1.0

type StorageFlexcacheResourceModel struct {
	Name                     string                    `mapstructure:"name,omitempty"`
	SVM                      svm                       `mapstructure:"svm,omitempty"`
	Origins                  []map[string]interface{}  `mapstructure:"origins,omitempty"`
	JunctionPath             string                    `mapstructure:"junction_path,omitempty"`
	Size                     int                       `mapstructure:"size,omitempty"`
	Path                     string                    `mapstructure:"path,omitempty"`
	Guarantee                StorageFlexcacheGuarantee `mapstructure:"guarantee,omitempty"`
	DrCache                  bool                      `mapstructure:"dr_cache"`
	GlobalFileLockingEnabled bool                      `mapstructure:"global_file_locking_enabled"`
	UseTieredAggregate       bool                      `mapstructure:"use_tiered_aggregate"`
	ConstituentsPerAggregate int                       `mapstructure:"constituents_per_aggregate,omitempty"`
	Aggregates               []map[string]interface{}  `mapstructure:"aggregates,omitempty"`
}

StorageFlexcacheResourceModel describes the resource data model.

type StorageFlexcacheSVM added in v1.1.0

type StorageFlexcacheSVM struct {
	Name string `mapstructure:"name,omitempty"`
	ID   string `mapstructure:"uuid,omitempty"`
}

StorageFlexcacheSVM describes the svm data model of SVM within StorageFlexcacheOrigin.

type StorageFlexcacheVolume added in v1.1.0

type StorageFlexcacheVolume struct {
	Name string `mapstructure:"name,omitempty"`
	ID   string `mapstructure:"uuid,omitempty"`
}

StorageFlexcacheVolume describes the volume data model of Volume within StorageFlexcacheOrigin.

type StorageLunDataSourceFilterModel added in v1.1.0

type StorageLunDataSourceFilterModel struct {
	Name       string `mapstructure:"name"`
	SVMName    string `mapstructure:"svm.name"`
	VolumeName string `mapstructure:"location.volume.name"`
}

StorageLunDataSourceFilterModel describes the data source data model for queries.

type StorageLunGetDataModelONTAP added in v1.1.0

type StorageLunGetDataModelONTAP struct {
	Name         string       `mapstructure:"name"`
	UUID         string       `mapstructure:"uuid"`
	SVM          svm          `mapstructure:"svm,omitempty"`
	CreateTime   string       `mapstructure:"create_time,omitempty"`
	Location     LunLocation  `mapstructure:"location,omitempty"`
	OSType       string       `mapstructure:"os_type,omitempty"`
	QoSPolicy    LunQoSPolicy `mapstructure:"qos_policy,omitempty"`
	Space        LunSpace     `mapstructure:"space,omitempty"`
	SerialNumber string       `mapstructure:"serial_number,omitempty"`
}

StorageLunGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateStorageLun added in v1.1.0

CreateStorageLun to create storage_lun

func GetStorageLunByName added in v1.1.0

func GetStorageLunByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, svmName string, volumeName string) (*StorageLunGetDataModelONTAP, error)

GetStorageLunByName to get storage_lun info

func GetStorageLunByUUID added in v1.1.2

func GetStorageLunByUUID(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) (*StorageLunGetDataModelONTAP, error)

GetStorageLunByUUID to get storage_lun info

func GetStorageLuns added in v1.1.0

GetStorageLuns to get storage_lun info for all resources matching a filter

type StorageLunResourceBodyDataModelONTAP added in v1.1.0

type StorageLunResourceBodyDataModelONTAP struct {
	Name      string   `mapstructure:"name,omitempty"`
	SVM       svm      `mapstructure:"svm,omitempty"`
	Locations location `mapstructure:"location,omitempty"`
	OsType    string   `mapstructure:"os_type,omitempty"`
	Space     space    `mapstructure:"space,omitempty"`
	QosPolicy string   `mapstructure:"qos_policy,omitempty"`
}

StorageLunResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type StorageVolumeDataSourceFilterModel

type StorageVolumeDataSourceFilterModel struct {
	Name    string `mapstructure:"name"`
	SVMName string `mapstructure:"svm.name"`
}

StorageVolumeDataSourceFilterModel describes the data source data model for queries.

type StorageVolumeGetDataModelONTAP

type StorageVolumeGetDataModelONTAP struct {
	Name           string
	SVM            svm
	Space          Space
	State          string
	Type           string
	Comment        string
	SpaceGuarantee Guarantee `mapstructure:"guarantee"`
	NAS            NAS
	QOS            QOS
	Encryption     Encryption
	Efficiency     Efficiency
	SnapshotPolicy SnapshotPolicy `mapstructure:"snapshot_policy,omitempty"`
	TieringPolicy  TieringPolicy  `mapstructure:"tiering,omitempty"`
	Snaplock       Snaplock
	Analytics      Analytics
	Language       string
	Aggregates     []Aggregate
	UUID           string
}

StorageVolumeGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateStorageVolume

CreateStorageVolume to create volume

func GetStorageVolume

func GetStorageVolume(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) (*StorageVolumeGetDataModelONTAP, error)

GetStorageVolume to get volume info by uuid

func GetStorageVolumeByName

func GetStorageVolumeByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name, svmName string) (*StorageVolumeGetDataModelONTAP, error)

GetStorageVolumeByName to get volume info by name and svm_name

func GetStorageVolumes

GetStorageVolumes to get volumes info for all resources matching a filter

type StorageVolumeResourceModel

type StorageVolumeResourceModel struct {
	Name           string                   `mapstructure:"name,omitempty"`
	SVM            svm                      `mapstructure:"svm,omitempty"`
	Space          Space                    `mapstructure:"space,omitempty"`
	State          string                   `mapstructure:"state,omitempty"`
	Type           string                   `mapstructure:"type,omitempty"`
	Comment        string                   `mapstructure:"comment,omitempty"`
	SpaceGuarantee Guarantee                `mapstructure:"guarantee,omitempty"`
	NAS            NAS                      `mapstructure:"nas,omitempty"`
	QOS            QOS                      `mapstructure:"qos,omitempty"`
	Encryption     Encryption               `mapstructure:"encryption,omitempty"`
	Efficiency     Efficiency               `mapstructure:"efficiency,omitempty"`
	SnapshotPolicy SnapshotPolicy           `mapstructure:"snapshot_policy,omitempty"`
	TieringPolicy  TieringPolicy            `mapstructure:"tiering,omitempty"`
	Snaplock       Snaplock                 `mapstructure:"snaplock,omitempty"`
	Analytics      Analytics                `mapstructure:"analytics,omitempty"`
	Language       string                   `mapstructure:"language,omitempty"`
	Aggregates     []map[string]interface{} `mapstructure:"aggregates,omitempty"`
}

StorageVolumeResourceModel describes the resource data model.

type StorageVolumeSnapshotDataSourceFilterModel

type StorageVolumeSnapshotDataSourceFilterModel struct {
	Name string `tfsdk:"name"`
}

StorageVolumeSnapshotDataSourceFilterModel describes filter model

type StorageVolumeSnapshotGetDataModelONTAP

type StorageVolumeSnapshotGetDataModelONTAP struct {
	Name               string
	Volume             NameDataModel `mapstructure:"volume"`
	SVM                NameDataModel `mapstructure:"svm"`
	CreateTime         string        `mapstructure:"create_time"`
	ExpiryTime         string        `mapstructure:"expiry_time"`
	SnaplockExpiryTime string        `mapstructure:"snaplock_expiry_time"`
	State              string
	Size               float64
	Comment            string
	UUID               string
	SnapmirrorLabel    string `mapstructure:"snapmirror_label"`
}

StorageVolumeSnapshotGetDataModelONTAP describes the GET record data model using go types for mapping

func CreateStorageVolumeSnapshot

func CreateStorageVolumeSnapshot(errorHandler *utils.ErrorHandler, r restclient.RestClient, data StorageVolumeSnapshotResourceModel, volumeUUID string) (*StorageVolumeSnapshotGetDataModelONTAP, error)

CreateStorageVolumeSnapshot to create a snapshot

func GetListStorageVolumeSnapshots

func GetListStorageVolumeSnapshots(errorHandler *utils.ErrorHandler, r restclient.RestClient, volumeUUID string, filter *StorageVolumeSnapshotDataSourceFilterModel) ([]StorageVolumeSnapshotGetDataModelONTAP, error)

GetListStorageVolumeSnapshots to get snapshots info for all resources matching a filter

func GetStorageVolumeSnapshot

func GetStorageVolumeSnapshot(errorHandler *utils.ErrorHandler, r restclient.RestClient, volumeUUID string, UUID string) (*StorageVolumeSnapshotGetDataModelONTAP, error)

GetStorageVolumeSnapshot to get snapshot info by uuid

func GetStorageVolumeSnapshots

func GetStorageVolumeSnapshots(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string, volumeUUID string) (*StorageVolumeSnapshotGetDataModelONTAP, error)

GetStorageVolumeSnapshots to get a single snapshot info

type StorageVolumeSnapshotResourceModel

type StorageVolumeSnapshotResourceModel struct {
	Name               string `mapstructure:"name,omitempty"` // not set name if modificaiton is not rename
	ExpiryTime         string `mapstructure:"expiry_time,omitempty"`
	SnaplockExpiryTime string `mapstructure:"snaplock_expiry_time,omitempty"`
	Comment            string `mapstructure:"comment,omitempty"`
	SnapmirrorLabel    string `mapstructure:"snapmirror_label,omitempty"`
}

StorageVolumeSnapshotResourceModel describes the resource data model.

type SvmDataModelONTAP

type SvmDataModelONTAP struct {
	Name string `mapstructure:"name,omitempty"`
	UUID string `mapstructure:"uuid,omitempty"`
}

SvmDataModelONTAP describes the svm info required by other API's request.

type SvmDataSourceFilterModel

type SvmDataSourceFilterModel struct {
	Name string `mapstructure:"name"`
}

SvmDataSourceFilterModel describes the data source data model for queries.

type SvmGetDataModelONTAP

type SvmGetDataModelONTAP struct {
	Name string
	UUID string
}

SvmGetDataModelONTAP describes the GET record data model using go types for mapping.

func CreateSvm

func CreateSvm(errorHandler *utils.ErrorHandler, r restclient.RestClient, data SvmResourceModel, setAggrEmpty bool, setCommentEmpty bool) (*SvmGetDataModelONTAP, error)

CreateSvm to create svm

type SvmGetDataSourceModel

type SvmGetDataSourceModel struct {
	Name           string         `mapstructure:"name"`
	UUID           string         `mapstructure:"uuid"`
	Ipspace        Ipspace        `mapstructure:"ipspace"`
	SnapshotPolicy SnapshotPolicy `mapstructure:"snapshot_policy"`
	SubType        string         `mapstructure:"subtype,omitempty"`
	Comment        string         `mapstructure:"comment,omitempty"`
	Language       string         `mapstructure:"language,omitempty"`
	Aggregates     []Aggregate    `mapstructure:"aggregates,omitempty"`
	MaxVolumes     string         `mapstructure:"max_volumes,omitempty"`
}

SvmGetDataSourceModel describes the data source model.

func GetSvm

func GetSvm(errorHandler *utils.ErrorHandler, r restclient.RestClient, uuid string) (*SvmGetDataSourceModel, error)

GetSvm to get svm info by uuid

func GetSvmByName

func GetSvmByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string) (*SvmGetDataSourceModel, error)

GetSvmByName to get svm info by name

func GetSvmByNameDataSource

func GetSvmByNameDataSource(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string) (*SvmGetDataSourceModel, error)

GetSvmByNameDataSource to get data source svm info

func GetSvmByNameIgnoreNotFound added in v1.1.0

func GetSvmByNameIgnoreNotFound(errorHandler *utils.ErrorHandler, r restclient.RestClient, name string) (*SvmGetDataSourceModel, error)

GetSvmByNameIgnoreNotFound to get svm info by name

func GetSvmsByName

func GetSvmsByName(errorHandler *utils.ErrorHandler, r restclient.RestClient, filter *SvmDataSourceFilterModel) ([]SvmGetDataSourceModel, error)

GetSvmsByName to get data source list svm info

type SvmResourceModel

type SvmResourceModel struct {
	Name           string              `mapstructure:"name,omitempty"`
	Ipspace        Ipspace             `mapstructure:"ipspace"`
	SnapshotPolicy SnapshotPolicy      `mapstructure:"snapshot_policy,omitempty"`
	SubType        string              `mapstructure:"subtype,omitempty"`
	Comment        string              `mapstructure:"comment"`
	Language       string              `mapstructure:"language,omitempty"`
	MaxVolumes     string              `mapstructure:"max_volumes,omitempty"`
	Aggregates     []map[string]string `mapstructure:"aggregates"`
}

SvmResourceModel describes the resource data model.

type TieringPolicy

type TieringPolicy struct {
	Policy         string `mapstructure:"policy,omitempty"`
	MinCoolingDays int    `mapstructure:"min_cooling_days,omitempty"`
}

TieringPolicy describes the resource data model.

type TransferScheduleType

type TransferScheduleType struct {
	Name string `mapstructure:"name,omitempty"`
}

TransferScheduleType describes the transfer_schedule

type Transport

type Transport struct {
	TCP            bool  `mapstructure:"tcp_enabled"`
	TCPMaxXferSize int64 `mapstructure:"tcp_max_transfer_size"`
	UDP            bool  `mapstructure:"udp_enabled"`
}

Transport describes the GET record data model using go types for mapping.

type UpdateProtocolsSanIgroupResourceBodyDataModelONTAP added in v1.1.0

type UpdateProtocolsSanIgroupResourceBodyDataModelONTAP struct {
	Name    string `mapstructure:"name,omitempty"`
	OsType  string `mapstructure:"os_type,omitempty"`
	Comment string `mapstructure:"comment,omitempty"`
}

UpdateProtocolsSanIgroupResourceBodyDataModelONTAP describes the body data model using go types for mapping.

type UpdateSnapmirrorPolicyResourceBodyDataModelONTAP

type UpdateSnapmirrorPolicyResourceBodyDataModelONTAP struct {
	Comment                   string                   `mapstructure:"comment"`
	TransferSchedule          map[string]interface{}   `mapstructure:"transfer_schedule"`
	NetworkCompressionEnabled bool                     `mapstructure:"network_compression_enabled"`
	Retention                 []map[string]interface{} `mapstructure:"retention,omitempty"`
	IdentityPreservation      string                   `mapstructure:"identity_preservation,omitempty"`
}

UpdateSnapmirrorPolicyResourceBodyDataModelONTAP defines the resource update request body

type UpdateSnapmirrorResourceBodyDataModelONTAP added in v1.1.0

type UpdateSnapmirrorResourceBodyDataModelONTAP struct {
	SourceEndPoint      EndPoint `mapstructure:"source"`
	DestinationEndPoint EndPoint `mapstructure:"destination"`
	Policy              Policy   `mapstructure:"policy,omitempty"`
	State               string   `mapstructure:"state,omitempty"`
}

UpdateSnapmirrorResourceBodyDataModelONTAP defines the resource data model

type UpdateSyncSnapmirrorPolicyResourceBodyDataModelONTAP

type UpdateSyncSnapmirrorPolicyResourceBodyDataModelONTAP struct {
	Comment                   string                   `mapstructure:"comment"`
	NetworkCompressionEnabled bool                     `mapstructure:"network_compression_enabled"`
	Retention                 []map[string]interface{} `mapstructure:"retention,omitempty"`
}

UpdateSyncSnapmirrorPolicyResourceBodyDataModelONTAP defins the sync type snapmirror policy update request body

type UpdateTransferScheduleType

type UpdateTransferScheduleType struct {
	Name string `mapstructure:"name"`
	UUID string `mapstructure:"uuid,omitempty"`
}

UpdateTransferScheduleType describes the transfer_schedule data type in update request

type V40Features

type V40Features struct {
	ACLEnabled             bool `mapstructure:"acl_enabled"`
	ReadDelegationEnabled  bool `mapstructure:"read_delegation_enabled"`
	WriteDelegationEnabled bool `mapstructure:"write_delegation_enabled"`
}

V40Features describes the GET record data model using go types for mapping.

type V41Features

type V41Features struct {
	ACLEnabled             bool `mapstructure:"acl_enabled"`
	PnfsEnabled            bool `mapstructure:"pnfs_enabled"`
	ReadDelegationEnabled  bool `mapstructure:"read_delegation_enabled"`
	WriteDelegationEnabled bool `mapstructure:"write_delegation_enabled"`
}

V41Features describes the GET record data model using go types for mapping.

type Windows

type Windows struct {
	DefaultUser                string `mapstructure:"default_user"`
	MapUnknownUIDToDefaultUser bool   `mapstructure:"map_unknown_uid_to_default_user"`
	V3MsDosClientEnabled       bool   `mapstructure:"v3_ms_dos_client_enabled"`
}

Windows describes the GET record data model using go types for mapping.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL