Documentation
¶
Index ¶
- Constants
- func AsListOfString(input types.List) []string
- func AsMapOfLists(input types.Map) map[string][]string
- func AsMapOfString(input types.Map) map[string]string
- func NewMSGraphDataSource() datasource.DataSource
- func NewMSGraphResource() resource.Resource
- func NewMSGraphResourceAction() resource.Resource
- func NewMSGraphResourceActionDataSource() datasource.DataSource
- func NewMSGraphResourceCollection() resource.Resource
- func NewMSGraphUpdateResource() resource.Resource
- func ResourceExistenceFunc(client *clients.MSGraphClient, model *MSGraphResourceModel) consistency.ChangeFunc
- func ToListOfString(input []string) types.List
- type MSGraphDataSource
- func (r *MSGraphDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *MSGraphDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *MSGraphDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *MSGraphDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type MSGraphDataSourceModel
- type MSGraphResource
- func (r *MSGraphResource) ConfigValidators(ctx context.Context) []resource.ConfigValidator
- func (r *MSGraphResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *MSGraphResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *MSGraphResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *MSGraphResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *MSGraphResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *MSGraphResource) ModifyPlan(ctx context.Context, request resource.ModifyPlanRequest, ...)
- func (r *MSGraphResource) MoveState(ctx context.Context) []resource.StateMover
- func (r *MSGraphResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *MSGraphResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *MSGraphResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type MSGraphResourceAction
- func (r *MSGraphResourceAction) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *MSGraphResourceAction) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *MSGraphResourceAction) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *MSGraphResourceAction) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *MSGraphResourceAction) ModifyPlan(ctx context.Context, request resource.ModifyPlanRequest, ...)
- func (r *MSGraphResourceAction) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *MSGraphResourceAction) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *MSGraphResourceAction) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type MSGraphResourceActionDataSource
- func (r *MSGraphResourceActionDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *MSGraphResourceActionDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *MSGraphResourceActionDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *MSGraphResourceActionDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type MSGraphResourceActionDataSourceModel
- type MSGraphResourceActionModel
- type MSGraphResourceCollection
- func (r *MSGraphResourceCollection) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *MSGraphResourceCollection) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *MSGraphResourceCollection) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *MSGraphResourceCollection) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *MSGraphResourceCollection) ModifyPlan(ctx context.Context, request resource.ModifyPlanRequest, ...)
- func (r *MSGraphResourceCollection) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *MSGraphResourceCollection) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *MSGraphResourceCollection) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type MSGraphResourceCollectionModel
- type MSGraphResourceModel
- type MSGraphUpdateResource
- func (r *MSGraphUpdateResource) ConfigValidators(ctx context.Context) []resource.ConfigValidator
- func (r *MSGraphUpdateResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *MSGraphUpdateResource) Create(ctx context.Context, request resource.CreateRequest, ...)
- func (r *MSGraphUpdateResource) CreateUpdate(ctx context.Context, plan tfsdk.Plan, state *tfsdk.State, ...)
- func (r *MSGraphUpdateResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *MSGraphUpdateResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *MSGraphUpdateResource) ModifyPlan(ctx context.Context, request resource.ModifyPlanRequest, ...)
- func (r *MSGraphUpdateResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *MSGraphUpdateResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *MSGraphUpdateResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type MSGraphUpdateResourceModel
Constants ¶
View Source
const FlagMoveState = "move_state"
Variables ¶
This section is empty.
Functions ¶
func AsListOfString ¶ added in v0.2.0
func NewMSGraphDataSource ¶
func NewMSGraphDataSource() datasource.DataSource
func NewMSGraphResource ¶
func NewMSGraphResourceAction ¶ added in v0.2.0
func NewMSGraphResourceActionDataSource ¶ added in v0.2.0
func NewMSGraphResourceActionDataSource() datasource.DataSource
func NewMSGraphResourceCollection ¶ added in v0.2.0
func NewMSGraphUpdateResource ¶ added in v0.2.0
func ResourceExistenceFunc ¶ added in v0.3.0
func ResourceExistenceFunc(client *clients.MSGraphClient, model *MSGraphResourceModel) consistency.ChangeFunc
func ToListOfString ¶ added in v0.3.0
Types ¶
type MSGraphDataSource ¶
type MSGraphDataSource struct {
// contains filtered or unexported fields
}
MSGraphDataSource defines the data source implementation.
func (*MSGraphDataSource) Configure ¶
func (r *MSGraphDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*MSGraphDataSource) Metadata ¶
func (r *MSGraphDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*MSGraphDataSource) Read ¶
func (r *MSGraphDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*MSGraphDataSource) Schema ¶
func (r *MSGraphDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type MSGraphDataSourceModel ¶
type MSGraphDataSourceModel struct {
Id types.String `tfsdk:"id"`
ApiVersion types.String `tfsdk:"api_version"`
Url types.String `tfsdk:"url"`
ResponseExportValues map[string]string `tfsdk:"response_export_values"`
Headers types.Map `tfsdk:"headers"`
QueryParameters types.Map `tfsdk:"query_parameters"`
Retry retry.Value `tfsdk:"retry"`
Output types.Dynamic `tfsdk:"output"`
Timeouts timeouts.Value `tfsdk:"timeouts"`
}
MSGraphDataSourceModel describes the data source data model.
type MSGraphResource ¶
type MSGraphResource struct {
// contains filtered or unexported fields
}
MSGraphResource defines the resource implementation.
func (*MSGraphResource) ConfigValidators ¶
func (r *MSGraphResource) ConfigValidators(ctx context.Context) []resource.ConfigValidator
func (*MSGraphResource) Configure ¶
func (r *MSGraphResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*MSGraphResource) Create ¶
func (r *MSGraphResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*MSGraphResource) Delete ¶
func (r *MSGraphResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*MSGraphResource) ImportState ¶
func (r *MSGraphResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*MSGraphResource) Metadata ¶
func (r *MSGraphResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*MSGraphResource) ModifyPlan ¶
func (r *MSGraphResource) ModifyPlan(ctx context.Context, request resource.ModifyPlanRequest, response *resource.ModifyPlanResponse)
func (*MSGraphResource) MoveState ¶ added in v0.3.0
func (r *MSGraphResource) MoveState(ctx context.Context) []resource.StateMover
func (*MSGraphResource) Read ¶
func (r *MSGraphResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*MSGraphResource) Schema ¶
func (r *MSGraphResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*MSGraphResource) Update ¶
func (r *MSGraphResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type MSGraphResourceAction ¶ added in v0.2.0
type MSGraphResourceAction struct {
// contains filtered or unexported fields
}
MSGraphResourceAction defines the resource implementation.
func (*MSGraphResourceAction) Configure ¶ added in v0.2.0
func (r *MSGraphResourceAction) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*MSGraphResourceAction) Create ¶ added in v0.2.0
func (r *MSGraphResourceAction) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*MSGraphResourceAction) Delete ¶ added in v0.2.0
func (r *MSGraphResourceAction) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*MSGraphResourceAction) Metadata ¶ added in v0.2.0
func (r *MSGraphResourceAction) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*MSGraphResourceAction) ModifyPlan ¶ added in v0.2.0
func (r *MSGraphResourceAction) ModifyPlan(ctx context.Context, request resource.ModifyPlanRequest, response *resource.ModifyPlanResponse)
func (*MSGraphResourceAction) Read ¶ added in v0.2.0
func (r *MSGraphResourceAction) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*MSGraphResourceAction) Schema ¶ added in v0.2.0
func (r *MSGraphResourceAction) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*MSGraphResourceAction) Update ¶ added in v0.2.0
func (r *MSGraphResourceAction) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type MSGraphResourceActionDataSource ¶ added in v0.2.0
type MSGraphResourceActionDataSource struct {
// contains filtered or unexported fields
}
MSGraphResourceActionDataSource defines the data source implementation.
func (*MSGraphResourceActionDataSource) Configure ¶ added in v0.2.0
func (r *MSGraphResourceActionDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*MSGraphResourceActionDataSource) Metadata ¶ added in v0.2.0
func (r *MSGraphResourceActionDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*MSGraphResourceActionDataSource) Read ¶ added in v0.2.0
func (r *MSGraphResourceActionDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*MSGraphResourceActionDataSource) Schema ¶ added in v0.2.0
func (r *MSGraphResourceActionDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type MSGraphResourceActionDataSourceModel ¶ added in v0.2.0
type MSGraphResourceActionDataSourceModel struct {
Id types.String `tfsdk:"id"`
ApiVersion types.String `tfsdk:"api_version"`
ResourceUrl types.String `tfsdk:"resource_url"`
Action types.String `tfsdk:"action"`
Method types.String `tfsdk:"method"`
Body types.Dynamic `tfsdk:"body"`
QueryParameters types.Map `tfsdk:"query_parameters"`
Headers types.Map `tfsdk:"headers"`
ResponseExportValues map[string]string `tfsdk:"response_export_values"`
Retry retry.Value `tfsdk:"retry"`
Output types.Dynamic `tfsdk:"output"`
Timeouts timeouts.Value `tfsdk:"timeouts"`
}
MSGraphResourceActionDataSourceModel describes the data source data model.
type MSGraphResourceActionModel ¶ added in v0.2.0
type MSGraphResourceActionModel struct {
Id types.String `tfsdk:"id"`
ApiVersion types.String `tfsdk:"api_version"`
ResourceUrl types.String `tfsdk:"resource_url"`
Action types.String `tfsdk:"action"`
Method types.String `tfsdk:"method"`
Body types.Dynamic `tfsdk:"body"`
QueryParameters types.Map `tfsdk:"query_parameters"`
Headers types.Map `tfsdk:"headers"`
ResponseExportValues map[string]string `tfsdk:"response_export_values"`
Retry retry.Value `tfsdk:"retry"`
Output types.Dynamic `tfsdk:"output"`
Timeouts timeouts.Value `tfsdk:"timeouts"`
}
MSGraphResourceActionModel describes the resource data model.
type MSGraphResourceCollection ¶ added in v0.2.0
type MSGraphResourceCollection struct {
// contains filtered or unexported fields
}
func (*MSGraphResourceCollection) Configure ¶ added in v0.2.0
func (r *MSGraphResourceCollection) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*MSGraphResourceCollection) Create ¶ added in v0.2.0
func (r *MSGraphResourceCollection) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*MSGraphResourceCollection) Delete ¶ added in v0.2.0
func (r *MSGraphResourceCollection) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*MSGraphResourceCollection) Metadata ¶ added in v0.2.0
func (r *MSGraphResourceCollection) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*MSGraphResourceCollection) ModifyPlan ¶ added in v0.2.0
func (r *MSGraphResourceCollection) ModifyPlan(ctx context.Context, request resource.ModifyPlanRequest, response *resource.ModifyPlanResponse)
func (*MSGraphResourceCollection) Read ¶ added in v0.2.0
func (r *MSGraphResourceCollection) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*MSGraphResourceCollection) Schema ¶ added in v0.2.0
func (r *MSGraphResourceCollection) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*MSGraphResourceCollection) Update ¶ added in v0.2.0
func (r *MSGraphResourceCollection) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type MSGraphResourceCollectionModel ¶ added in v0.2.0
type MSGraphResourceCollectionModel struct {
Id types.String `tfsdk:"id"`
ApiVersion types.String `tfsdk:"api_version"`
Url types.String `tfsdk:"url"`
ReferenceIds types.List `tfsdk:"reference_ids"`
ReadQueryParameters types.Map `tfsdk:"read_query_parameters"`
Retry retry.Value `tfsdk:"retry"`
ResponseExportValues map[string]string `tfsdk:"response_export_values"`
Output types.Dynamic `tfsdk:"output"`
Timeouts timeouts.Value `tfsdk:"timeouts"`
}
type MSGraphResourceModel ¶
type MSGraphResourceModel struct {
Id types.String `tfsdk:"id"`
ResourceUrl types.String `tfsdk:"resource_url"`
ApiVersion types.String `tfsdk:"api_version"`
Url types.String `tfsdk:"url"`
Body types.Dynamic `tfsdk:"body"`
IgnoreMissingProperty types.Bool `tfsdk:"ignore_missing_property"`
CreateQueryParameters types.Map `tfsdk:"create_query_parameters"`
UpdateQueryParameters types.Map `tfsdk:"update_query_parameters"`
ReadQueryParameters types.Map `tfsdk:"read_query_parameters"`
DeleteQueryParameters types.Map `tfsdk:"delete_query_parameters"`
ResponseExportValues map[string]string `tfsdk:"response_export_values"`
Retry retry.Value `tfsdk:"retry"`
Output types.Dynamic `tfsdk:"output"`
Timeouts timeouts.Value `tfsdk:"timeouts"`
UpdateMethod types.String `tfsdk:"update_method"`
}
MSGraphResourceModel describes the resource data model.
type MSGraphUpdateResource ¶ added in v0.2.0
type MSGraphUpdateResource struct {
// contains filtered or unexported fields
}
MSGraphUpdateResource defines the resource implementation.
func (*MSGraphUpdateResource) ConfigValidators ¶ added in v0.2.0
func (r *MSGraphUpdateResource) ConfigValidators(ctx context.Context) []resource.ConfigValidator
func (*MSGraphUpdateResource) Configure ¶ added in v0.2.0
func (r *MSGraphUpdateResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*MSGraphUpdateResource) Create ¶ added in v0.2.0
func (r *MSGraphUpdateResource) Create(ctx context.Context, request resource.CreateRequest, response *resource.CreateResponse)
func (*MSGraphUpdateResource) CreateUpdate ¶ added in v0.2.0
func (r *MSGraphUpdateResource) CreateUpdate(ctx context.Context, plan tfsdk.Plan, state *tfsdk.State, diagnostics *diag.Diagnostics, isCreate bool)
func (*MSGraphUpdateResource) Delete ¶ added in v0.2.0
func (r *MSGraphUpdateResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*MSGraphUpdateResource) Metadata ¶ added in v0.2.0
func (r *MSGraphUpdateResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*MSGraphUpdateResource) ModifyPlan ¶ added in v0.2.0
func (r *MSGraphUpdateResource) ModifyPlan(ctx context.Context, request resource.ModifyPlanRequest, response *resource.ModifyPlanResponse)
func (*MSGraphUpdateResource) Read ¶ added in v0.2.0
func (r *MSGraphUpdateResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*MSGraphUpdateResource) Schema ¶ added in v0.2.0
func (r *MSGraphUpdateResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*MSGraphUpdateResource) Update ¶ added in v0.2.0
func (r *MSGraphUpdateResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type MSGraphUpdateResourceModel ¶ added in v0.2.0
type MSGraphUpdateResourceModel struct {
Id types.String `tfsdk:"id"`
UpdateMethod types.String `tfsdk:"update_method"`
ApiVersion types.String `tfsdk:"api_version"`
Url types.String `tfsdk:"url"`
Body types.Dynamic `tfsdk:"body"`
IgnoreMissingProperty types.Bool `tfsdk:"ignore_missing_property"`
UpdateQueryParameters types.Map `tfsdk:"update_query_parameters"`
ReadQueryParameters types.Map `tfsdk:"read_query_parameters"`
ResponseExportValues map[string]string `tfsdk:"response_export_values"`
Retry retry.Value `tfsdk:"retry"`
Output types.Dynamic `tfsdk:"output"`
Timeouts timeouts.Value `tfsdk:"timeouts"`
}
MSGraphUpdateResourceModel describes the resource data model.
Click to show internal directories.
Click to hide internal directories.