diff --git a/tfprotov5/internal/fromproto/list_resource.go b/tfprotov5/internal/fromproto/list_resource.go index df1644222..a9b5759a5 100644 --- a/tfprotov5/internal/fromproto/list_resource.go +++ b/tfprotov5/internal/fromproto/list_resource.go @@ -27,7 +27,9 @@ func ValidateListResourceConfigRequest(in *tfplugin5.ValidateListResourceConfig_ } return &tfprotov5.ValidateListResourceConfigRequest{ - TypeName: in.TypeName, - Config: DynamicValue(in.Config), + TypeName: in.TypeName, + Config: DynamicValue(in.Config), + IncludeResourceObject: DynamicValue(in.IncludeResourceObject), + Limit: DynamicValue(in.Limit), } } diff --git a/tfprotov5/internal/tfplugin5/tfplugin5.pb.go b/tfprotov5/internal/tfplugin5/tfplugin5.pb.go index 9990d9626..8dd8e4b8c 100644 --- a/tfprotov5/internal/tfplugin5/tfplugin5.pb.go +++ b/tfprotov5/internal/tfplugin5/tfplugin5.pb.go @@ -6494,11 +6494,13 @@ func (x *ListResource_Event) GetDiagnostic() []*Diagnostic { } type ValidateListResourceConfig_Request struct { - state protoimpl.MessageState `protogen:"open.v1"` - TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` - Config *DynamicValue `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + Config *DynamicValue `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + IncludeResourceObject *DynamicValue `protobuf:"bytes,3,opt,name=include_resource_object,json=includeResourceObject,proto3" json:"include_resource_object,omitempty"` + Limit *DynamicValue `protobuf:"bytes,4,opt,name=limit,proto3" json:"limit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ValidateListResourceConfig_Request) Reset() { @@ -6545,6 +6547,20 @@ func (x *ValidateListResourceConfig_Request) GetConfig() *DynamicValue { return nil } +func (x *ValidateListResourceConfig_Request) GetIncludeResourceObject() *DynamicValue { + if x != nil { + return x.IncludeResourceObject + } + return nil +} + +func (x *ValidateListResourceConfig_Request) GetLimit() *DynamicValue { + if x != nil { + return x.Limit + } + return nil +} + type ValidateListResourceConfig_Response struct { state protoimpl.MessageState `protogen:"open.v1"` Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` @@ -7645,11 +7661,13 @@ const file_tfplugin5_proto_rawDesc = "" + "\n" + "diagnostic\x18\x04 \x03(\v2\x15.tfplugin5.DiagnosticR\n" + "diagnosticB\x12\n" + - "\x10_resource_object\"\xba\x01\n" + - "\x1aValidateListResourceConfig\x1aW\n" + + "\x10_resource_object\"\xbb\x02\n" + + "\x1aValidateListResourceConfig\x1a\xd7\x01\n" + "\aRequest\x12\x1b\n" + "\ttype_name\x18\x01 \x01(\tR\btypeName\x12/\n" + - "\x06config\x18\x02 \x01(\v2\x17.tfplugin5.DynamicValueR\x06config\x1aC\n" + + "\x06config\x18\x02 \x01(\v2\x17.tfplugin5.DynamicValueR\x06config\x12O\n" + + "\x17include_resource_object\x18\x03 \x01(\v2\x17.tfplugin5.DynamicValueR\x15includeResourceObject\x12-\n" + + "\x05limit\x18\x04 \x01(\v2\x17.tfplugin5.DynamicValueR\x05limit\x1aC\n" + "\bResponse\x127\n" + "\vdiagnostics\x18\x01 \x03(\v2\x15.tfplugin5.DiagnosticR\vdiagnostics\"\x85\a\n" + "\n" + @@ -8036,96 +8054,98 @@ var file_tfplugin5_proto_depIdxs = []int32{ 5, // 141: tfplugin5.ListResource.Event.resource_object:type_name -> tfplugin5.DynamicValue 6, // 142: tfplugin5.ListResource.Event.diagnostic:type_name -> tfplugin5.Diagnostic 5, // 143: tfplugin5.ValidateListResourceConfig.Request.config:type_name -> tfplugin5.DynamicValue - 6, // 144: tfplugin5.ValidateListResourceConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 130, // 145: tfplugin5.PlanAction.Request.linked_resources:type_name -> tfplugin5.PlanAction.Request.LinkedResource - 5, // 146: tfplugin5.PlanAction.Request.config:type_name -> tfplugin5.DynamicValue - 15, // 147: tfplugin5.PlanAction.Request.client_capabilities:type_name -> tfplugin5.ClientCapabilities - 131, // 148: tfplugin5.PlanAction.Response.linked_resources:type_name -> tfplugin5.PlanAction.Response.LinkedResource - 6, // 149: tfplugin5.PlanAction.Response.diagnostics:type_name -> tfplugin5.Diagnostic - 18, // 150: tfplugin5.PlanAction.Response.deferred:type_name -> tfplugin5.Deferred - 5, // 151: tfplugin5.PlanAction.Request.LinkedResource.prior_state:type_name -> tfplugin5.DynamicValue - 5, // 152: tfplugin5.PlanAction.Request.LinkedResource.planned_state:type_name -> tfplugin5.DynamicValue - 5, // 153: tfplugin5.PlanAction.Request.LinkedResource.config:type_name -> tfplugin5.DynamicValue - 13, // 154: tfplugin5.PlanAction.Request.LinkedResource.prior_identity:type_name -> tfplugin5.ResourceIdentityData - 5, // 155: tfplugin5.PlanAction.Response.LinkedResource.planned_state:type_name -> tfplugin5.DynamicValue - 13, // 156: tfplugin5.PlanAction.Response.LinkedResource.planned_identity:type_name -> tfplugin5.ResourceIdentityData - 134, // 157: tfplugin5.InvokeAction.Request.linked_resources:type_name -> tfplugin5.InvokeAction.Request.LinkedResource - 5, // 158: tfplugin5.InvokeAction.Request.config:type_name -> tfplugin5.DynamicValue - 135, // 159: tfplugin5.InvokeAction.Event.progress:type_name -> tfplugin5.InvokeAction.Event.Progress - 136, // 160: tfplugin5.InvokeAction.Event.completed:type_name -> tfplugin5.InvokeAction.Event.Completed - 5, // 161: tfplugin5.InvokeAction.Request.LinkedResource.prior_state:type_name -> tfplugin5.DynamicValue - 5, // 162: tfplugin5.InvokeAction.Request.LinkedResource.planned_state:type_name -> tfplugin5.DynamicValue - 5, // 163: tfplugin5.InvokeAction.Request.LinkedResource.config:type_name -> tfplugin5.DynamicValue - 13, // 164: tfplugin5.InvokeAction.Request.LinkedResource.planned_identity:type_name -> tfplugin5.ResourceIdentityData - 137, // 165: tfplugin5.InvokeAction.Event.Completed.linked_resources:type_name -> tfplugin5.InvokeAction.Event.Completed.LinkedResource - 6, // 166: tfplugin5.InvokeAction.Event.Completed.diagnostics:type_name -> tfplugin5.Diagnostic - 5, // 167: tfplugin5.InvokeAction.Event.Completed.LinkedResource.new_state:type_name -> tfplugin5.DynamicValue - 13, // 168: tfplugin5.InvokeAction.Event.Completed.LinkedResource.new_identity:type_name -> tfplugin5.ResourceIdentityData - 61, // 169: tfplugin5.Provider.GetMetadata:input_type -> tfplugin5.GetMetadata.Request - 69, // 170: tfplugin5.Provider.GetSchema:input_type -> tfplugin5.GetProviderSchema.Request - 119, // 171: tfplugin5.Provider.GetResourceIdentitySchemas:input_type -> tfplugin5.GetResourceIdentitySchemas.Request - 77, // 172: tfplugin5.Provider.PrepareProviderConfig:input_type -> tfplugin5.PrepareProviderConfig.Request - 81, // 173: tfplugin5.Provider.ValidateResourceTypeConfig:input_type -> tfplugin5.ValidateResourceTypeConfig.Request - 83, // 174: tfplugin5.Provider.ValidateDataSourceConfig:input_type -> tfplugin5.ValidateDataSourceConfig.Request - 79, // 175: tfplugin5.Provider.UpgradeResourceState:input_type -> tfplugin5.UpgradeResourceState.Request - 122, // 176: tfplugin5.Provider.UpgradeResourceIdentity:input_type -> tfplugin5.UpgradeResourceIdentity.Request - 85, // 177: tfplugin5.Provider.Configure:input_type -> tfplugin5.Configure.Request - 87, // 178: tfplugin5.Provider.ReadResource:input_type -> tfplugin5.ReadResource.Request - 89, // 179: tfplugin5.Provider.PlanResourceChange:input_type -> tfplugin5.PlanResourceChange.Request - 91, // 180: tfplugin5.Provider.ApplyResourceChange:input_type -> tfplugin5.ApplyResourceChange.Request - 93, // 181: tfplugin5.Provider.ImportResourceState:input_type -> tfplugin5.ImportResourceState.Request - 96, // 182: tfplugin5.Provider.MoveResourceState:input_type -> tfplugin5.MoveResourceState.Request - 98, // 183: tfplugin5.Provider.ReadDataSource:input_type -> tfplugin5.ReadDataSource.Request - 111, // 184: tfplugin5.Provider.ValidateEphemeralResourceConfig:input_type -> tfplugin5.ValidateEphemeralResourceConfig.Request - 113, // 185: tfplugin5.Provider.OpenEphemeralResource:input_type -> tfplugin5.OpenEphemeralResource.Request - 115, // 186: tfplugin5.Provider.RenewEphemeralResource:input_type -> tfplugin5.RenewEphemeralResource.Request - 117, // 187: tfplugin5.Provider.CloseEphemeralResource:input_type -> tfplugin5.CloseEphemeralResource.Request - 124, // 188: tfplugin5.Provider.ListResource:input_type -> tfplugin5.ListResource.Request - 126, // 189: tfplugin5.Provider.ValidateListResourceConfig:input_type -> tfplugin5.ValidateListResourceConfig.Request - 106, // 190: tfplugin5.Provider.GetFunctions:input_type -> tfplugin5.GetFunctions.Request - 109, // 191: tfplugin5.Provider.CallFunction:input_type -> tfplugin5.CallFunction.Request - 128, // 192: tfplugin5.Provider.PlanAction:input_type -> tfplugin5.PlanAction.Request - 132, // 193: tfplugin5.Provider.InvokeAction:input_type -> tfplugin5.InvokeAction.Request - 48, // 194: tfplugin5.Provider.Stop:input_type -> tfplugin5.Stop.Request - 100, // 195: tfplugin5.Provisioner.GetSchema:input_type -> tfplugin5.GetProvisionerSchema.Request - 102, // 196: tfplugin5.Provisioner.ValidateProvisionerConfig:input_type -> tfplugin5.ValidateProvisionerConfig.Request - 104, // 197: tfplugin5.Provisioner.ProvisionResource:input_type -> tfplugin5.ProvisionResource.Request - 48, // 198: tfplugin5.Provisioner.Stop:input_type -> tfplugin5.Stop.Request - 62, // 199: tfplugin5.Provider.GetMetadata:output_type -> tfplugin5.GetMetadata.Response - 70, // 200: tfplugin5.Provider.GetSchema:output_type -> tfplugin5.GetProviderSchema.Response - 120, // 201: tfplugin5.Provider.GetResourceIdentitySchemas:output_type -> tfplugin5.GetResourceIdentitySchemas.Response - 78, // 202: tfplugin5.Provider.PrepareProviderConfig:output_type -> tfplugin5.PrepareProviderConfig.Response - 82, // 203: tfplugin5.Provider.ValidateResourceTypeConfig:output_type -> tfplugin5.ValidateResourceTypeConfig.Response - 84, // 204: tfplugin5.Provider.ValidateDataSourceConfig:output_type -> tfplugin5.ValidateDataSourceConfig.Response - 80, // 205: tfplugin5.Provider.UpgradeResourceState:output_type -> tfplugin5.UpgradeResourceState.Response - 123, // 206: tfplugin5.Provider.UpgradeResourceIdentity:output_type -> tfplugin5.UpgradeResourceIdentity.Response - 86, // 207: tfplugin5.Provider.Configure:output_type -> tfplugin5.Configure.Response - 88, // 208: tfplugin5.Provider.ReadResource:output_type -> tfplugin5.ReadResource.Response - 90, // 209: tfplugin5.Provider.PlanResourceChange:output_type -> tfplugin5.PlanResourceChange.Response - 92, // 210: tfplugin5.Provider.ApplyResourceChange:output_type -> tfplugin5.ApplyResourceChange.Response - 95, // 211: tfplugin5.Provider.ImportResourceState:output_type -> tfplugin5.ImportResourceState.Response - 97, // 212: tfplugin5.Provider.MoveResourceState:output_type -> tfplugin5.MoveResourceState.Response - 99, // 213: tfplugin5.Provider.ReadDataSource:output_type -> tfplugin5.ReadDataSource.Response - 112, // 214: tfplugin5.Provider.ValidateEphemeralResourceConfig:output_type -> tfplugin5.ValidateEphemeralResourceConfig.Response - 114, // 215: tfplugin5.Provider.OpenEphemeralResource:output_type -> tfplugin5.OpenEphemeralResource.Response - 116, // 216: tfplugin5.Provider.RenewEphemeralResource:output_type -> tfplugin5.RenewEphemeralResource.Response - 118, // 217: tfplugin5.Provider.CloseEphemeralResource:output_type -> tfplugin5.CloseEphemeralResource.Response - 125, // 218: tfplugin5.Provider.ListResource:output_type -> tfplugin5.ListResource.Event - 127, // 219: tfplugin5.Provider.ValidateListResourceConfig:output_type -> tfplugin5.ValidateListResourceConfig.Response - 107, // 220: tfplugin5.Provider.GetFunctions:output_type -> tfplugin5.GetFunctions.Response - 110, // 221: tfplugin5.Provider.CallFunction:output_type -> tfplugin5.CallFunction.Response - 129, // 222: tfplugin5.Provider.PlanAction:output_type -> tfplugin5.PlanAction.Response - 133, // 223: tfplugin5.Provider.InvokeAction:output_type -> tfplugin5.InvokeAction.Event - 49, // 224: tfplugin5.Provider.Stop:output_type -> tfplugin5.Stop.Response - 101, // 225: tfplugin5.Provisioner.GetSchema:output_type -> tfplugin5.GetProvisionerSchema.Response - 103, // 226: tfplugin5.Provisioner.ValidateProvisionerConfig:output_type -> tfplugin5.ValidateProvisionerConfig.Response - 105, // 227: tfplugin5.Provisioner.ProvisionResource:output_type -> tfplugin5.ProvisionResource.Response - 49, // 228: tfplugin5.Provisioner.Stop:output_type -> tfplugin5.Stop.Response - 199, // [199:229] is the sub-list for method output_type - 169, // [169:199] is the sub-list for method input_type - 169, // [169:169] is the sub-list for extension type_name - 169, // [169:169] is the sub-list for extension extendee - 0, // [0:169] is the sub-list for field type_name + 5, // 144: tfplugin5.ValidateListResourceConfig.Request.include_resource_object:type_name -> tfplugin5.DynamicValue + 5, // 145: tfplugin5.ValidateListResourceConfig.Request.limit:type_name -> tfplugin5.DynamicValue + 6, // 146: tfplugin5.ValidateListResourceConfig.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 130, // 147: tfplugin5.PlanAction.Request.linked_resources:type_name -> tfplugin5.PlanAction.Request.LinkedResource + 5, // 148: tfplugin5.PlanAction.Request.config:type_name -> tfplugin5.DynamicValue + 15, // 149: tfplugin5.PlanAction.Request.client_capabilities:type_name -> tfplugin5.ClientCapabilities + 131, // 150: tfplugin5.PlanAction.Response.linked_resources:type_name -> tfplugin5.PlanAction.Response.LinkedResource + 6, // 151: tfplugin5.PlanAction.Response.diagnostics:type_name -> tfplugin5.Diagnostic + 18, // 152: tfplugin5.PlanAction.Response.deferred:type_name -> tfplugin5.Deferred + 5, // 153: tfplugin5.PlanAction.Request.LinkedResource.prior_state:type_name -> tfplugin5.DynamicValue + 5, // 154: tfplugin5.PlanAction.Request.LinkedResource.planned_state:type_name -> tfplugin5.DynamicValue + 5, // 155: tfplugin5.PlanAction.Request.LinkedResource.config:type_name -> tfplugin5.DynamicValue + 13, // 156: tfplugin5.PlanAction.Request.LinkedResource.prior_identity:type_name -> tfplugin5.ResourceIdentityData + 5, // 157: tfplugin5.PlanAction.Response.LinkedResource.planned_state:type_name -> tfplugin5.DynamicValue + 13, // 158: tfplugin5.PlanAction.Response.LinkedResource.planned_identity:type_name -> tfplugin5.ResourceIdentityData + 134, // 159: tfplugin5.InvokeAction.Request.linked_resources:type_name -> tfplugin5.InvokeAction.Request.LinkedResource + 5, // 160: tfplugin5.InvokeAction.Request.config:type_name -> tfplugin5.DynamicValue + 135, // 161: tfplugin5.InvokeAction.Event.progress:type_name -> tfplugin5.InvokeAction.Event.Progress + 136, // 162: tfplugin5.InvokeAction.Event.completed:type_name -> tfplugin5.InvokeAction.Event.Completed + 5, // 163: tfplugin5.InvokeAction.Request.LinkedResource.prior_state:type_name -> tfplugin5.DynamicValue + 5, // 164: tfplugin5.InvokeAction.Request.LinkedResource.planned_state:type_name -> tfplugin5.DynamicValue + 5, // 165: tfplugin5.InvokeAction.Request.LinkedResource.config:type_name -> tfplugin5.DynamicValue + 13, // 166: tfplugin5.InvokeAction.Request.LinkedResource.planned_identity:type_name -> tfplugin5.ResourceIdentityData + 137, // 167: tfplugin5.InvokeAction.Event.Completed.linked_resources:type_name -> tfplugin5.InvokeAction.Event.Completed.LinkedResource + 6, // 168: tfplugin5.InvokeAction.Event.Completed.diagnostics:type_name -> tfplugin5.Diagnostic + 5, // 169: tfplugin5.InvokeAction.Event.Completed.LinkedResource.new_state:type_name -> tfplugin5.DynamicValue + 13, // 170: tfplugin5.InvokeAction.Event.Completed.LinkedResource.new_identity:type_name -> tfplugin5.ResourceIdentityData + 61, // 171: tfplugin5.Provider.GetMetadata:input_type -> tfplugin5.GetMetadata.Request + 69, // 172: tfplugin5.Provider.GetSchema:input_type -> tfplugin5.GetProviderSchema.Request + 119, // 173: tfplugin5.Provider.GetResourceIdentitySchemas:input_type -> tfplugin5.GetResourceIdentitySchemas.Request + 77, // 174: tfplugin5.Provider.PrepareProviderConfig:input_type -> tfplugin5.PrepareProviderConfig.Request + 81, // 175: tfplugin5.Provider.ValidateResourceTypeConfig:input_type -> tfplugin5.ValidateResourceTypeConfig.Request + 83, // 176: tfplugin5.Provider.ValidateDataSourceConfig:input_type -> tfplugin5.ValidateDataSourceConfig.Request + 79, // 177: tfplugin5.Provider.UpgradeResourceState:input_type -> tfplugin5.UpgradeResourceState.Request + 122, // 178: tfplugin5.Provider.UpgradeResourceIdentity:input_type -> tfplugin5.UpgradeResourceIdentity.Request + 85, // 179: tfplugin5.Provider.Configure:input_type -> tfplugin5.Configure.Request + 87, // 180: tfplugin5.Provider.ReadResource:input_type -> tfplugin5.ReadResource.Request + 89, // 181: tfplugin5.Provider.PlanResourceChange:input_type -> tfplugin5.PlanResourceChange.Request + 91, // 182: tfplugin5.Provider.ApplyResourceChange:input_type -> tfplugin5.ApplyResourceChange.Request + 93, // 183: tfplugin5.Provider.ImportResourceState:input_type -> tfplugin5.ImportResourceState.Request + 96, // 184: tfplugin5.Provider.MoveResourceState:input_type -> tfplugin5.MoveResourceState.Request + 98, // 185: tfplugin5.Provider.ReadDataSource:input_type -> tfplugin5.ReadDataSource.Request + 111, // 186: tfplugin5.Provider.ValidateEphemeralResourceConfig:input_type -> tfplugin5.ValidateEphemeralResourceConfig.Request + 113, // 187: tfplugin5.Provider.OpenEphemeralResource:input_type -> tfplugin5.OpenEphemeralResource.Request + 115, // 188: tfplugin5.Provider.RenewEphemeralResource:input_type -> tfplugin5.RenewEphemeralResource.Request + 117, // 189: tfplugin5.Provider.CloseEphemeralResource:input_type -> tfplugin5.CloseEphemeralResource.Request + 124, // 190: tfplugin5.Provider.ListResource:input_type -> tfplugin5.ListResource.Request + 126, // 191: tfplugin5.Provider.ValidateListResourceConfig:input_type -> tfplugin5.ValidateListResourceConfig.Request + 106, // 192: tfplugin5.Provider.GetFunctions:input_type -> tfplugin5.GetFunctions.Request + 109, // 193: tfplugin5.Provider.CallFunction:input_type -> tfplugin5.CallFunction.Request + 128, // 194: tfplugin5.Provider.PlanAction:input_type -> tfplugin5.PlanAction.Request + 132, // 195: tfplugin5.Provider.InvokeAction:input_type -> tfplugin5.InvokeAction.Request + 48, // 196: tfplugin5.Provider.Stop:input_type -> tfplugin5.Stop.Request + 100, // 197: tfplugin5.Provisioner.GetSchema:input_type -> tfplugin5.GetProvisionerSchema.Request + 102, // 198: tfplugin5.Provisioner.ValidateProvisionerConfig:input_type -> tfplugin5.ValidateProvisionerConfig.Request + 104, // 199: tfplugin5.Provisioner.ProvisionResource:input_type -> tfplugin5.ProvisionResource.Request + 48, // 200: tfplugin5.Provisioner.Stop:input_type -> tfplugin5.Stop.Request + 62, // 201: tfplugin5.Provider.GetMetadata:output_type -> tfplugin5.GetMetadata.Response + 70, // 202: tfplugin5.Provider.GetSchema:output_type -> tfplugin5.GetProviderSchema.Response + 120, // 203: tfplugin5.Provider.GetResourceIdentitySchemas:output_type -> tfplugin5.GetResourceIdentitySchemas.Response + 78, // 204: tfplugin5.Provider.PrepareProviderConfig:output_type -> tfplugin5.PrepareProviderConfig.Response + 82, // 205: tfplugin5.Provider.ValidateResourceTypeConfig:output_type -> tfplugin5.ValidateResourceTypeConfig.Response + 84, // 206: tfplugin5.Provider.ValidateDataSourceConfig:output_type -> tfplugin5.ValidateDataSourceConfig.Response + 80, // 207: tfplugin5.Provider.UpgradeResourceState:output_type -> tfplugin5.UpgradeResourceState.Response + 123, // 208: tfplugin5.Provider.UpgradeResourceIdentity:output_type -> tfplugin5.UpgradeResourceIdentity.Response + 86, // 209: tfplugin5.Provider.Configure:output_type -> tfplugin5.Configure.Response + 88, // 210: tfplugin5.Provider.ReadResource:output_type -> tfplugin5.ReadResource.Response + 90, // 211: tfplugin5.Provider.PlanResourceChange:output_type -> tfplugin5.PlanResourceChange.Response + 92, // 212: tfplugin5.Provider.ApplyResourceChange:output_type -> tfplugin5.ApplyResourceChange.Response + 95, // 213: tfplugin5.Provider.ImportResourceState:output_type -> tfplugin5.ImportResourceState.Response + 97, // 214: tfplugin5.Provider.MoveResourceState:output_type -> tfplugin5.MoveResourceState.Response + 99, // 215: tfplugin5.Provider.ReadDataSource:output_type -> tfplugin5.ReadDataSource.Response + 112, // 216: tfplugin5.Provider.ValidateEphemeralResourceConfig:output_type -> tfplugin5.ValidateEphemeralResourceConfig.Response + 114, // 217: tfplugin5.Provider.OpenEphemeralResource:output_type -> tfplugin5.OpenEphemeralResource.Response + 116, // 218: tfplugin5.Provider.RenewEphemeralResource:output_type -> tfplugin5.RenewEphemeralResource.Response + 118, // 219: tfplugin5.Provider.CloseEphemeralResource:output_type -> tfplugin5.CloseEphemeralResource.Response + 125, // 220: tfplugin5.Provider.ListResource:output_type -> tfplugin5.ListResource.Event + 127, // 221: tfplugin5.Provider.ValidateListResourceConfig:output_type -> tfplugin5.ValidateListResourceConfig.Response + 107, // 222: tfplugin5.Provider.GetFunctions:output_type -> tfplugin5.GetFunctions.Response + 110, // 223: tfplugin5.Provider.CallFunction:output_type -> tfplugin5.CallFunction.Response + 129, // 224: tfplugin5.Provider.PlanAction:output_type -> tfplugin5.PlanAction.Response + 133, // 225: tfplugin5.Provider.InvokeAction:output_type -> tfplugin5.InvokeAction.Event + 49, // 226: tfplugin5.Provider.Stop:output_type -> tfplugin5.Stop.Response + 101, // 227: tfplugin5.Provisioner.GetSchema:output_type -> tfplugin5.GetProvisionerSchema.Response + 103, // 228: tfplugin5.Provisioner.ValidateProvisionerConfig:output_type -> tfplugin5.ValidateProvisionerConfig.Response + 105, // 229: tfplugin5.Provisioner.ProvisionResource:output_type -> tfplugin5.ProvisionResource.Response + 49, // 230: tfplugin5.Provisioner.Stop:output_type -> tfplugin5.Stop.Response + 201, // [201:231] is the sub-list for method output_type + 171, // [171:201] is the sub-list for method input_type + 171, // [171:171] is the sub-list for extension type_name + 171, // [171:171] is the sub-list for extension extendee + 0, // [0:171] is the sub-list for field type_name } func init() { file_tfplugin5_proto_init() } diff --git a/tfprotov5/internal/tfplugin5/tfplugin5.proto b/tfprotov5/internal/tfplugin5/tfplugin5.proto index fe2efd757..63f3688b0 100644 --- a/tfprotov5/internal/tfplugin5/tfplugin5.proto +++ b/tfprotov5/internal/tfplugin5/tfplugin5.proto @@ -913,6 +913,8 @@ message ValidateListResourceConfig { message Request { string type_name = 1; DynamicValue config = 2; + DynamicValue include_resource_object = 3; + DynamicValue limit = 4; } message Response { repeated Diagnostic diagnostics = 1; diff --git a/tfprotov5/list_resource.go b/tfprotov5/list_resource.go index b547b338a..f8ff26e7e 100644 --- a/tfprotov5/list_resource.go +++ b/tfprotov5/list_resource.go @@ -109,6 +109,15 @@ type ValidateListResourceConfigRequest struct { // knowing the value at request time. Any attributes not directly set in // the configuration will be null. Config *DynamicValue + + // IncludeResourceObject is the value of the include_resource + // argument in the list block. This is a DynamicValue so that it can + // contain unknown values. + IncludeResourceObject *DynamicValue + + // Limit is the maximum number of results to return. This is a + // DynamicValue so that it can contain unknown values. + Limit *DynamicValue } // ValidateListResourceConfigResponse is the response from the provider about diff --git a/tfprotov6/internal/fromproto/list_resource.go b/tfprotov6/internal/fromproto/list_resource.go index 0af815ef7..9d6e725ea 100644 --- a/tfprotov6/internal/fromproto/list_resource.go +++ b/tfprotov6/internal/fromproto/list_resource.go @@ -27,7 +27,9 @@ func ValidateListResourceConfigRequest(in *tfplugin6.ValidateListResourceConfig_ } return &tfprotov6.ValidateListResourceConfigRequest{ - TypeName: in.TypeName, - Config: DynamicValue(in.Config), + TypeName: in.TypeName, + Config: DynamicValue(in.Config), + IncludeResourceObject: DynamicValue(in.IncludeResourceObject), + Limit: DynamicValue(in.Limit), } } diff --git a/tfprotov6/internal/tfplugin6/tfplugin6.pb.go b/tfprotov6/internal/tfplugin6/tfplugin6.pb.go index cd7e9e349..21bd448aa 100644 --- a/tfprotov6/internal/tfplugin6/tfplugin6.pb.go +++ b/tfprotov6/internal/tfplugin6/tfplugin6.pb.go @@ -6236,11 +6236,13 @@ func (x *ListResource_Event) GetDiagnostic() []*Diagnostic { } type ValidateListResourceConfig_Request struct { - state protoimpl.MessageState `protogen:"open.v1"` - TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` - Config *DynamicValue `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"` + Config *DynamicValue `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` + IncludeResourceObject *DynamicValue `protobuf:"bytes,3,opt,name=include_resource_object,json=includeResourceObject,proto3" json:"include_resource_object,omitempty"` + Limit *DynamicValue `protobuf:"bytes,4,opt,name=limit,proto3" json:"limit,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ValidateListResourceConfig_Request) Reset() { @@ -6287,6 +6289,20 @@ func (x *ValidateListResourceConfig_Request) GetConfig() *DynamicValue { return nil } +func (x *ValidateListResourceConfig_Request) GetIncludeResourceObject() *DynamicValue { + if x != nil { + return x.IncludeResourceObject + } + return nil +} + +func (x *ValidateListResourceConfig_Request) GetLimit() *DynamicValue { + if x != nil { + return x.Limit + } + return nil +} + type ValidateListResourceConfig_Response struct { state protoimpl.MessageState `protogen:"open.v1"` Diagnostics []*Diagnostic `protobuf:"bytes,1,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` @@ -7384,11 +7400,13 @@ const file_tfplugin6_proto_rawDesc = "" + "\n" + "diagnostic\x18\x04 \x03(\v2\x15.tfplugin6.DiagnosticR\n" + "diagnosticB\x12\n" + - "\x10_resource_object\"\xba\x01\n" + - "\x1aValidateListResourceConfig\x1aW\n" + + "\x10_resource_object\"\xbb\x02\n" + + "\x1aValidateListResourceConfig\x1a\xd7\x01\n" + "\aRequest\x12\x1b\n" + "\ttype_name\x18\x01 \x01(\tR\btypeName\x12/\n" + - "\x06config\x18\x02 \x01(\v2\x17.tfplugin6.DynamicValueR\x06config\x1aC\n" + + "\x06config\x18\x02 \x01(\v2\x17.tfplugin6.DynamicValueR\x06config\x12O\n" + + "\x17include_resource_object\x18\x03 \x01(\v2\x17.tfplugin6.DynamicValueR\x15includeResourceObject\x12-\n" + + "\x05limit\x18\x04 \x01(\v2\x17.tfplugin6.DynamicValueR\x05limit\x1aC\n" + "\bResponse\x127\n" + "\vdiagnostics\x18\x01 \x03(\v2\x15.tfplugin6.DiagnosticR\vdiagnostics\"\x85\a\n" + "\n" + @@ -7758,88 +7776,90 @@ var file_tfplugin6_proto_depIdxs = []int32{ 6, // 136: tfplugin6.ListResource.Event.resource_object:type_name -> tfplugin6.DynamicValue 7, // 137: tfplugin6.ListResource.Event.diagnostic:type_name -> tfplugin6.Diagnostic 6, // 138: tfplugin6.ValidateListResourceConfig.Request.config:type_name -> tfplugin6.DynamicValue - 7, // 139: tfplugin6.ValidateListResourceConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 123, // 140: tfplugin6.PlanAction.Request.linked_resources:type_name -> tfplugin6.PlanAction.Request.LinkedResource - 6, // 141: tfplugin6.PlanAction.Request.config:type_name -> tfplugin6.DynamicValue - 18, // 142: tfplugin6.PlanAction.Request.client_capabilities:type_name -> tfplugin6.ClientCapabilities - 124, // 143: tfplugin6.PlanAction.Response.linked_resources:type_name -> tfplugin6.PlanAction.Response.LinkedResource - 7, // 144: tfplugin6.PlanAction.Response.diagnostics:type_name -> tfplugin6.Diagnostic - 19, // 145: tfplugin6.PlanAction.Response.deferred:type_name -> tfplugin6.Deferred - 6, // 146: tfplugin6.PlanAction.Request.LinkedResource.prior_state:type_name -> tfplugin6.DynamicValue - 6, // 147: tfplugin6.PlanAction.Request.LinkedResource.planned_state:type_name -> tfplugin6.DynamicValue - 6, // 148: tfplugin6.PlanAction.Request.LinkedResource.config:type_name -> tfplugin6.DynamicValue - 14, // 149: tfplugin6.PlanAction.Request.LinkedResource.prior_identity:type_name -> tfplugin6.ResourceIdentityData - 6, // 150: tfplugin6.PlanAction.Response.LinkedResource.planned_state:type_name -> tfplugin6.DynamicValue - 14, // 151: tfplugin6.PlanAction.Response.LinkedResource.planned_identity:type_name -> tfplugin6.ResourceIdentityData - 127, // 152: tfplugin6.InvokeAction.Request.linked_resources:type_name -> tfplugin6.InvokeAction.Request.LinkedResource - 6, // 153: tfplugin6.InvokeAction.Request.config:type_name -> tfplugin6.DynamicValue - 128, // 154: tfplugin6.InvokeAction.Event.progress:type_name -> tfplugin6.InvokeAction.Event.Progress - 129, // 155: tfplugin6.InvokeAction.Event.completed:type_name -> tfplugin6.InvokeAction.Event.Completed - 6, // 156: tfplugin6.InvokeAction.Request.LinkedResource.prior_state:type_name -> tfplugin6.DynamicValue - 6, // 157: tfplugin6.InvokeAction.Request.LinkedResource.planned_state:type_name -> tfplugin6.DynamicValue - 6, // 158: tfplugin6.InvokeAction.Request.LinkedResource.config:type_name -> tfplugin6.DynamicValue - 14, // 159: tfplugin6.InvokeAction.Request.LinkedResource.planned_identity:type_name -> tfplugin6.ResourceIdentityData - 130, // 160: tfplugin6.InvokeAction.Event.Completed.linked_resources:type_name -> tfplugin6.InvokeAction.Event.Completed.LinkedResource - 7, // 161: tfplugin6.InvokeAction.Event.Completed.diagnostics:type_name -> tfplugin6.Diagnostic - 6, // 162: tfplugin6.InvokeAction.Event.Completed.LinkedResource.new_state:type_name -> tfplugin6.DynamicValue - 14, // 163: tfplugin6.InvokeAction.Event.Completed.LinkedResource.new_identity:type_name -> tfplugin6.ResourceIdentityData - 60, // 164: tfplugin6.Provider.GetMetadata:input_type -> tfplugin6.GetMetadata.Request - 68, // 165: tfplugin6.Provider.GetProviderSchema:input_type -> tfplugin6.GetProviderSchema.Request - 112, // 166: tfplugin6.Provider.GetResourceIdentitySchemas:input_type -> tfplugin6.GetResourceIdentitySchemas.Request - 76, // 167: tfplugin6.Provider.ValidateProviderConfig:input_type -> tfplugin6.ValidateProviderConfig.Request - 80, // 168: tfplugin6.Provider.ValidateResourceConfig:input_type -> tfplugin6.ValidateResourceConfig.Request - 82, // 169: tfplugin6.Provider.ValidateDataResourceConfig:input_type -> tfplugin6.ValidateDataResourceConfig.Request - 78, // 170: tfplugin6.Provider.UpgradeResourceState:input_type -> tfplugin6.UpgradeResourceState.Request - 115, // 171: tfplugin6.Provider.UpgradeResourceIdentity:input_type -> tfplugin6.UpgradeResourceIdentity.Request - 84, // 172: tfplugin6.Provider.ConfigureProvider:input_type -> tfplugin6.ConfigureProvider.Request - 86, // 173: tfplugin6.Provider.ReadResource:input_type -> tfplugin6.ReadResource.Request - 88, // 174: tfplugin6.Provider.PlanResourceChange:input_type -> tfplugin6.PlanResourceChange.Request - 90, // 175: tfplugin6.Provider.ApplyResourceChange:input_type -> tfplugin6.ApplyResourceChange.Request - 92, // 176: tfplugin6.Provider.ImportResourceState:input_type -> tfplugin6.ImportResourceState.Request - 95, // 177: tfplugin6.Provider.MoveResourceState:input_type -> tfplugin6.MoveResourceState.Request - 97, // 178: tfplugin6.Provider.ReadDataSource:input_type -> tfplugin6.ReadDataSource.Request - 104, // 179: tfplugin6.Provider.ValidateEphemeralResourceConfig:input_type -> tfplugin6.ValidateEphemeralResourceConfig.Request - 106, // 180: tfplugin6.Provider.OpenEphemeralResource:input_type -> tfplugin6.OpenEphemeralResource.Request - 108, // 181: tfplugin6.Provider.RenewEphemeralResource:input_type -> tfplugin6.RenewEphemeralResource.Request - 110, // 182: tfplugin6.Provider.CloseEphemeralResource:input_type -> tfplugin6.CloseEphemeralResource.Request - 117, // 183: tfplugin6.Provider.ListResource:input_type -> tfplugin6.ListResource.Request - 119, // 184: tfplugin6.Provider.ValidateListResourceConfig:input_type -> tfplugin6.ValidateListResourceConfig.Request - 99, // 185: tfplugin6.Provider.GetFunctions:input_type -> tfplugin6.GetFunctions.Request - 102, // 186: tfplugin6.Provider.CallFunction:input_type -> tfplugin6.CallFunction.Request - 121, // 187: tfplugin6.Provider.PlanAction:input_type -> tfplugin6.PlanAction.Request - 125, // 188: tfplugin6.Provider.InvokeAction:input_type -> tfplugin6.InvokeAction.Request - 46, // 189: tfplugin6.Provider.StopProvider:input_type -> tfplugin6.StopProvider.Request - 61, // 190: tfplugin6.Provider.GetMetadata:output_type -> tfplugin6.GetMetadata.Response - 69, // 191: tfplugin6.Provider.GetProviderSchema:output_type -> tfplugin6.GetProviderSchema.Response - 113, // 192: tfplugin6.Provider.GetResourceIdentitySchemas:output_type -> tfplugin6.GetResourceIdentitySchemas.Response - 77, // 193: tfplugin6.Provider.ValidateProviderConfig:output_type -> tfplugin6.ValidateProviderConfig.Response - 81, // 194: tfplugin6.Provider.ValidateResourceConfig:output_type -> tfplugin6.ValidateResourceConfig.Response - 83, // 195: tfplugin6.Provider.ValidateDataResourceConfig:output_type -> tfplugin6.ValidateDataResourceConfig.Response - 79, // 196: tfplugin6.Provider.UpgradeResourceState:output_type -> tfplugin6.UpgradeResourceState.Response - 116, // 197: tfplugin6.Provider.UpgradeResourceIdentity:output_type -> tfplugin6.UpgradeResourceIdentity.Response - 85, // 198: tfplugin6.Provider.ConfigureProvider:output_type -> tfplugin6.ConfigureProvider.Response - 87, // 199: tfplugin6.Provider.ReadResource:output_type -> tfplugin6.ReadResource.Response - 89, // 200: tfplugin6.Provider.PlanResourceChange:output_type -> tfplugin6.PlanResourceChange.Response - 91, // 201: tfplugin6.Provider.ApplyResourceChange:output_type -> tfplugin6.ApplyResourceChange.Response - 94, // 202: tfplugin6.Provider.ImportResourceState:output_type -> tfplugin6.ImportResourceState.Response - 96, // 203: tfplugin6.Provider.MoveResourceState:output_type -> tfplugin6.MoveResourceState.Response - 98, // 204: tfplugin6.Provider.ReadDataSource:output_type -> tfplugin6.ReadDataSource.Response - 105, // 205: tfplugin6.Provider.ValidateEphemeralResourceConfig:output_type -> tfplugin6.ValidateEphemeralResourceConfig.Response - 107, // 206: tfplugin6.Provider.OpenEphemeralResource:output_type -> tfplugin6.OpenEphemeralResource.Response - 109, // 207: tfplugin6.Provider.RenewEphemeralResource:output_type -> tfplugin6.RenewEphemeralResource.Response - 111, // 208: tfplugin6.Provider.CloseEphemeralResource:output_type -> tfplugin6.CloseEphemeralResource.Response - 118, // 209: tfplugin6.Provider.ListResource:output_type -> tfplugin6.ListResource.Event - 120, // 210: tfplugin6.Provider.ValidateListResourceConfig:output_type -> tfplugin6.ValidateListResourceConfig.Response - 100, // 211: tfplugin6.Provider.GetFunctions:output_type -> tfplugin6.GetFunctions.Response - 103, // 212: tfplugin6.Provider.CallFunction:output_type -> tfplugin6.CallFunction.Response - 122, // 213: tfplugin6.Provider.PlanAction:output_type -> tfplugin6.PlanAction.Response - 126, // 214: tfplugin6.Provider.InvokeAction:output_type -> tfplugin6.InvokeAction.Event - 47, // 215: tfplugin6.Provider.StopProvider:output_type -> tfplugin6.StopProvider.Response - 190, // [190:216] is the sub-list for method output_type - 164, // [164:190] is the sub-list for method input_type - 164, // [164:164] is the sub-list for extension type_name - 164, // [164:164] is the sub-list for extension extendee - 0, // [0:164] is the sub-list for field type_name + 6, // 139: tfplugin6.ValidateListResourceConfig.Request.include_resource_object:type_name -> tfplugin6.DynamicValue + 6, // 140: tfplugin6.ValidateListResourceConfig.Request.limit:type_name -> tfplugin6.DynamicValue + 7, // 141: tfplugin6.ValidateListResourceConfig.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 123, // 142: tfplugin6.PlanAction.Request.linked_resources:type_name -> tfplugin6.PlanAction.Request.LinkedResource + 6, // 143: tfplugin6.PlanAction.Request.config:type_name -> tfplugin6.DynamicValue + 18, // 144: tfplugin6.PlanAction.Request.client_capabilities:type_name -> tfplugin6.ClientCapabilities + 124, // 145: tfplugin6.PlanAction.Response.linked_resources:type_name -> tfplugin6.PlanAction.Response.LinkedResource + 7, // 146: tfplugin6.PlanAction.Response.diagnostics:type_name -> tfplugin6.Diagnostic + 19, // 147: tfplugin6.PlanAction.Response.deferred:type_name -> tfplugin6.Deferred + 6, // 148: tfplugin6.PlanAction.Request.LinkedResource.prior_state:type_name -> tfplugin6.DynamicValue + 6, // 149: tfplugin6.PlanAction.Request.LinkedResource.planned_state:type_name -> tfplugin6.DynamicValue + 6, // 150: tfplugin6.PlanAction.Request.LinkedResource.config:type_name -> tfplugin6.DynamicValue + 14, // 151: tfplugin6.PlanAction.Request.LinkedResource.prior_identity:type_name -> tfplugin6.ResourceIdentityData + 6, // 152: tfplugin6.PlanAction.Response.LinkedResource.planned_state:type_name -> tfplugin6.DynamicValue + 14, // 153: tfplugin6.PlanAction.Response.LinkedResource.planned_identity:type_name -> tfplugin6.ResourceIdentityData + 127, // 154: tfplugin6.InvokeAction.Request.linked_resources:type_name -> tfplugin6.InvokeAction.Request.LinkedResource + 6, // 155: tfplugin6.InvokeAction.Request.config:type_name -> tfplugin6.DynamicValue + 128, // 156: tfplugin6.InvokeAction.Event.progress:type_name -> tfplugin6.InvokeAction.Event.Progress + 129, // 157: tfplugin6.InvokeAction.Event.completed:type_name -> tfplugin6.InvokeAction.Event.Completed + 6, // 158: tfplugin6.InvokeAction.Request.LinkedResource.prior_state:type_name -> tfplugin6.DynamicValue + 6, // 159: tfplugin6.InvokeAction.Request.LinkedResource.planned_state:type_name -> tfplugin6.DynamicValue + 6, // 160: tfplugin6.InvokeAction.Request.LinkedResource.config:type_name -> tfplugin6.DynamicValue + 14, // 161: tfplugin6.InvokeAction.Request.LinkedResource.planned_identity:type_name -> tfplugin6.ResourceIdentityData + 130, // 162: tfplugin6.InvokeAction.Event.Completed.linked_resources:type_name -> tfplugin6.InvokeAction.Event.Completed.LinkedResource + 7, // 163: tfplugin6.InvokeAction.Event.Completed.diagnostics:type_name -> tfplugin6.Diagnostic + 6, // 164: tfplugin6.InvokeAction.Event.Completed.LinkedResource.new_state:type_name -> tfplugin6.DynamicValue + 14, // 165: tfplugin6.InvokeAction.Event.Completed.LinkedResource.new_identity:type_name -> tfplugin6.ResourceIdentityData + 60, // 166: tfplugin6.Provider.GetMetadata:input_type -> tfplugin6.GetMetadata.Request + 68, // 167: tfplugin6.Provider.GetProviderSchema:input_type -> tfplugin6.GetProviderSchema.Request + 112, // 168: tfplugin6.Provider.GetResourceIdentitySchemas:input_type -> tfplugin6.GetResourceIdentitySchemas.Request + 76, // 169: tfplugin6.Provider.ValidateProviderConfig:input_type -> tfplugin6.ValidateProviderConfig.Request + 80, // 170: tfplugin6.Provider.ValidateResourceConfig:input_type -> tfplugin6.ValidateResourceConfig.Request + 82, // 171: tfplugin6.Provider.ValidateDataResourceConfig:input_type -> tfplugin6.ValidateDataResourceConfig.Request + 78, // 172: tfplugin6.Provider.UpgradeResourceState:input_type -> tfplugin6.UpgradeResourceState.Request + 115, // 173: tfplugin6.Provider.UpgradeResourceIdentity:input_type -> tfplugin6.UpgradeResourceIdentity.Request + 84, // 174: tfplugin6.Provider.ConfigureProvider:input_type -> tfplugin6.ConfigureProvider.Request + 86, // 175: tfplugin6.Provider.ReadResource:input_type -> tfplugin6.ReadResource.Request + 88, // 176: tfplugin6.Provider.PlanResourceChange:input_type -> tfplugin6.PlanResourceChange.Request + 90, // 177: tfplugin6.Provider.ApplyResourceChange:input_type -> tfplugin6.ApplyResourceChange.Request + 92, // 178: tfplugin6.Provider.ImportResourceState:input_type -> tfplugin6.ImportResourceState.Request + 95, // 179: tfplugin6.Provider.MoveResourceState:input_type -> tfplugin6.MoveResourceState.Request + 97, // 180: tfplugin6.Provider.ReadDataSource:input_type -> tfplugin6.ReadDataSource.Request + 104, // 181: tfplugin6.Provider.ValidateEphemeralResourceConfig:input_type -> tfplugin6.ValidateEphemeralResourceConfig.Request + 106, // 182: tfplugin6.Provider.OpenEphemeralResource:input_type -> tfplugin6.OpenEphemeralResource.Request + 108, // 183: tfplugin6.Provider.RenewEphemeralResource:input_type -> tfplugin6.RenewEphemeralResource.Request + 110, // 184: tfplugin6.Provider.CloseEphemeralResource:input_type -> tfplugin6.CloseEphemeralResource.Request + 117, // 185: tfplugin6.Provider.ListResource:input_type -> tfplugin6.ListResource.Request + 119, // 186: tfplugin6.Provider.ValidateListResourceConfig:input_type -> tfplugin6.ValidateListResourceConfig.Request + 99, // 187: tfplugin6.Provider.GetFunctions:input_type -> tfplugin6.GetFunctions.Request + 102, // 188: tfplugin6.Provider.CallFunction:input_type -> tfplugin6.CallFunction.Request + 121, // 189: tfplugin6.Provider.PlanAction:input_type -> tfplugin6.PlanAction.Request + 125, // 190: tfplugin6.Provider.InvokeAction:input_type -> tfplugin6.InvokeAction.Request + 46, // 191: tfplugin6.Provider.StopProvider:input_type -> tfplugin6.StopProvider.Request + 61, // 192: tfplugin6.Provider.GetMetadata:output_type -> tfplugin6.GetMetadata.Response + 69, // 193: tfplugin6.Provider.GetProviderSchema:output_type -> tfplugin6.GetProviderSchema.Response + 113, // 194: tfplugin6.Provider.GetResourceIdentitySchemas:output_type -> tfplugin6.GetResourceIdentitySchemas.Response + 77, // 195: tfplugin6.Provider.ValidateProviderConfig:output_type -> tfplugin6.ValidateProviderConfig.Response + 81, // 196: tfplugin6.Provider.ValidateResourceConfig:output_type -> tfplugin6.ValidateResourceConfig.Response + 83, // 197: tfplugin6.Provider.ValidateDataResourceConfig:output_type -> tfplugin6.ValidateDataResourceConfig.Response + 79, // 198: tfplugin6.Provider.UpgradeResourceState:output_type -> tfplugin6.UpgradeResourceState.Response + 116, // 199: tfplugin6.Provider.UpgradeResourceIdentity:output_type -> tfplugin6.UpgradeResourceIdentity.Response + 85, // 200: tfplugin6.Provider.ConfigureProvider:output_type -> tfplugin6.ConfigureProvider.Response + 87, // 201: tfplugin6.Provider.ReadResource:output_type -> tfplugin6.ReadResource.Response + 89, // 202: tfplugin6.Provider.PlanResourceChange:output_type -> tfplugin6.PlanResourceChange.Response + 91, // 203: tfplugin6.Provider.ApplyResourceChange:output_type -> tfplugin6.ApplyResourceChange.Response + 94, // 204: tfplugin6.Provider.ImportResourceState:output_type -> tfplugin6.ImportResourceState.Response + 96, // 205: tfplugin6.Provider.MoveResourceState:output_type -> tfplugin6.MoveResourceState.Response + 98, // 206: tfplugin6.Provider.ReadDataSource:output_type -> tfplugin6.ReadDataSource.Response + 105, // 207: tfplugin6.Provider.ValidateEphemeralResourceConfig:output_type -> tfplugin6.ValidateEphemeralResourceConfig.Response + 107, // 208: tfplugin6.Provider.OpenEphemeralResource:output_type -> tfplugin6.OpenEphemeralResource.Response + 109, // 209: tfplugin6.Provider.RenewEphemeralResource:output_type -> tfplugin6.RenewEphemeralResource.Response + 111, // 210: tfplugin6.Provider.CloseEphemeralResource:output_type -> tfplugin6.CloseEphemeralResource.Response + 118, // 211: tfplugin6.Provider.ListResource:output_type -> tfplugin6.ListResource.Event + 120, // 212: tfplugin6.Provider.ValidateListResourceConfig:output_type -> tfplugin6.ValidateListResourceConfig.Response + 100, // 213: tfplugin6.Provider.GetFunctions:output_type -> tfplugin6.GetFunctions.Response + 103, // 214: tfplugin6.Provider.CallFunction:output_type -> tfplugin6.CallFunction.Response + 122, // 215: tfplugin6.Provider.PlanAction:output_type -> tfplugin6.PlanAction.Response + 126, // 216: tfplugin6.Provider.InvokeAction:output_type -> tfplugin6.InvokeAction.Event + 47, // 217: tfplugin6.Provider.StopProvider:output_type -> tfplugin6.StopProvider.Response + 192, // [192:218] is the sub-list for method output_type + 166, // [166:192] is the sub-list for method input_type + 166, // [166:166] is the sub-list for extension type_name + 166, // [166:166] is the sub-list for extension extendee + 0, // [0:166] is the sub-list for field type_name } func init() { file_tfplugin6_proto_init() } diff --git a/tfprotov6/internal/tfplugin6/tfplugin6.proto b/tfprotov6/internal/tfplugin6/tfplugin6.proto index 8f5d65864..b87c38398 100644 --- a/tfprotov6/internal/tfplugin6/tfplugin6.proto +++ b/tfprotov6/internal/tfplugin6/tfplugin6.proto @@ -896,6 +896,8 @@ message ValidateListResourceConfig { message Request { string type_name = 1; DynamicValue config = 2; + DynamicValue include_resource_object = 3; + DynamicValue limit = 4; } message Response { repeated Diagnostic diagnostics = 1; diff --git a/tfprotov6/list_resource.go b/tfprotov6/list_resource.go index 267a5e7a2..9e7afcd92 100644 --- a/tfprotov6/list_resource.go +++ b/tfprotov6/list_resource.go @@ -109,6 +109,15 @@ type ValidateListResourceConfigRequest struct { // knowing the value at request time. Any attributes not directly set in // the configuration will be null. Config *DynamicValue + + // IncludeResourceObject is the value of the include_resource + // argument in the list block. This is a DynamicValue so that it can + // contain unknown values. + IncludeResourceObject *DynamicValue + + // Limit is the maximum number of results to return. This is a + // DynamicValue so that it can contain unknown values. + Limit *DynamicValue } // ValidateListResourceConfigResponse is the response from the provider about