Compartilhar via


PurviewCollection.CreateOrUpdateCollection Método

Definição

Cria ou atualiza uma entidade de coleção.

public virtual Azure.Response CreateOrUpdateCollection (Azure.Core.RequestContent content, Azure.RequestOptions options = default);
abstract member CreateOrUpdateCollection : Azure.Core.RequestContent * Azure.RequestOptions -> Azure.Response
override this.CreateOrUpdateCollection : Azure.Core.RequestContent * Azure.RequestOptions -> Azure.Response
Public Overridable Function CreateOrUpdateCollection (content As RequestContent, Optional options As RequestOptions = Nothing) As Response

Parâmetros

content
RequestContent

O conteúdo a ser enviado como o corpo da solicitação.

options
Azure.RequestOptions

As opções de solicitação.

Retornos

Exceções

content é nulo.

Comentários

Esquema para Request Body:

{
              collectionProvisioningState: "Unknown" | "Creating" | "Moving" | "Deleting" | "Failed" | "Succeeded",
              description: string,
              friendlyName: string,
              name: string,
              parentCollection: {
                referenceName: string,
                type: string
              },
              systemData: {
                createdAt: string (ISO 8601 Format),
                createdBy: string,
                createdByType: "User" | "Application" | "ManagedIdentity" | "Key",
                lastModifiedAt: string (ISO 8601 Format),
                lastModifiedBy: string,
                lastModifiedByType: "User" | "Application" | "ManagedIdentity" | "Key"
              }
            }

Esquema para Response Body:

{
              collectionProvisioningState: "Unknown" | "Creating" | "Moving" | "Deleting" | "Failed" | "Succeeded",
              description: string,
              friendlyName: string,
              name: string,
              parentCollection: {
                referenceName: string,
                type: string
              },
              systemData: {
                createdAt: string (ISO 8601 Format),
                createdBy: string,
                createdByType: "User" | "Application" | "ManagedIdentity" | "Key",
                lastModifiedAt: string (ISO 8601 Format),
                lastModifiedBy: string,
                lastModifiedByType: "User" | "Application" | "ManagedIdentity" | "Key"
              }
            }

Esquema para Response Error:

{
              error: {
                code: string,
                details: [
                  {
                    code: string,
                    details: [ErrorModel],
                    message: string,
                    target: string
                  }
                ],
                message: string,
                target: string
              }
            }

Aplica-se a