Documentation ¶
Index ¶
- func GetProjectDataSourceAttributes() (map[string]schema.Attribute, error)
- func GetProjectResourceAttributes() (map[string]schema.Attribute, error)
- func GetProjectsDataSourceSchema() *schema.Schema
- func NewProjectDataSource() datasource.DataSource
- func NewProjectDataSourceState() framework.DataSourceState
- func NewProjectResource() resource.Resource
- func NewProjectResourceModel() framework.ResourceState
- func NewProjectsDataSource() datasource.DataSource
- func NewProjectsDataSourceState() framework.DataSourceState
- type ProjectFilterModel
- type ProjectNameModel
- type ProjectResourceModel
- func (state *ProjectResourceModel) CheckReady(ctx context.Context, client openapi.ClientInterface) error
- func (state *ProjectResourceModel) Create(ctx context.Context, client openapi.ClientInterface) error
- func (state *ProjectResourceModel) Delete(ctx context.Context, client openapi.ClientInterface) error
- func (state *ProjectResourceModel) Read(ctx context.Context, client openapi.ClientInterface) error
- func (state *ProjectResourceModel) Reset()
- func (state *ProjectResourceModel) SetId(id string) error
- func (state *ProjectResourceModel) Update(ctx context.Context, client openapi.ClientInterface, ...) error
- type ProjectsDataSourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetProjectDataSourceAttributes ¶ added in v1.1.0
func GetProjectResourceAttributes ¶ added in v1.1.0
func GetProjectsDataSourceSchema ¶
GetProjectsDataSourceSchema returns the schema for the projects (plural) data source. This has to be provided explicitly because there is no schema in the OpenAPI spec for the REST API that corresponds to it.
func NewProjectDataSource ¶
func NewProjectDataSource() datasource.DataSource
func NewProjectDataSourceState ¶
func NewProjectDataSourceState() framework.DataSourceState
func NewProjectResource ¶
func NewProjectResourceModel ¶
func NewProjectResourceModel() framework.ResourceState
func NewProjectsDataSource ¶
func NewProjectsDataSource() datasource.DataSource
func NewProjectsDataSourceState ¶
func NewProjectsDataSourceState() framework.DataSourceState
Types ¶
type ProjectFilterModel ¶
type ProjectNameModel ¶
type ProjectNameModel struct { Organization string `tfsdk:"organization" hcl:"organization" cty:"organization"` Name string `tfsdk:"name" hcl:"name" cty:"name"` }
func GetProjectDataSourceResponse ¶
func GetProjectDataSourceResponse(projects []string) ([]ProjectNameModel, error)
type ProjectResourceModel ¶
type ProjectResourceModel openapi.ProjectModel
func (*ProjectResourceModel) CheckReady ¶
func (state *ProjectResourceModel) CheckReady(ctx context.Context, client openapi.ClientInterface) error
func (*ProjectResourceModel) Create ¶
func (state *ProjectResourceModel) Create(ctx context.Context, client openapi.ClientInterface) error
func (*ProjectResourceModel) Delete ¶
func (state *ProjectResourceModel) Delete(ctx context.Context, client openapi.ClientInterface) error
func (*ProjectResourceModel) Read ¶
func (state *ProjectResourceModel) Read(ctx context.Context, client openapi.ClientInterface) error
func (*ProjectResourceModel) Reset ¶
func (state *ProjectResourceModel) Reset()
func (*ProjectResourceModel) SetId ¶
func (state *ProjectResourceModel) SetId(id string) error
func (*ProjectResourceModel) Update ¶
func (state *ProjectResourceModel) Update(ctx context.Context, client openapi.ClientInterface, currentState framework.ResourceState) error
type ProjectsDataSourceModel ¶
type ProjectsDataSourceModel struct { Filter *ProjectFilterModel `tfsdk:"filter" hcl:"filter" cty:"filter"` Projects []ProjectNameModel `tfsdk:"projects" hcl:"projects" cty:"projects"` }
func (*ProjectsDataSourceModel) Read ¶
func (state *ProjectsDataSourceModel) Read(ctx context.Context, client openapi.ClientInterface) error
Read implements datasource.DataSource.
Click to show internal directories.
Click to hide internal directories.