Documentation
¶
Overview ¶
read.go
Index ¶
- Constants
- func NewReuseablePolicySettingsDataSource() datasource.DataSource
- type ReuseablePolicySettingModel
- type ReuseablePolicySettingsDataSource
- func (d *ReuseablePolicySettingsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *ReuseablePolicySettingsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ReuseablePolicySettingsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ReuseablePolicySettingsDataSource) Schema(ctx context.Context, _ datasource.SchemaRequest, ...)
- type ReuseablePolicySettingsDataSourceModel
Constants ¶
View Source
const ( ResourceName = "graph_beta_device_management_reuseable_policy_setting" ReadTimeout = 180 )
Variables ¶
This section is empty.
Functions ¶
func NewReuseablePolicySettingsDataSource ¶
func NewReuseablePolicySettingsDataSource() datasource.DataSource
Types ¶
type ReuseablePolicySettingModel ¶
type ReuseablePolicySettingModel struct {
ID types.String `tfsdk:"id"`
DisplayName types.String `tfsdk:"display_name"`
Description types.String `tfsdk:"description"`
}
ReuseablePolicySettingModel represents a single reusable policy setting
func MapRemoteStateToDataSource ¶
func MapRemoteStateToDataSource(data graphmodels.DeviceManagementReusablePolicySettingable) ReuseablePolicySettingModel
MapRemoteStateToDataSource maps a Reusable Policy Setting to a model
type ReuseablePolicySettingsDataSource ¶
type ReuseablePolicySettingsDataSource struct {
ProviderTypeName string
TypeName string
ReadPermissions []string
// contains filtered or unexported fields
}
func (*ReuseablePolicySettingsDataSource) Configure ¶
func (d *ReuseablePolicySettingsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ReuseablePolicySettingsDataSource) Metadata ¶
func (r *ReuseablePolicySettingsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the resource type name.
func (*ReuseablePolicySettingsDataSource) Read ¶
func (d *ReuseablePolicySettingsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read handles the Read operation for Reusable Policy Settings data source.
func (*ReuseablePolicySettingsDataSource) Schema ¶
func (d *ReuseablePolicySettingsDataSource) Schema(ctx context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source
type ReuseablePolicySettingsDataSourceModel ¶
type ReuseablePolicySettingsDataSourceModel 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 []ReuseablePolicySettingModel `tfsdk:"items"` // List of reusable policy settings that match the filters
Timeouts timeouts.Value `tfsdk:"timeouts"`
}
ReuseablePolicySettingsDataSourceModel defines the data source model
Click to show internal directories.
Click to hide internal directories.