2024-02-23 09:39:23 -05:00
|
|
|
// Code generated by "make api"; DO NOT EDIT.
|
2026-04-06 15:48:37 +05:30
|
|
|
// Copyright IBM Corp. 2020, 2026
|
2024-02-23 09:39:23 -05:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
|
|
|
|
|
package billing
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
"github.com/hashicorp/boundary/api"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type ActiveUsers struct {
|
|
|
|
|
Count uint32 `json:"count"`
|
|
|
|
|
StartTime time.Time `json:"start_time,omitempty"`
|
|
|
|
|
EndTime time.Time `json:"end_time,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Client is a client for this collection
|
|
|
|
|
type Client struct {
|
|
|
|
|
client *api.Client
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Creates a new client for this collection. The submitted API client is cloned;
|
|
|
|
|
// modifications to it after generating this client will not have effect. If you
|
|
|
|
|
// need to make changes to the underlying API client, use ApiClient() to access
|
|
|
|
|
// it.
|
|
|
|
|
func NewClient(c *api.Client) *Client {
|
|
|
|
|
return &Client{client: c.Clone()}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ApiClient returns the underlying API client
|
|
|
|
|
func (c *Client) ApiClient() *api.Client {
|
|
|
|
|
return c.client
|
|
|
|
|
}
|