packer-cn/vendor/github.com/yandex-cloud/go-sdk/certificate.go

20 lines
625 B
Go
Raw Normal View History

2020-10-23 05:22:35 -04:00
package ycsdk
import (
"github.com/yandex-cloud/go-sdk/gen/certificatemanager"
certificatemanagerdata "github.com/yandex-cloud/go-sdk/gen/certificatemanagerdata"
)
const (
CertificateManagerID = "certificate-manager"
CertificateManagerDataID = "certificate-manager-data"
)
func (sdk *SDK) Certificates() *certificatemanager.CertificateManager {
return certificatemanager.NewCertificateManager(sdk.getConn(CertificateManagerID))
}
func (sdk *SDK) CertificatesData() *certificatemanagerdata.CertificateManagerData {
return certificatemanagerdata.NewCertificateManagerData(sdk.getConn(CertificateManagerDataID))
}