Documentation
¶
Overview ¶
read.go
Index ¶
- Constants
- func NewWindowsUpdateRingDataSource() datasource.DataSource
- type WindowsUpdateRingDataSource
- func (d *WindowsUpdateRingDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *WindowsUpdateRingDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *WindowsUpdateRingDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *WindowsUpdateRingDataSource) Schema(ctx context.Context, _ datasource.SchemaRequest, ...)
- type WindowsUpdateRingDataSourceModel
- type WindowsUpdateRingModel
Constants ¶
View Source
const ( DataSourceName = "graph_beta_device_management_windows_update_ring" ReadTimeout = 180 )
Variables ¶
This section is empty.
Functions ¶
func NewWindowsUpdateRingDataSource ¶
func NewWindowsUpdateRingDataSource() datasource.DataSource
NewWindowsUpdateRingDataSource creates a new data source for Windows Update Rings
Types ¶
type WindowsUpdateRingDataSource ¶
type WindowsUpdateRingDataSource struct {
ProviderTypeName string
TypeName string
ReadPermissions []string
// contains filtered or unexported fields
}
WindowsUpdateRingDataSource defines the data source implementation
func (*WindowsUpdateRingDataSource) Configure ¶
func (d *WindowsUpdateRingDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure configures the data source with the provider client
func (*WindowsUpdateRingDataSource) Metadata ¶
func (d *WindowsUpdateRingDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name
func (*WindowsUpdateRingDataSource) Read ¶
func (d *WindowsUpdateRingDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read handles the Read operation for Windows Update Ring data source.
func (*WindowsUpdateRingDataSource) Schema ¶
func (d *WindowsUpdateRingDataSource) Schema(ctx context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source
type WindowsUpdateRingDataSourceModel ¶
type WindowsUpdateRingDataSourceModel struct {
FilterType types.String `tfsdk:"filter_type"` // Required field to specify how to filter
FilterValue types.String `tfsdk:"filter_value"` // Value to filter by (not used for "all")
Items []WindowsUpdateRingModel `tfsdk:"items"` // List of Windows Update Rings that match the filters
Timeouts timeouts.Value `tfsdk:"timeouts"`
}
WindowsUpdateRingDataSourceModel defines the data source model
type WindowsUpdateRingModel ¶
type WindowsUpdateRingModel struct {
ID types.String `tfsdk:"id"`
DisplayName types.String `tfsdk:"display_name"`
Description types.String `tfsdk:"description"`
}
WindowsUpdateRingModel represents a single Windows Update Ring
func MapRemoteStateToDataSource ¶
func MapRemoteStateToDataSource(data graphmodels.DeviceConfigurationable) WindowsUpdateRingModel
MapRemoteStateToDataSource maps a Windows Update Ring to a model
Click to show internal directories.
Click to hide internal directories.