func (client *ClientImpl) DeletePageById(ctx context.Context, args DeletePageByIdArgs) (*WikiPageResponse, error) {
	routeValues := make(map[string]string)
	if args.Project == nil || *args.Project == "" {
		return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"}
	}
	routeValues["project"] = *args.Project
	if args.WikiIdentifier == nil || *args.WikiIdentifier == "" {
		return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.WikiIdentifier"}
	}
	routeValues["wikiIdentifier"] = *args.WikiIdentifier
	if args.Id == nil {
		return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Id"}
	}
	routeValues["id"] = strconv.Itoa(*args.Id)
	queryParams := url.Values{}
	if args.Comment != nil {
		queryParams.Add("comment", *args.Comment)
	}
	locationId, _ := uuid.Parse("ceddcf75-1068-452d-8b13-2d4d76e1f970")
	resp, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1-preview.1", routeValues, queryParams, nil, "", "application/json", nil)
	if err != nil {
		return nil, err
	}
	var responseBodyValue WikiPage
	err = client.Client.UnmarshalBody(resp, &responseBodyValue)
	var responseValue *WikiPageResponse
	if err == nil {
		responseValue = &WikiPageResponse{
			Page: &responseBodyValue,
			ETag: &[]string{resp.Header.Get("ETag")},
		}
	}
	return responseValue, err
}
[Preview API] Deletes a wiki page.
package wiki
import (
	"bytes"
	"context"
	"encoding/json"
	"github.com/google/uuid"
	"github.com/microsoft/azure-devops-go-api/azuredevops"
	"github.com/microsoft/azure-devops-go-api/azuredevops/git"
	"io"
	"net/http"
	"net/url"
	"strconv"
)
var ResourceAreaId, _ = uuid.Parse("bf7d82a0-8aa5-4613-94ef-6172a5ea01f3")
type Client interface {
	CreateAttachment(context.Context, CreateAttachmentArgs) (*WikiAttachmentResponse, error)
	CreateOrUpdatePage(context.Context, CreateOrUpdatePageArgs) (*WikiPageResponse, error)
	CreatePageMove(context.Context, CreatePageMoveArgs) (*WikiPageMoveResponse, error)
	CreateWiki(context.Context, CreateWikiArgs) (*WikiV2, error)
	DeletePage(context.Context, DeletePageArgs) (*WikiPageResponse, error)
	DeletePageById(context.Context, DeletePageByIdArgs) (*WikiPageResponse, error)
	DeleteWiki(context.Context, DeleteWikiArgs) (*WikiV2, error)
	GetAllWikis(context.Context, GetAllWikisArgs) (*[]WikiV2, error)
	GetPage(context.Context, GetPageArgs) (*WikiPageResponse, error)
	GetPageById(context.Context, GetPageByIdArgs) (*WikiPageResponse, error)
	GetPageByIdText(context.Context, GetPageByIdTextArgs) (io.ReadCloser, error)
	GetPageByIdZip(context.Context, GetPageByIdZipArgs) (io.ReadCloser, error)
	GetPageText(context.Context, GetPageTextArgs) (io.ReadCloser, error)
	GetPageZip(context.Context, GetPageZipArgs) (io.ReadCloser, error)
	GetWiki(context.Context, GetWikiArgs) (*WikiV2, error)
	UpdatePageById(context.Context, UpdatePageByIdArgs) (*WikiPageResponse, error)
	UpdateWiki(context.Context, UpdateWikiArgs) (*WikiV2, error)
}
type ClientImpl struct {
	Client azuredevops.Client
}
func NewClient(ctx context.Context, connection *azuredevops.Connection) (Client, error) {
	client, err := connection.GetClientByResourceAreaId(ctx, ResourceAreaId)
	if err != nil {
		return nil, err
	}
	return &ClientImpl{
		Client: *client,
	}, nil
}
func (client *ClientImpl) CreateAttachment(ctx context.Context, args CreateAttachmentArgs) (*WikiAttachmentResponse, error) {
	if args.UploadStream == nil {
		return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.UploadStream"}
	}
	routeValues := make(map[string]string)
	if args.Project == nil || *args.Project == "" {
		return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"}
	}
	routeValues["project"] = *args.Project
	if args.WikiIdentifier == nil || *args.WikiIdentifier == "" {
		return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.WikiIdentifier"}
	}
	routeValues["wikiIdentifier"] = *args.WikiIdentifier
	queryParams := url.Values{}
	if args.Name == nil {
		return nil, &azuredevops.ArgumentNilError{ArgumentName: "name"}
	}
	queryParams.Add("name", *args.Name)
	if args.VersionDescriptor != nil {
		if args.VersionDescriptor.VersionType != nil {
			queryParams.Add("versionDescriptor.versionType", string(*args.VersionDescriptor.VersionType))
		}
		if args.VersionDescriptor.Version != nil {
			queryParams.Add("versionDescriptor.version", *args.VersionDescriptor.Version)
		}
		if args.VersionDescriptor.VersionOptions != nil {
			queryParams.Add("versionDescriptor.versionOptions", string(*args.VersionDescriptor.VersionOptions))
		}
	}
	locationId, _ := uuid.Parse("c4382d8d-fefc-40e0-92c5-49852e9e17c0")
	resp, err := client.Client.Send(ctx, http.MethodPut, locationId, "5.1", routeValues, queryParams, args.UploadStream, "application/octet-stream", "application/json", nil)
	if err != nil {
		return nil, err
	}
	var responseBodyValue WikiAttachment
	err = client.Client.UnmarshalBody(resp, &responseBodyValue)
	var responseValue *WikiAttachmentResponse
	if err == nil {
		responseValue = &WikiAttachmentResponse{
			Attachment: &responseBodyValue,
			ETag:       &[]string{resp.Header.Get("ETag")},
		}
	}
	return responseValue, err
}
type CreateAttachmentArgs struct {
	UploadStream io.Reader
	Project *string
	WikiIdentifier *string
	Name *string
	VersionDescriptor *git.GitVersionDescriptor
}
func (client *ClientImpl) CreateOrUpdatePage(ctx context.Context, args CreateOrUpdatePageArgs) (*WikiPageResponse, error) {
	if args.Parameters == nil {
		return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.Parameters"}
	}
	routeValues := make(map[string]string)
	if args.Project == nil || *args.Project == "" {
		return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"}
	}
	routeValues["project"] = *args.Project
	if args.WikiIdentifier == nil || *args.WikiIdentifier == "" {
		return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.WikiIdentifier"}
	}
	routeValues["wikiIdentifier"] = *args.WikiIdentifier
	queryParams := url.Values{}
	if args.Path == nil {
		return nil, &azuredevops.ArgumentNilError{ArgumentName: "path"}
	}
	queryParams.Add("path", *args.Path)
	if args.Comment != nil {
		queryParams.Add("comment", *args.Comment)
	}
	if args.VersionDescriptor != nil {
		if args.VersionDescriptor.VersionType != nil {
			queryParams.Add("versionDescriptor.versionType", string(*args.VersionDescriptor.VersionType))
		}
		if args.VersionDescriptor.Version != nil {
			queryParams.Add("versionDescriptor.version", *args.VersionDescriptor.Version)
		}
		if args.VersionDescriptor.VersionOptions != nil {
			queryParams.Add("versionDescriptor.versionOptions", string(*args.VersionDescriptor.VersionOptions))
		}
	}
	additionalHeaders := make(map[string]string)
	if args.Version != nil {
		additionalHeaders["If-Match"] = *args.Version
	}
	body, marshalErr := json.Marshal(*args.Parameters)
	if marshalErr != nil {
		return nil, marshalErr
	}
	locationId, _ := uuid.Parse("25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b")
	resp, err := client.Client.Send(ctx, http.MethodPut, locationId, "5.1", routeValues, queryParams, bytes.NewReader(body), "application/json", "application/json", additionalHeaders)
	if err != nil {
		return nil, err
	}
	var responseBodyValue WikiPage
	err = client.Client.UnmarshalBody(resp, &responseBodyValue)
	var responseValue *WikiPageResponse
	if err == nil {
		responseValue = &WikiPageResponse{
			Page: &responseBodyValue,
			ETag: &[]string{resp.Header.Get("ETag")},
		}
	}
	return responseValue, err
}
type CreateOrUpdatePageArgs struct {
	Parameters *WikiPageCreateOrUpdateParameters
	Project *string
	WikiIdentifier *string
	Path *string
	Version *string
	Comment *string
	VersionDescriptor *git.GitVersionDescriptor
}
func (client *ClientImpl) CreatePageMove(ctx context.Context, args CreatePageMoveArgs) (*WikiPageMoveResponse, error) {
	if args.PageMoveParameters == nil {
		return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.PageMoveParameters"}
	}
	routeValues := make(map[string]string)
	if args.Project == nil || *args.Project == "" {
		return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"}
	}
	routeValues["project"] = *args.Project
	if args.WikiIdentifier == nil || *args.WikiIdentifier == "" {
		return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.WikiIdentifier"}
	}
	routeValues["wikiIdentifier"] = *args.WikiIdentifier
	queryParams := url.Values{}
	if args.Comment != nil {
		queryParams.Add("comment", *args.Comment)
	}
	if args.VersionDescriptor != nil {
		if args.VersionDescriptor.VersionType != nil {
			queryParams.Add("versionDescriptor.versionType", string(*args.VersionDescriptor.VersionType))
		}
		if args.VersionDescriptor.Version != nil {
			queryParams.Add("versionDescriptor.version", *args.VersionDescriptor.Version)
		}
		if args.VersionDescriptor.VersionOptions != nil {
			queryParams.Add("versionDescriptor.versionOptions", string(*args.VersionDescriptor.VersionOptions))
		}
	}
	body, marshalErr := json.Marshal(*args.PageMoveParameters)
	if marshalErr != nil {
		return nil, marshalErr
	}
	locationId, _ := uuid.Parse("e37bbe71-cbae-49e5-9a4e-949143b9d910")
	resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", routeValues, queryParams, bytes.NewReader(body), "application/json", "application/json", nil)
	if err != nil {
		return nil, err
	}
	var responseBodyValue WikiPageMove
	err = client.Client.UnmarshalBody(resp, &responseBodyValue)
	var responseValue *WikiPageMoveResponse
	if err == nil {
		responseValue = &WikiPageMoveResponse{
			PageMove: &responseBodyValue,
			ETag:     &[]string{resp.Header.Get("ETag")},
		}
	}
	return responseValue, err
}
type CreatePageMoveArgs struct {
	PageMoveParameters *WikiPageMoveParameters
	Project *string
	WikiIdentifier *string
	Comment *string
	VersionDescriptor *git.GitVersionDescriptor
}
func (client *ClientImpl) CreateWiki(ctx context.Context, args CreateWikiArgs) (*WikiV2, error) {
	if args.WikiCreateParams == nil {
		return nil, &azuredevops.ArgumentNilError{ArgumentName: "args.WikiCreateParams"}
	}
	routeValues := make(map[string]string)
	if args.Project != nil && *args.Project != "" {
		routeValues["project"] = *args.Project
	}
	body, marshalErr := json.Marshal(*args.WikiCreateParams)
	if marshalErr != nil {
		return nil, marshalErr
	}
	locationId, _ := uuid.Parse("288d122c-dbd4-451d-aa5f-7dbbba070728")
	resp, err := client.Client.Send(ctx, http.MethodPost, locationId, "5.1", routeValues, nil, bytes.NewReader(body), "application/json", "application/json", nil)
	if err != nil {
		return nil, err
	}
	var responseValue WikiV2
	err = client.Client.UnmarshalBody(resp, &responseValue)
	return &responseValue, err
}
type CreateWikiArgs struct {
	WikiCreateParams *WikiCreateParametersV2
	Project *string
}
func (client *ClientImpl) DeletePage(ctx context.Context, args DeletePageArgs) (*WikiPageResponse, error) {
	routeValues := make(map[string]string)
	if args.Project == nil || *args.Project == "" {
		return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.Project"}
	}
	routeValues["project"] = *args.Project
	if args.WikiIdentifier == nil || *args.WikiIdentifier == "" {
		return nil, &azuredevops.ArgumentNilOrEmptyError{ArgumentName: "args.WikiIdentifier"}
	}
	routeValues["wikiIdentifier"] = *args.WikiIdentifier
	queryParams := url.Values{}
	if args.Path == nil {
		return nil, &azuredevops.ArgumentNilError{ArgumentName: "path"}
	}
	queryParams.Add("path", *args.Path)
	if args.Comment != nil {
		queryParams.Add("comment", *args.Comment)
	}
	if args.VersionDescriptor != nil {
		if args.VersionDescriptor.VersionType != nil {
			queryParams.Add("versionDescriptor.versionType", string(*args.VersionDescriptor.VersionType))
		}
		if args.VersionDescriptor.Version != nil {
			queryParams.Add("versionDescriptor.version", *args.VersionDescriptor.Version)
		}
		if args.VersionDescriptor.VersionOptions != nil {
			queryParams.Add("versionDescriptor.versionOptions", string(*args.VersionDescriptor.VersionOptions))
		}
	}
	locationId, _ := uuid.Parse("25d3fbc7-fe3d-46cb-b5a5-0b6f79caf27b")
	resp, err := client.Client.Send(ctx, http.MethodDelete, locationId, "5.1", routeValues, queryParams, nil, "", "application/json", nil)
	if err != nil {
		return nil, err
	}
	var responseBodyValue WikiPage
	err = client.Client.UnmarshalBody(resp, &responseBodyValue)
	var responseValue *WikiPageResponse
	if err == nil {
		responseValue = &WikiPageResponse{
			Page: &responseBodyValue,
			ETag: &[]string{resp.Header.Get("ETag")},
		}
	}
	return responseValue, err
}
type DeletePageArgs struct {
	Project *string
	WikiIdentifier *string
	Path *string
	Comment *string
	VersionDescriptor *git.GitVersionDescriptor
}