Documentation
¶
Index ¶
- Variables
- func NewDeviceGroupsDataSource() datasource.DataSource
- type DeviceGroupsDataSource
- func (d *DeviceGroupsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DeviceGroupsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DeviceGroupsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DeviceGroupsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DeviceGroupsDataSourceModel
- type DeviceGroupsDataSourceResultModel
Constants ¶
This section is empty.
Variables ¶
View Source
var DeviceGroupFilterSelectors = []string{
"name",
"description",
"deviceType",
"groupType",
}
Functions ¶
func NewDeviceGroupsDataSource ¶
func NewDeviceGroupsDataSource() datasource.DataSource
NewDeviceGroupsDataSource returns a new instance of DeviceGroupsDataSource.
Types ¶
type DeviceGroupsDataSource ¶
type DeviceGroupsDataSource struct {
// contains filtered or unexported fields
}
DeviceGroupsDataSource implements the Terraform data source for Jamf device groups.
func (*DeviceGroupsDataSource) Configure ¶
func (d *DeviceGroupsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure sets up the API client for the data source from the provider configuration.
func (*DeviceGroupsDataSource) Metadata ¶
func (d *DeviceGroupsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata sets the data source type name for the Terraform provider.
func (*DeviceGroupsDataSource) Read ¶
func (d *DeviceGroupsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read fetches device groups that match the provided filters.
func (*DeviceGroupsDataSource) Schema ¶
func (d *DeviceGroupsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema sets the Terraform schema for the data source.
type DeviceGroupsDataSourceModel ¶
type DeviceGroupsDataSourceModel struct {
ID types.String `tfsdk:"id"`
Filters []filters.FilterModel `tfsdk:"filter"`
Timeouts timeouts.Value `tfsdk:"timeouts"`
DeviceGroups []DeviceGroupsDataSourceResultModel `tfsdk:"device_groups"`
}
DeviceGroupsDataSourceModel represents the Terraform data source model for Jamf device groups.
type DeviceGroupsDataSourceResultModel ¶
type DeviceGroupsDataSourceResultModel struct {
ID types.String `tfsdk:"id"`
Name types.String `tfsdk:"name"`
Description types.String `tfsdk:"description"`
DeviceType types.String `tfsdk:"device_type"`
GroupType types.String `tfsdk:"group_type"`
MemberCount types.Int64 `tfsdk:"member_count"`
}
DeviceGroupsDataSourceResultModel represents a single entry returned by the data source.
Click to show internal directories.
Click to hide internal directories.