Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewChargepointsDataSource() datasource.DataSource
- func NewOrganizationalUnitsDataSource() datasource.DataSource
- func NewWebhookResource() resource.Resource
- func NewWebhooksDataSource() datasource.DataSource
- type AuthStruct
- type Chargepoint
- type ChargepointDataSourceModel
- type ChargepointsDataSource
- func (d *ChargepointsDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *ChargepointsDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *ChargepointsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ChargepointsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type ChargepointsDataSourceModel
- type Client
- func (c *Client) CreateWebhook(webhook WebhookConfig) (*WebhookResponse, error)
- func (c *Client) DeleteWebhook(id string) error
- func (c *Client) GetChargepoints() ([]Chargepoint, error)
- func (c *Client) GetOrganizationalUnits() ([]OrganizationalUnit, error)
- func (c *Client) GetWebhook(id string) (*WebhookResponse, error)
- func (c *Client) GetWebhooks() ([]Webhook, error)
- func (c *Client) UpdateWebhook(id string, webhook WebhookConfig) (*WebhookResponse, error)
- type Connector
- type ConnectorDataSourceModel
- type Evse
- type EvseDataSourceModel
- type FinancialDetails
- type FinancialDetailsDataSourceModel
- type Header
- type HeaderModel
- type OrganizationalUnit
- type OrganizationalUnitDataSourceModel
- type OrganizationalUnitsDataSource
- func (d *OrganizationalUnitsDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *OrganizationalUnitsDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *OrganizationalUnitsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *OrganizationalUnitsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type OrganizationalUnitsDataSourceModel
- type Webhook
- type WebhookConfig
- type WebhookDataSourceModel
- type WebhookResourceModel
- type WebhookResponse
- type WebhooksDataSource
- func (d *WebhooksDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *WebhooksDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *WebhooksDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *WebhooksDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChargepointsDataSource ¶
func NewChargepointsDataSource() datasource.DataSource
NewChargepointsDataSource is a helper function to simplify the provider implementation.
func NewOrganizationalUnitsDataSource ¶ added in v0.1.15
func NewOrganizationalUnitsDataSource() datasource.DataSource
func NewWebhookResource ¶
func NewWebhooksDataSource ¶
func NewWebhooksDataSource() datasource.DataSource
Types ¶
type AuthStruct ¶
type Chargepoint ¶
type Chargepoint struct { ID string `json:"id"` ChargepointID string `json:"chargePointId"` DateDeleted string `json:"dateDeleted"` DisplayName string `json:"displayName"` RoamingName string `json:"roamingName"` ChargeBoxSerialNumber string `json:"chargeBoxSerialNumber"` ChargepointVendor string `json:"chargePointVendor"` Evses []Evse `json:"evses"` }
type ChargepointDataSourceModel ¶
type ChargepointDataSourceModel struct { ID types.String `tfsdk:"id"` ChargepointID types.String `tfsdk:"chargepoint_id"` DateDeleted types.String `tfsdk:"date_deleted"` DisplayName types.String `tfsdk:"display_name"` RoamingName types.String `tfsdk:"roaming_name"` ChargeBoxSerialNumber types.String `tfsdk:"charge_box_serial_number"` ChargepointVendor types.String `tfsdk:"chargepoint_vendor"` Evses []EvseDataSourceModel `tfsdk:"evses"` }
type ChargepointsDataSource ¶
type ChargepointsDataSource struct {
// contains filtered or unexported fields
}
ChargepointsDataSource is the data source implementation.
func (*ChargepointsDataSource) Configure ¶
func (d *ChargepointsDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*ChargepointsDataSource) Metadata ¶
func (d *ChargepointsDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*ChargepointsDataSource) Read ¶
func (d *ChargepointsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*ChargepointsDataSource) Schema ¶
func (d *ChargepointsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ChargepointsDataSourceModel ¶
type ChargepointsDataSourceModel struct {
Chargepoints []ChargepointDataSourceModel `tfsdk:"chargepoints"`
}
type Client ¶
type Client struct { HostURL string HTTPClient *http.Client Auth AuthStruct }
func (*Client) CreateWebhook ¶
func (c *Client) CreateWebhook(webhook WebhookConfig) (*WebhookResponse, error)
func (*Client) DeleteWebhook ¶
func (*Client) GetChargepoints ¶
func (c *Client) GetChargepoints() ([]Chargepoint, error)
func (*Client) GetOrganizationalUnits ¶ added in v0.1.15
func (c *Client) GetOrganizationalUnits() ([]OrganizationalUnit, error)
func (*Client) GetWebhook ¶
func (c *Client) GetWebhook(id string) (*WebhookResponse, error)
func (*Client) GetWebhooks ¶
func (*Client) UpdateWebhook ¶
func (c *Client) UpdateWebhook(id string, webhook WebhookConfig) (*WebhookResponse, error)
type Connector ¶
type Connector struct { ID string `json:"id"` OperationalStatus string `json:"operationalStatus"` Standard string `json:"standard"` Format string `json:"format"` PowerType string `json:"powerType"` MaxVoltage int64 `json:"maxVoltage"` MaxAmperage int64 `json:"maxAmperage"` MaxElectricalPower int64 `json:"maxElectricalPower"` }
type ConnectorDataSourceModel ¶
type ConnectorDataSourceModel struct { ID types.String `tfsdk:"id"` OperationalStatus types.String `tfsdk:"operational_status"` Standard types.String `tfsdk:"standard"` Format types.String `tfsdk:"format"` PowerType types.String `tfsdk:"power_type"` MaxVoltage types.Int64 `tfsdk:"max_voltage"` MaxAmperage types.Int64 `tfsdk:"max_amperage"` MaxElectricalPower types.Int64 `tfsdk:"max_electrical_power"` }
type EvseDataSourceModel ¶
type EvseDataSourceModel struct { EvseID types.String `tfsdk:"evse_id"` Connectors []ConnectorDataSourceModel `tfsdk:"connectors"` }
type FinancialDetails ¶ added in v0.1.15
type FinancialDetailsDataSourceModel ¶ added in v0.1.15
type HeaderModel ¶
type OrganizationalUnit ¶ added in v0.1.15
type OrganizationalUnit struct { ID string `json:"id"` ParentID string `json:"parentId"` Name string `json:"name"` Code string `json:"code"` ExternalReference string `json:"external_reference"` GridOwnerReference string `json:"grid_owner_reference"` TenantReference string `json:"tenant_reference"` CustomerReference string `json:"customer_reference"` Address string `json:"address"` State string `json:"state"` Country string `json:"country"` City string `json:"city"` HouseNumber string `json:"house_number"` PostalCode string `json:"postal_code"` HotlinePhoneNumber string `json:"hotline_phone_number"` CompanyEmail string `json:"company_email"` PrimaryContactPerson string `json:"primary_contact_person"` PrimaryContactPersonEmail string `json:"primary_contact_person_email"` DirectPaymentProfileId string `json:"direct_payment_profile_id"` MspOuID string `json:"msp_ou_id"` MspOuName string `json:"msp_ou_name"` MspOuCode string `json:"msp_ou_code"` MspExternalID string `json:"msp_external_id"` FinancialDetails FinancialDetails `json:"financialDetails"` }
type OrganizationalUnitDataSourceModel ¶ added in v0.1.15
type OrganizationalUnitDataSourceModel struct { ID types.String `tfsdk:"id"` ParentID types.String `tfsdk:"parent_id"` Name types.String `tfsdk:"name"` Code types.String `tfsdk:"code"` ExternalReference types.String `tfsdk:"external_reference"` GridOwnerReference types.String `tfsdk:"grid_owner_reference"` TenantReference types.String `tfsdk:"tenant_reference"` CustomerReference types.String `tfsdk:"customer_reference"` Address types.String `tfsdk:"address"` State types.String `tfsdk:"state"` Country types.String `tfsdk:"country"` City types.String `tfsdk:"city"` HouseNumber types.String `tfsdk:"house_number"` PostalCode types.String `tfsdk:"postal_code"` HotlinePhoneNumber types.String `tfsdk:"hotline_phone_number"` CompanyEmail types.String `tfsdk:"company_email"` PrimaryContactPerson types.String `tfsdk:"primary_contact_person"` PrimaryContactPersonEmail types.String `tfsdk:"primary_contact_person_email"` DirectPaymentProfileId types.String `tfsdk:"direct_payment_profile_id"` MspOuID types.String `tfsdk:"msp_ou_id"` MspOuName types.String `tfsdk:"msp_ou_name"` MspOuCode types.String `tfsdk:"msp_ou_code"` MspExternalID types.String `tfsdk:"msp_external_id"` FinancialDetails FinancialDetailsDataSourceModel `tfsdk:"financial_details"` }
type OrganizationalUnitsDataSource ¶ added in v0.1.15
type OrganizationalUnitsDataSource struct {
// contains filtered or unexported fields
}
OrganizationalUnitsDataSource is the data source implementation.
func (*OrganizationalUnitsDataSource) Configure ¶ added in v0.1.15
func (d *OrganizationalUnitsDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*OrganizationalUnitsDataSource) Metadata ¶ added in v0.1.15
func (d *OrganizationalUnitsDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*OrganizationalUnitsDataSource) Read ¶ added in v0.1.15
func (d *OrganizationalUnitsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*OrganizationalUnitsDataSource) Schema ¶ added in v0.1.15
func (d *OrganizationalUnitsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type OrganizationalUnitsDataSourceModel ¶ added in v0.1.15
type OrganizationalUnitsDataSourceModel struct {
OrganizationalUnits []OrganizationalUnitDataSourceModel `tfsdk:"organizational_units"`
}
type WebhookConfig ¶
type WebhookDataSourceModel ¶
type WebhookResourceModel ¶
type WebhookResourceModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` OUCode types.String `tfsdk:"ou_code"` Enabled types.Bool `tfsdk:"enabled"` EventTypes []types.String `tfsdk:"event_types"` URL types.String `tfsdk:"url"` Headers types.Map `tfsdk:"headers"` Created types.String `tfsdk:"created"` Updated types.String `tfsdk:"updated"` }
type WebhookResponse ¶
type WebhookResponse struct { ID string `json:"id"` Name string `json:"name"` OUCode string `json:"ouCode"` Enabled bool `json:"enabled"` EventTypes []string `json:"eventTypes"` URL string `json:"url"` Headers []Header `json:"headers"` Created string `json:"created"` Updated string `json:"updated"` }
type WebhooksDataSource ¶
type WebhooksDataSource struct {
// contains filtered or unexported fields
}
WebhooksDataSource is the data source implementation.
func (*WebhooksDataSource) Configure ¶
func (d *WebhooksDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*WebhooksDataSource) Metadata ¶
func (d *WebhooksDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*WebhooksDataSource) Read ¶
func (d *WebhooksDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*WebhooksDataSource) Schema ¶
func (d *WebhooksDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.