Documentation
¶
Index ¶
- Constants
- type ServiceUsage
- type ServiceUsageService
- func (s *ServiceUsageService) ListAll(ctx context.Context, projectNumber int64) ([]*ServiceUsage, error)
- func (s *ServiceUsageService) ListByDiff(ctx context.Context, baseProjectNumber int64, targetProjectNumber int64) ([]*ServiceUsage, error)
- func (s *ServiceUsageService) ListByStateDisabled(ctx context.Context, projectNumber int64) ([]*ServiceUsage, error)
- func (s *ServiceUsageService) ListByStateEnabled(ctx context.Context, projectNumber int64) ([]*ServiceUsage, error)
Constants ¶
View Source
const ( StateEnabled = "ENABLED" StateDisabled = "DISABLED" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceUsage ¶
type ServiceUsageService ¶
type ServiceUsageService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(ctx context.Context, client *serviceusage.Service) (*ServiceUsageService, error)
func (*ServiceUsageService) ListAll ¶
func (s *ServiceUsageService) ListAll(ctx context.Context, projectNumber int64) ([]*ServiceUsage, error)
func (*ServiceUsageService) ListByDiff ¶
func (s *ServiceUsageService) ListByDiff(ctx context.Context, baseProjectNumber int64, targetProjectNumber int64) ([]*ServiceUsage, error)
ListByDiff is base と target のServiceUsageを比較して、差がある場合、target の ServiceUsage を返す
func (*ServiceUsageService) ListByStateDisabled ¶
func (s *ServiceUsageService) ListByStateDisabled(ctx context.Context, projectNumber int64) ([]*ServiceUsage, error)
func (*ServiceUsageService) ListByStateEnabled ¶
func (s *ServiceUsageService) ListByStateEnabled(ctx context.Context, projectNumber int64) ([]*ServiceUsage, error)
Click to show internal directories.
Click to hide internal directories.