Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewRestobjectDataSource() datasource.DataSource
- func NewRestobjectResource() resource.Resource
- type OAuthClientCredentials
- type ReadSearch
- type ResponseFilter
- type RestapiProvider
- func (p *RestapiProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *RestapiProvider) DataSources(_ context.Context) []func() datasource.DataSource
- func (p *RestapiProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
- func (p *RestapiProvider) Resources(_ context.Context) []func() resource.Resource
- func (p *RestapiProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
- type RestapiProviderModel
- type RestobjectDataSource
- func (d *RestobjectDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *RestobjectDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *RestobjectDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *RestobjectDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type RestobjectResource
- func (r *RestobjectResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *RestobjectResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *RestobjectResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *RestobjectResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *RestobjectResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *RestobjectResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *RestobjectResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *RestobjectResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type RestobjectResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRestobjectDataSource ¶
func NewRestobjectDataSource() datasource.DataSource
func NewRestobjectResource ¶
Types ¶
type OAuthClientCredentials ¶
type ReadSearch ¶
type ResponseFilter ¶
type RestapiProvider ¶
type RestapiProvider struct {
// contains filtered or unexported fields
}
RestapiProvider defines the provider implementation.
func (*RestapiProvider) Configure ¶
func (p *RestapiProvider) Configure( ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse, )
func (*RestapiProvider) DataSources ¶
func (p *RestapiProvider) DataSources(_ context.Context) []func() datasource.DataSource
func (*RestapiProvider) Metadata ¶
func (p *RestapiProvider) Metadata(_ context.Context, _ provider.MetadataRequest, resp *provider.MetadataResponse)
func (*RestapiProvider) Resources ¶
func (p *RestapiProvider) Resources(_ context.Context) []func() resource.Resource
func (*RestapiProvider) Schema ¶
func (p *RestapiProvider) Schema(_ context.Context, _ provider.SchemaRequest, resp *provider.SchemaResponse)
type RestapiProviderModel ¶
type RestapiProviderModel struct { Endpoint types.String `tfsdk:"endpoint"` Insecure types.Bool `tfsdk:"insecure"` Username types.String `tfsdk:"username"` Password types.String `tfsdk:"password"` Headers types.Map `tfsdk:"headers"` UseCookies types.Bool `tfsdk:"use_cookies"` Timeout types.Int64 `tfsdk:"timeout"` IDAttribute types.String `tfsdk:"id_attribute"` CreateMethod types.String `tfsdk:"create_method"` ReadMethod types.String `tfsdk:"read_method"` UpdateMethod types.String `tfsdk:"update_method"` DestroyMethod types.String `tfsdk:"destroy_method"` CopyKeys types.List `tfsdk:"copy_keys"` ResponseFilter types.Object `tfsdk:"response_filter"` DriftDetection types.Bool `tfsdk:"drift_detection"` WriteReturnsObject types.Bool `tfsdk:"write_returns_object"` CreateReturnsObject types.Bool `tfsdk:"create_returns_object"` XSSIPrefix types.String `tfsdk:"xssi_prefix"` RateLimit types.Float64 `tfsdk:"rate_limit"` TestPath types.String `tfsdk:"test_path"` OAuthClientCredentials types.Object `tfsdk:"oauth_client_credentials"` CertString types.String `tfsdk:"cert_string"` KeyString types.String `tfsdk:"key_string"` CertFile types.String `tfsdk:"cert_file"` KeyFile types.String `tfsdk:"key_file"` }
type RestobjectDataSource ¶
type RestobjectDataSource struct {
// contains filtered or unexported fields
}
RestobjectDataSource defines the data source implementation.
func (*RestobjectDataSource) Configure ¶
func (d *RestobjectDataSource) Configure( _ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
func (*RestobjectDataSource) Metadata ¶
func (d *RestobjectDataSource) Metadata( _ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse, )
func (*RestobjectDataSource) Read ¶
func (d *RestobjectDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*RestobjectDataSource) Schema ¶
func (d *RestobjectDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type RestobjectResource ¶
type RestobjectResource struct {
// contains filtered or unexported fields
}
APIObject is the state holding struct for a restapi_object resource.
func (*RestobjectResource) Configure ¶
func (r *RestobjectResource) Configure( _ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*RestobjectResource) Create ¶
func (r *RestobjectResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*RestobjectResource) Delete ¶
func (r *RestobjectResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*RestobjectResource) ImportState ¶
func (r *RestobjectResource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*RestobjectResource) Metadata ¶
func (r *RestobjectResource) Metadata( _ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*RestobjectResource) Read ¶
func (r *RestobjectResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*RestobjectResource) Schema ¶
func (r *RestobjectResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*RestobjectResource) Update ¶
func (r *RestobjectResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type RestobjectResourceModel ¶
type RestobjectResourceModel struct { Path types.String `tfsdk:"path"` PostPath types.String `tfsdk:"create_path"` GetPath types.String `tfsdk:"read_path"` PutPath types.String `tfsdk:"update_path"` DeletePath types.String `tfsdk:"destroy_path"` CreateMethod types.String `tfsdk:"create_method"` ReadMethod types.String `tfsdk:"read_method"` UpdateMethod types.String `tfsdk:"update_method"` DeleteMethod types.String `tfsdk:"destroy_method"` QueryString types.String `tfsdk:"query_string"` ReadSearch types.Object `tfsdk:"read_search"` ID types.String `tfsdk:"id"` IDAttribute types.String `tfsdk:"id_attribute"` ObjectID types.String `tfsdk:"object_id"` Data types.String `tfsdk:"data"` UpdateData types.String `tfsdk:"update_data"` DestroyData types.String `tfsdk:"destroy_data"` APIResponse types.Map `tfsdk:"api_response"` APIResponseRaw types.String `tfsdk:"api_response_raw"` CreateResponseRaw types.String `tfsdk:"create_response_raw"` }
Click to show internal directories.
Click to hide internal directories.