Documentation
¶
Index ¶
- func NewResource() resource.Resource
- type MaintenanceWindowAlertingScope
- type MaintenanceWindowModel
- type MaintenanceWindowResource
- func (r *MaintenanceWindowResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *MaintenanceWindowResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *MaintenanceWindowResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *MaintenanceWindowResource) ImportState(ctx context.Context, request resource.ImportStateRequest, ...)
- func (r *MaintenanceWindowResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *MaintenanceWindowResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *MaintenanceWindowResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *MaintenanceWindowResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type MaintenanceWindowSchedule
- type MaintenanceWindowScheduleRecurring
- type MaintenanceWindowScope
- type ResponseJson
- type ResponseJsonAlerting
- type ResponseJsonAlertingQuery
- type ResponseJsonCustomSchedule
- type ResponseJsonRecurring
- type ResponseJsonSchedule
- type ResponseJsonScope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResource ¶
NewResource is a helper function to simplify the provider implementation.
Types ¶
type MaintenanceWindowModel ¶
type MaintenanceWindowModel struct { ID types.String `tfsdk:"id"` SpaceID types.String `tfsdk:"space_id"` Title types.String `tfsdk:"title"` Enabled types.Bool `tfsdk:"enabled"` CustomSchedule MaintenanceWindowSchedule `tfsdk:"custom_schedule"` Scope *MaintenanceWindowScope `tfsdk:"scope"` }
type MaintenanceWindowResource ¶
type MaintenanceWindowResource struct {
// contains filtered or unexported fields
}
func (*MaintenanceWindowResource) Configure ¶
func (r *MaintenanceWindowResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*MaintenanceWindowResource) Create ¶
func (r *MaintenanceWindowResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*MaintenanceWindowResource) Delete ¶
func (r *MaintenanceWindowResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*MaintenanceWindowResource) ImportState ¶
func (r *MaintenanceWindowResource) ImportState(ctx context.Context, request resource.ImportStateRequest, response *resource.ImportStateResponse)
func (*MaintenanceWindowResource) Metadata ¶
func (r *MaintenanceWindowResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the provider type name.
func (*MaintenanceWindowResource) Read ¶
func (r *MaintenanceWindowResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*MaintenanceWindowResource) Schema ¶
func (r *MaintenanceWindowResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*MaintenanceWindowResource) Update ¶
func (r *MaintenanceWindowResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type MaintenanceWindowScope ¶
type MaintenanceWindowScope struct {
Alerting MaintenanceWindowAlertingScope `tfsdk:"alerting"`
}
type ResponseJson ¶
type ResponseJson struct { CreatedAt string `json:"created_at"` CreatedBy *string `json:"created_by"` Enabled bool `json:"enabled"` Id string `json:"id"` Schedule ResponseJsonSchedule `json:"schedule"` Scope *ResponseJsonScope `json:"scope,omitempty"` Title string `json:"title"` }
type ResponseJsonAlerting ¶
type ResponseJsonAlerting struct {
Query ResponseJsonAlertingQuery `json:"query"`
}
type ResponseJsonAlertingQuery ¶
type ResponseJsonAlertingQuery struct {
Kql string `json:"kql"`
}
type ResponseJsonCustomSchedule ¶
type ResponseJsonCustomSchedule struct { Duration string `json:"duration"` Recurring *ResponseJsonRecurring `json:"recurring,omitempty"` Start string `json:"start"` Timezone *string `json:"timezone,omitempty"` }
type ResponseJsonRecurring ¶
type ResponseJsonRecurring struct { End *string `json:"end,omitempty"` Every *string `json:"every,omitempty"` Occurrences *float32 `json:"occurrences,omitempty"` OnMonth *[]float32 `json:"onMonth,omitempty"` OnMonthDay *[]float32 `json:"onMonthDay,omitempty"` OnWeekDay *[]string `json:"onWeekDay,omitempty"` }
type ResponseJsonSchedule ¶
type ResponseJsonSchedule struct {
Custom ResponseJsonCustomSchedule `json:"custom"`
}
type ResponseJsonScope ¶
type ResponseJsonScope struct {
Alerting ResponseJsonAlerting `json:"alerting"`
}
Click to show internal directories.
Click to hide internal directories.