updated resources
This commit is contained in:
parent
cc46ee8974
commit
f6f8dc17c1
3 changed files with 8 additions and 10 deletions
|
|
@ -27,8 +27,6 @@ type AppDataSourceModel struct {
|
|||
Organization types.String `tfsdk:"organization"`
|
||||
Version types.String `tfsdk:"version"`
|
||||
Region types.String `tfsdk:"region"`
|
||||
Description types.String `tfsdk:"description"`
|
||||
Status types.String `tfsdk:"status"`
|
||||
}
|
||||
|
||||
func (d *AppDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
|
||||
|
|
@ -106,8 +104,6 @@ func (d *AppDataSource) Read(ctx context.Context, req datasource.ReadRequest, re
|
|||
data.Name = types.StringValue(app.Key.Name)
|
||||
data.Organization = types.StringValue(app.Key.Organization)
|
||||
data.Version = types.StringValue(app.Key.Version)
|
||||
data.Description = types.StringValue("")
|
||||
data.Status = types.StringValue("")
|
||||
|
||||
tflog.Trace(ctx, "read an app data source")
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ type AppInstanceDataSourceModel struct {
|
|||
CloudletOrganization types.String `tfsdk:"cloudlet_organization"`
|
||||
Region types.String `tfsdk:"region"`
|
||||
AppId types.String `tfsdk:"app_id"`
|
||||
Status types.String `tfsdk:"status"`
|
||||
}
|
||||
|
||||
func (d *AppInstanceDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
|
||||
|
|
@ -117,7 +116,6 @@ func (d *AppInstanceDataSource) Read(ctx context.Context, req datasource.ReadReq
|
|||
|
||||
data.Name = types.StringValue(appInstance.Key.Name)
|
||||
data.AppId = types.StringValue(appInstance.AppKey.Name)
|
||||
data.Status = types.StringValue(appInstance.State)
|
||||
|
||||
tflog.Trace(ctx, "read an app instance data source")
|
||||
|
||||
|
|
|
|||
|
|
@ -79,19 +79,23 @@ func (r *AppInstanceResource) Schema(ctx context.Context, req resource.SchemaReq
|
|||
},
|
||||
"app_name": schema.StringAttribute{
|
||||
MarkdownDescription: "Application name",
|
||||
Required: true,
|
||||
Required: false,
|
||||
Optional: true,
|
||||
},
|
||||
"app_version": schema.StringAttribute{
|
||||
MarkdownDescription: "Application version",
|
||||
Required: true,
|
||||
Required: false,
|
||||
Optional: true,
|
||||
},
|
||||
"app_organization": schema.StringAttribute{
|
||||
MarkdownDescription: "Application organization",
|
||||
Required: true,
|
||||
Required: false,
|
||||
Optional: true,
|
||||
},
|
||||
"flavor_name": schema.StringAttribute{
|
||||
MarkdownDescription: "Flavor name",
|
||||
Required: true,
|
||||
Required: false,
|
||||
Optional: true,
|
||||
},
|
||||
"state": schema.StringAttribute{
|
||||
MarkdownDescription: "AppInstance state",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue