Documentation
¶
Index ¶
Constants ¶
View Source
const ApiPath = "/cloudview-api/rest/v1/gcp/connectors"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct { ErrorResponse ConnectorID string `json:"connectorId"` Description string `json:"description"` Groups []Group `json:"groups"` LastSyncedOn string `json:"lastSyncedOn"` Name string `json:"name"` Project string `json:"projectId"` Provider string `json:"provider"` State string `json:"state"` TotalAssets int `json:"totalAssets"` }
type ConnectorConfig ¶
type ConnectorConfig struct { Name string `url:"name,omitempty" json:"name,omitempty"` Description string `url:"description,omitempty" json:"description,omitempty"` ProjectId string `url:"projectId,omitempty" json:"projectId,omitempty"` ConfigFile string `url:"-" json:"-"` }
func NewConnectorConfig ¶
func NewConnectorConfig() *ConnectorConfig
func (*ConnectorConfig) WithCredentialsJSON ¶
func (c *ConnectorConfig) WithCredentialsJSON(file string) *ConnectorConfig
func (*ConnectorConfig) WithDescription ¶
func (c *ConnectorConfig) WithDescription(desc string) *ConnectorConfig
func (*ConnectorConfig) WithName ¶
func (c *ConnectorConfig) WithName(name string) *ConnectorConfig
func (*ConnectorConfig) WithProjectId ¶
func (c *ConnectorConfig) WithProjectId(projectId string) *ConnectorConfig
type ConnectorIds ¶
type ConnectorIds struct {
ConnectorIds []string `url:"connectorIds,omitempty" json:"connectorIds,omitempty"`
}
type ConnectorList ¶
type ConnectorService ¶
type ConnectorService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(baseURL, username, password string) *ConnectorService
func (*ConnectorService) Create ¶
func (s *ConnectorService) Create(opt *ConnectorConfig) (*Connector, error)
func (*ConnectorService) Delete ¶
func (s *ConnectorService) Delete(connectorIds []string) error
func (*ConnectorService) Update ¶
func (s *ConnectorService) Update(id string, opt *ConnectorConfig) error
type ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.