package model

import (
	"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"

	"strings"
)

// VersionLinks API的url地址
type VersionLinks struct {

	// API的url地址
	Href *string `json:"href,omitempty"`

	// API的url地址依赖
	Rel *string `json:"rel,omitempty"`
}

func (o VersionLinks) String() string {
	data, err := utils.Marshal(o)
	if err != nil {
		return "VersionLinks struct{}"
	}

	return strings.Join([]string{"VersionLinks", string(data)}, " ")
}
