Documentation
¶
Index ¶
- Constants
- func NewBillingPoliciesDataSource() datasource.DataSource
- func NewBillingPoliciesEnvironmetsDataSource() datasource.DataSource
- func NewBillingPolicyEnvironmentResource() resource.Resource
- func NewBillingPolicyResource() resource.Resource
- type BillingInstrumentDataSourceModel
- type BillingInstrumentDto
- type BillingInstrumentResourceModel
- type BillingPoliciesDataSource
- func (d *BillingPoliciesDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *BillingPoliciesDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *BillingPoliciesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *BillingPoliciesDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type BillingPoliciesEnvironmetsDataSource
- func (d *BillingPoliciesEnvironmetsDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, ...)
- func (d *BillingPoliciesEnvironmetsDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *BillingPoliciesEnvironmetsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *BillingPoliciesEnvironmetsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type BillingPoliciesEnvironmetsListDataSourceModel
- type BillingPoliciesListDataSourceModel
- type BillingPolicyArrayDto
- type BillingPolicyCreateDto
- type BillingPolicyDataSourceModel
- type BillingPolicyDto
- type BillingPolicyEnvironmentResource
- func (r *BillingPolicyEnvironmentResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BillingPolicyEnvironmentResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BillingPolicyEnvironmentResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BillingPolicyEnvironmentResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BillingPolicyEnvironmentResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BillingPolicyEnvironmentResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BillingPolicyEnvironmentResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BillingPolicyEnvironmentResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BillingPolicyEnvironmentResourceModel
- type BillingPolicyEnvironmentsArrayDto
- type BillingPolicyEnvironmentsArrayResponseDto
- type BillingPolicyEnvironmentsDto
- type BillingPolicyResource
- func (r *BillingPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BillingPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BillingPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BillingPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BillingPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BillingPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BillingPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BillingPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type BillingPolicyResourceModel
- type BillingPolicyUpdateDto
- type LicensingClient
- func (client *LicensingClient) AddEnvironmentsToBillingPolicy(ctx context.Context, billingId string, environmentIds []string) error
- func (client *LicensingClient) CreateBillingPolicy(ctx context.Context, policyToCreate BillingPolicyCreateDto) (*BillingPolicyDto, error)
- func (client *LicensingClient) DeleteBillingPolicy(ctx context.Context, billingId string) error
- func (client *LicensingClient) GetBillingPolicies(ctx context.Context) ([]BillingPolicyDto, error)
- func (client *LicensingClient) GetBillingPolicy(ctx context.Context, billingId string) (*BillingPolicyDto, error)
- func (client *LicensingClient) GetEnvironmentsForBillingPolicy(ctx context.Context, billingId string) ([]string, error)
- func (client *LicensingClient) RemoveEnvironmentsToBillingPolicy(ctx context.Context, billingId string, environmentIds []string) error
- func (client *LicensingClient) UpdateBillingPolicy(ctx context.Context, billingId string, policyToUpdate BillingPolicyUpdateDto) (*BillingPolicyDto, error)
- type PrincipalDto
Constants ¶
View Source
const (
API_VERSION = "2022-03-01-preview"
)
Variables ¶
This section is empty.
Functions ¶
func NewBillingPoliciesDataSource ¶
func NewBillingPoliciesDataSource() datasource.DataSource
func NewBillingPoliciesEnvironmetsDataSource ¶
func NewBillingPoliciesEnvironmetsDataSource() datasource.DataSource
Types ¶
type BillingInstrumentDto ¶
type BillingPoliciesDataSource ¶
type BillingPoliciesDataSource struct { LicensingClient LicensingClient ProviderTypeName string TypeName string }
func (*BillingPoliciesDataSource) Configure ¶
func (d *BillingPoliciesDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*BillingPoliciesDataSource) Metadata ¶
func (d *BillingPoliciesDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*BillingPoliciesDataSource) Read ¶
func (d *BillingPoliciesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*BillingPoliciesDataSource) Schema ¶
func (d *BillingPoliciesDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type BillingPoliciesEnvironmetsDataSource ¶
type BillingPoliciesEnvironmetsDataSource struct { LicensingClient LicensingClient ProviderTypeName string TypeName string }
func (*BillingPoliciesEnvironmetsDataSource) Configure ¶
func (d *BillingPoliciesEnvironmetsDataSource) Configure(_ context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*BillingPoliciesEnvironmetsDataSource) Metadata ¶
func (d *BillingPoliciesEnvironmetsDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*BillingPoliciesEnvironmetsDataSource) Read ¶
func (d *BillingPoliciesEnvironmetsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*BillingPoliciesEnvironmetsDataSource) Schema ¶
func (d *BillingPoliciesEnvironmetsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type BillingPoliciesListDataSourceModel ¶
type BillingPoliciesListDataSourceModel struct { BillingPolicies []BillingPolicyDataSourceModel `tfsdk:"billing_policies"` Id types.Int64 `tfsdk:"id"` }
type BillingPolicyArrayDto ¶
type BillingPolicyArrayDto struct {
Value []BillingPolicyDto `json:"value"`
}
type BillingPolicyCreateDto ¶
type BillingPolicyCreateDto struct { Location string `json:"location"` Name string `json:"name"` Status string `json:"status"` BillingInstrument BillingInstrumentDto `json:"billingInstrument"` }
type BillingPolicyDto ¶
type BillingPolicyDto struct { Id string `json:"id"` Name string `json:"name"` TenantType string `json:"type"` Status string `json:"status"` Location string `json:"location"` BillingInstrument BillingInstrumentDto `json:"billingInstrument"` CreatedOn string `json:"createdOn"` CreatedBy PrincipalDto `json:"createdBy"` LastModifiedOn string `json:"lastModifiedOn"` LastModifiedBy PrincipalDto `json:"lastModifiedBy"` }
type BillingPolicyEnvironmentResource ¶
type BillingPolicyEnvironmentResource struct { LicensingClient LicensingClient ProviderTypeName string TypeName string }
func (*BillingPolicyEnvironmentResource) Configure ¶
func (r *BillingPolicyEnvironmentResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BillingPolicyEnvironmentResource) Create ¶
func (r *BillingPolicyEnvironmentResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BillingPolicyEnvironmentResource) Delete ¶
func (r *BillingPolicyEnvironmentResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BillingPolicyEnvironmentResource) ImportState ¶
func (r *BillingPolicyEnvironmentResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*BillingPolicyEnvironmentResource) Metadata ¶
func (r *BillingPolicyEnvironmentResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BillingPolicyEnvironmentResource) Read ¶
func (r *BillingPolicyEnvironmentResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BillingPolicyEnvironmentResource) Schema ¶
func (r *BillingPolicyEnvironmentResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BillingPolicyEnvironmentResource) Update ¶
func (r *BillingPolicyEnvironmentResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BillingPolicyEnvironmentsArrayDto ¶
type BillingPolicyEnvironmentsArrayDto struct {
EnvironmentIds []string `json:"environmentIds"`
}
type BillingPolicyEnvironmentsArrayResponseDto ¶
type BillingPolicyEnvironmentsArrayResponseDto struct {
Value []BillingPolicyEnvironmentsDto `json:"value"`
}
type BillingPolicyResource ¶
type BillingPolicyResource struct { LicensingClient LicensingClient ProviderTypeName string TypeName string }
func (*BillingPolicyResource) Configure ¶
func (r *BillingPolicyResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BillingPolicyResource) Create ¶
func (r *BillingPolicyResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BillingPolicyResource) Delete ¶
func (r *BillingPolicyResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BillingPolicyResource) ImportState ¶
func (r *BillingPolicyResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*BillingPolicyResource) Metadata ¶
func (r *BillingPolicyResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata
func (*BillingPolicyResource) Read ¶
func (r *BillingPolicyResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BillingPolicyResource) Schema ¶
func (r *BillingPolicyResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema
func (*BillingPolicyResource) Update ¶
func (r *BillingPolicyResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BillingPolicyUpdateDto ¶
type LicensingClient ¶
func NewLicensingClient ¶
func NewLicensingClient(api *api.ApiClient) LicensingClient
func (*LicensingClient) AddEnvironmentsToBillingPolicy ¶
func (*LicensingClient) CreateBillingPolicy ¶
func (client *LicensingClient) CreateBillingPolicy(ctx context.Context, policyToCreate BillingPolicyCreateDto) (*BillingPolicyDto, error)
func (*LicensingClient) DeleteBillingPolicy ¶
func (client *LicensingClient) DeleteBillingPolicy(ctx context.Context, billingId string) error
func (*LicensingClient) GetBillingPolicies ¶
func (client *LicensingClient) GetBillingPolicies(ctx context.Context) ([]BillingPolicyDto, error)
func (*LicensingClient) GetBillingPolicy ¶
func (client *LicensingClient) GetBillingPolicy(ctx context.Context, billingId string) (*BillingPolicyDto, error)
func (*LicensingClient) GetEnvironmentsForBillingPolicy ¶
func (*LicensingClient) RemoveEnvironmentsToBillingPolicy ¶
func (*LicensingClient) UpdateBillingPolicy ¶
func (client *LicensingClient) UpdateBillingPolicy(ctx context.Context, billingId string, policyToUpdate BillingPolicyUpdateDto) (*BillingPolicyDto, error)
type PrincipalDto ¶
Click to show internal directories.
Click to hide internal directories.