Share via


AIProjectIndexesOperations.CreateOrUpdate Method

Definition

Overloads

Name Description
CreateOrUpdate(String, String, AIProjectIndex, CancellationToken)

Create a new or update an existing Index

CreateOrUpdate(String, String, BinaryContent, RequestOptions)

[Protocol Method] Create a new or update an existing Index with the given version id

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

CreateOrUpdate(String, String, AIProjectIndex, CancellationToken)

Source:
AIProjectIndexesOperations.cs
Source:
AIProjectIndexesOperations.cs

Create a new or update an existing Index

public virtual System.ClientModel.ClientResult<Azure.AI.Projects.AIProjectIndex> CreateOrUpdate(string name, string version, Azure.AI.Projects.AIProjectIndex index, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : string * string * Azure.AI.Projects.AIProjectIndex * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.AIProjectIndex>
override this.CreateOrUpdate : string * string * Azure.AI.Projects.AIProjectIndex * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.AIProjectIndex>
Public Overridable Function CreateOrUpdate (name As String, version As String, index As AIProjectIndex, Optional cancellationToken As CancellationToken = Nothing) As ClientResult(Of AIProjectIndex)

Parameters

name
String

The name of the resource.

version
String

The specific version id of the Index to create or update.

index
AIProjectIndex

The index to create or update.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

The response returned from the service.

Exceptions

name, version or index is null.

name or version is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

CreateOrUpdate(String, String, BinaryContent, RequestOptions)

Source:
AIProjectIndexesOperations.cs
Source:
AIProjectIndexesOperations.cs

[Protocol Method] Create a new or update an existing Index with the given version id

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.ClientResult CreateOrUpdate(string name, string version, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member CreateOrUpdate : string * string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.CreateOrUpdate : string * string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function CreateOrUpdate (name As String, version As String, content As BinaryContent, Optional options As RequestOptions = Nothing) As ClientResult

Parameters

name
String

The name of the resource.

version
String

The specific version id of the Index to create or update.

content
BinaryContent

The content to send as the body of the request.

options
RequestOptions

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

name, version or content is null.

name or version is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to