cloud/azure/compute/models/ssh_public_key.go
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
strfmt "github.com/go-openapi/strfmt"
"github.com/go-openapi/errors"
)
// SSHPublicKey Contains information about SSH certificate public key and the path on the Linux VM where the public key is placed.
// swagger:model SshPublicKey
type SSHPublicKey struct {
// Certificate public key used to authenticate to the VM through SSH. The certificate must be in Pem format with or without headers.
KeyData string `json:"keyData,omitempty"`
// Specifies the full path on the created VM where SSH public key is stored. If the file already exists, the specified key is appended to the file.
Path string `json:"path,omitempty"`
}
// Validate validates this Ssh public key
func (m *SSHPublicKey) Validate(formats strfmt.Registry) error {
var res []error
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}