Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewDartVersionsDataSource() datasource.DataSource
- func NewServiceConfigDataSource() datasource.DataSource
- func NewServiceConfigResource() resource.Resource
- func NewServiceProjectResource() resource.Resource
- func NewServiceResource() resource.Resource
- func NewServiceRolloutResource() resource.Resource
- func NewServiceTenancyUnitResource() resource.Resource
- type DartVersionsDataSource
- func (d *DartVersionsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (s *DartVersionsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DartVersionsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (s *DartVersionsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DartVersionsDataSourceModel
- type PolicyBinding
- type ServiceConfigDataSource
- func (d *ServiceConfigDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (s *ServiceConfigDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *ServiceConfigDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (s *ServiceConfigDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ServiceConfigDataSourceModel
- type ServiceConfigResource
- func (r *ServiceConfigResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ServiceConfigResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ServiceConfigResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ServiceConfigResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ServiceConfigResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ServiceConfigResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ServiceConfigResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ServiceConfigResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ServiceConfigResourceModel
- type ServiceProjectConfigBillingConfigModel
- type ServiceProjectConfigModel
- type ServiceProjectConfigServiceAccountConfigModel
- type ServiceProjectConfigTenantProjectPolicyModel
- type ServiceProjectResource
- func (r *ServiceProjectResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ServiceProjectResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ServiceProjectResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ServiceProjectResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ServiceProjectResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ServiceProjectResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ServiceProjectResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ServiceProjectResourceModel
- type ServiceResource
- func (r *ServiceResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ServiceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ServiceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ServiceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ServiceResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ServiceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ServiceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ServiceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ServiceResourceModel
- type ServiceRolloutResource
- func (r *ServiceRolloutResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ServiceRolloutResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ServiceRolloutResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ServiceRolloutResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ServiceRolloutResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ServiceRolloutResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ServiceRolloutResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ServiceRolloutResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ServiceRolloutResourceModel
- type ServiceTenancyUnitModel
- type ServiceTenancyUnitResource
- func (r *ServiceTenancyUnitResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ServiceTenancyUnitResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ServiceTenancyUnitResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ServiceTenancyUnitResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ServiceTenancyUnitResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ServiceTenancyUnitResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ServiceTenancyUnitResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ServiceTenancyUnitResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type TenantResource
- type UtilsProvider
- func (p *UtilsProvider) ConfigValidators(ctx context.Context) []provider.ConfigValidator
- func (p *UtilsProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *UtilsProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *UtilsProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *UtilsProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *UtilsProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type UtilsProviderConfig
- type UtilsProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDartVersionsDataSource ¶
func NewDartVersionsDataSource() datasource.DataSource
func NewServiceConfigDataSource ¶
func NewServiceConfigDataSource() datasource.DataSource
func NewServiceResource ¶
Types ¶
type DartVersionsDataSource ¶
type DartVersionsDataSource struct{}
func (*DartVersionsDataSource) Configure ¶
func (d *DartVersionsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DartVersionsDataSource) Metadata ¶
func (s *DartVersionsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata implements datasource.DataSource.
func (*DartVersionsDataSource) Read ¶
func (d *DartVersionsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DartVersionsDataSource) Schema ¶
func (s *DartVersionsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema implements datasource.DataSource.
type PolicyBinding ¶
func (PolicyBinding) AttributeTypes ¶
func (PolicyBinding) AttributeTypes() map[string]attr.Type
type ServiceConfigDataSource ¶
type ServiceConfigDataSource struct {
ServiceManagerClient *servicemanagement.ServiceManagerClient
}
func (*ServiceConfigDataSource) Configure ¶
func (d *ServiceConfigDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ServiceConfigDataSource) Metadata ¶
func (s *ServiceConfigDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata implements datasource.DataSource.
func (*ServiceConfigDataSource) Read ¶
func (d *ServiceConfigDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read implements datasource.DataSource.
func (*ServiceConfigDataSource) Schema ¶
func (s *ServiceConfigDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema implements datasource.DataSource.
type ServiceConfigResource ¶
type ServiceConfigResource struct {
UtilsProviderConfig
}
ServiceResource defines the resource implementation.
func (*ServiceConfigResource) Configure ¶
func (r *ServiceConfigResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ServiceConfigResource) Create ¶
func (r *ServiceConfigResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource.
func (*ServiceConfigResource) Delete ¶
func (r *ServiceConfigResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource.
func (*ServiceConfigResource) ImportState ¶
func (r *ServiceConfigResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState implements resource.ResourceWithImportState.
func (*ServiceConfigResource) Metadata ¶
func (r *ServiceConfigResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ServiceConfigResource) Read ¶
func (r *ServiceConfigResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read implements resource.Resource.
func (*ServiceConfigResource) Schema ¶
func (r *ServiceConfigResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ServiceConfigResource) Update ¶
func (r *ServiceConfigResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update implements resource.Resource.
type ServiceProjectConfigBillingConfigModel ¶
type ServiceProjectConfigBillingConfigModel struct {
BillingAccount types.String `tfsdk:"billing_account"`
}
func (ServiceProjectConfigBillingConfigModel) AttributeTypes ¶
func (ServiceProjectConfigBillingConfigModel) AttributeTypes() map[string]attr.Type
type ServiceProjectConfigModel ¶
type ServiceProjectConfigModel struct { Folder types.String `tfsdk:"folder"` TenantProjectPolicy types.Object `tfsdk:"tenant_project_policy"` Labels types.Map `tfsdk:"labels"` Services types.List `tfsdk:"services"` BillingConfig types.Object `tfsdk:"billing_config"` ServiceAccountConfig types.Object `tfsdk:"service_account_config"` }
func (ServiceProjectConfigModel) AttributeTypes ¶
func (ServiceProjectConfigModel) AttributeTypes() map[string]attr.Type
type ServiceProjectConfigServiceAccountConfigModel ¶
type ServiceProjectConfigServiceAccountConfigModel struct { AccountID types.String `tfsdk:"account_id"` TenantProjectRoles types.List `tfsdk:"tenant_project_roles"` }
func (ServiceProjectConfigServiceAccountConfigModel) AttributeTypes ¶
func (ServiceProjectConfigServiceAccountConfigModel) AttributeTypes() map[string]attr.Type
type ServiceProjectConfigTenantProjectPolicyModel ¶
type ServiceProjectConfigTenantProjectPolicyModel struct {
PolicyBindings types.List `tfsdk:"policy_bindings"`
}
func (ServiceProjectConfigTenantProjectPolicyModel) AttributeTypes ¶
func (ServiceProjectConfigTenantProjectPolicyModel) AttributeTypes() map[string]attr.Type
type ServiceProjectResource ¶
type ServiceProjectResource struct {
UtilsProviderConfig
}
ServiceProjectResource defines the resource implementation.
func (*ServiceProjectResource) Configure ¶
func (r *ServiceProjectResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ServiceProjectResource) Create ¶
func (r *ServiceProjectResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ServiceProjectResource) Delete ¶
func (r *ServiceProjectResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ServiceProjectResource) Metadata ¶
func (r *ServiceProjectResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ServiceProjectResource) Read ¶
func (r *ServiceProjectResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ServiceProjectResource) Schema ¶
func (r *ServiceProjectResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ServiceProjectResource) Update ¶
func (r *ServiceProjectResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ServiceProjectResourceModel ¶
type ServiceProjectResourceModel struct { ID types.String `tfsdk:"id"` TenancyUnit types.String `tfsdk:"tenancy_unit"` Tag types.String `tfsdk:"tag"` ProjectConfig types.Object `tfsdk:"project_config"` // Computed Status types.String `tfsdk:"status"` }
ServiceProjectResourceModel describes the resource data model.
type ServiceResource ¶
type ServiceResource struct {
UtilsProviderConfig
}
ServiceResource defines the resource implementation.
func (*ServiceResource) Configure ¶
func (r *ServiceResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ServiceResource) Create ¶
func (r *ServiceResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ServiceResource) Delete ¶
func (r *ServiceResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ServiceResource) ImportState ¶
func (r *ServiceResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ServiceResource) Metadata ¶
func (r *ServiceResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ServiceResource) Read ¶
func (r *ServiceResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ServiceResource) Schema ¶
func (r *ServiceResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ServiceResource) Update ¶
func (r *ServiceResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ServiceResourceModel ¶
type ServiceResourceModel struct { ServiceName types.String `tfsdk:"service_name"` ProducerProjectId types.String `tfsdk:"producer_project_id"` DefaultTenancyUnit types.String `tfsdk:"default_tenancy_unit"` }
ServiceResource Model describes the resource data model.
type ServiceRolloutResource ¶
type ServiceRolloutResource struct {
UtilsProviderConfig
}
ServiceResource defines the resource implementation.
func (*ServiceRolloutResource) Configure ¶
func (r *ServiceRolloutResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ServiceRolloutResource) Create ¶
func (r *ServiceRolloutResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource.
func (*ServiceRolloutResource) Delete ¶
func (r *ServiceRolloutResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource.
func (*ServiceRolloutResource) ImportState ¶
func (r *ServiceRolloutResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ServiceRolloutResource) Metadata ¶
func (r *ServiceRolloutResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ServiceRolloutResource) Read ¶
func (r *ServiceRolloutResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read implements resource.Resource.
func (*ServiceRolloutResource) Schema ¶
func (r *ServiceRolloutResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema implements resource.Resource.
func (*ServiceRolloutResource) Update ¶
func (r *ServiceRolloutResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update implements resource.Resource.
type ServiceTenancyUnitModel ¶
type ServiceTenancyUnitModel struct { ID types.String `tfsdk:"id"` ServiceName types.String `tfsdk:"service_name"` Consumer types.String `tfsdk:"consumer"` }
ServiceTenancyUnitModel describes the resource data model.
type ServiceTenancyUnitResource ¶
type ServiceTenancyUnitResource struct {
UtilsProviderConfig
}
ServiceTenancyUnitResource defines the resource implementation.
func (*ServiceTenancyUnitResource) Configure ¶
func (r *ServiceTenancyUnitResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ServiceTenancyUnitResource) Create ¶
func (r *ServiceTenancyUnitResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ServiceTenancyUnitResource) Delete ¶
func (r *ServiceTenancyUnitResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ServiceTenancyUnitResource) ImportState ¶
func (r *ServiceTenancyUnitResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ServiceTenancyUnitResource) Metadata ¶
func (r *ServiceTenancyUnitResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ServiceTenancyUnitResource) Read ¶
func (r *ServiceTenancyUnitResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ServiceTenancyUnitResource) Schema ¶
func (r *ServiceTenancyUnitResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ServiceTenancyUnitResource) Update ¶
func (r *ServiceTenancyUnitResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type TenantResource ¶
type TenantResource serviceconsumermanagement.TenantResource
func (TenantResource) ServiceAccountEmail ¶
func (r TenantResource) ServiceAccountEmail() string
type UtilsProvider ¶
type UtilsProvider struct {
// contains filtered or unexported fields
}
UtilsProvider defines the provider implementation.
func (*UtilsProvider) ConfigValidators ¶
func (p *UtilsProvider) ConfigValidators(ctx context.Context) []provider.ConfigValidator
func (*UtilsProvider) Configure ¶
func (p *UtilsProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*UtilsProvider) DataSources ¶
func (p *UtilsProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*UtilsProvider) Metadata ¶
func (p *UtilsProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*UtilsProvider) Resources ¶
func (p *UtilsProvider) Resources(ctx context.Context) []func() resource.Resource
func (*UtilsProvider) Schema ¶
func (p *UtilsProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type UtilsProviderConfig ¶
type UtilsProviderConfig struct { // ServiceManagerClient is the authenticated client for `servicemanagement.googleapis.com`. ServiceManagerClient *servicemanagement.ServiceManagerClient // TenantClient is the authenticated client for `serviceconsumermanagement.googleapis.com`. TenantClient *serviceconsumermanagement.APIService // OperationsClient is the authenticated operations client for `servicemanagement.googleapis.com`. OperationsClient *lrauto.OperationsClient }
UtilsProviderConfig holds the necessary GCP configuration for the provider.
type UtilsProviderModel ¶
type UtilsProviderModel struct { // ProjectID is the GCP project to use for requests. ProjectID types.String `tfsdk:"project_id"` // Optional. AccessToken is the optional GCP access token. AccessToken types.String `tfsdk:"access_token"` }
UtilsProviderModel describes the provider data model.