MCPApprovalResponseItemResource Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| MCPApprovalResponseItemResource() |
Initializes a new instance of MCPApprovalResponseItemResource for deserialization. |
| MCPApprovalResponseItemResource(String, String, Boolean) |
Initializes a new instance of MCPApprovalResponseItemResource. |
| MCPApprovalResponseItemResource(ItemType, String, CreatedBy, IDictionary<String,BinaryData>, String, Boolean, String) |
Initializes a new instance of MCPApprovalResponseItemResource. |
MCPApprovalResponseItemResource()
Initializes a new instance of MCPApprovalResponseItemResource for deserialization.
public MCPApprovalResponseItemResource();
Public Sub New ()
Applies to
MCPApprovalResponseItemResource(String, String, Boolean)
Initializes a new instance of MCPApprovalResponseItemResource.
public MCPApprovalResponseItemResource(string id, string approvalRequestId, bool approve);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPApprovalResponseItemResource : string * string * bool -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPApprovalResponseItemResource
Public Sub New (id As String, approvalRequestId As String, approve As Boolean)
Parameters
- id
- String
- approvalRequestId
- String
The ID of the approval request being answered.
- approve
- Boolean
Whether the request was approved.
Exceptions
id or approvalRequestId is null.
Applies to
MCPApprovalResponseItemResource(ItemType, String, CreatedBy, IDictionary<String,BinaryData>, String, Boolean, String)
Initializes a new instance of MCPApprovalResponseItemResource.
public MCPApprovalResponseItemResource(Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemType type, string id, Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy createdBy, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData, string approvalRequestId, bool approve, string reason);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPApprovalResponseItemResource : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemType * string * Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy * System.Collections.Generic.IDictionary<string, BinaryData> * string * bool * string -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.MCPApprovalResponseItemResource
Public Sub New (type As ItemType, id As String, createdBy As CreatedBy, serializedAdditionalRawData As IDictionary(Of String, BinaryData), approvalRequestId As String, approve As Boolean, reason As String)
Parameters
- type
- ItemType
- id
- String
- createdBy
- CreatedBy
The information about the creator of the item.
- serializedAdditionalRawData
- IDictionary<String,BinaryData>
Keeps track of any properties unknown to the library.
- approvalRequestId
- String
The ID of the approval request being answered.
- approve
- Boolean
Whether the request was approved.
- reason
- String
Optional reason for the decision.