From 5c1c1baebf4b165a4dd8df19dfd4ff38bdca976d Mon Sep 17 00:00:00 2001 From: Gerardo Lecaros <10088504+glecaros@users.noreply.github.com> Date: Tue, 12 Nov 2024 19:09:29 +0000 Subject: [PATCH 01/33] hash+gen --- sdk/ai/azopenaiassistants/client.go | 78 +++++++++---------- sdk/ai/azopenaiassistants/constants.go | 16 ---- .../internal/transform/transform.go | 20 +---- sdk/ai/azopenaiassistants/models.go | 17 ++-- sdk/ai/azopenaiassistants/models_serde.go | 39 +++------- .../testdata/tsp-location.yaml | 2 +- 6 files changed, 64 insertions(+), 108 deletions(-) diff --git a/sdk/ai/azopenaiassistants/client.go b/sdk/ai/azopenaiassistants/client.go index d6ab9bfc959a..e8db46718417 100644 --- a/sdk/ai/azopenaiassistants/client.go +++ b/sdk/ai/azopenaiassistants/client.go @@ -33,7 +33,7 @@ type Client struct { // CancelRun - Cancels a run of an in progress thread. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread being run. // - runID - The ID of the run to cancel. // - options - CancelRunOptions contains the optional parameters for the Client.CancelRun method. @@ -87,7 +87,7 @@ func (client *Client) cancelRunHandleResponse(resp *http.Response) (CancelRunRes // batch as soon as possible. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - vectorStoreID - The ID of the vector store that the file batch belongs to. // - batchID - The ID of the file batch to cancel. // - options - CancelVectorStoreFileBatchOptions contains the optional parameters for the Client.CancelVectorStoreFileBatch @@ -141,7 +141,7 @@ func (client *Client) cancelVectorStoreFileBatchHandleResponse(resp *http.Respon // CreateAssistant - Creates a new assistant. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - body - The request details to use when creating a new assistant. // - options - CreateAssistantOptions contains the optional parameters for the Client.CreateAssistant method. func (client *Client) CreateAssistant(ctx context.Context, body CreateAssistantBody, options *CreateAssistantOptions) (CreateAssistantResponse, error) { @@ -188,7 +188,7 @@ func (client *Client) createAssistantHandleResponse(resp *http.Response) (Create // CreateMessage - Creates a new message on a specified thread. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread to create the new message on. // - body - A single message within an assistant thread, as provided during that thread's creation for its initial state. // - options - CreateMessageOptions contains the optional parameters for the Client.CreateMessage method. @@ -240,7 +240,7 @@ func (client *Client) createMessageHandleResponse(resp *http.Response) (CreateMe // CreateRun - Creates a new run for an assistant thread. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread to run. // - createRunBody - The details used when creating a new run of an assistant thread. // - options - CreateRunOptions contains the optional parameters for the Client.CreateRun method. @@ -292,7 +292,7 @@ func (client *Client) createRunHandleResponse(resp *http.Response) (CreateRunRes // CreateThread - Creates a new thread. Threads contain messages and can be run by assistants. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - body - The details used to create a new assistant thread. // - options - CreateThreadOptions contains the optional parameters for the Client.CreateThread method. func (client *Client) CreateThread(ctx context.Context, body CreateThreadBody, options *CreateThreadOptions) (CreateThreadResponse, error) { @@ -339,7 +339,7 @@ func (client *Client) createThreadHandleResponse(resp *http.Response) (CreateThr // CreateThreadAndRun - Creates a new assistant thread and immediately starts a run using that new thread. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - body - The details used when creating and immediately running a new assistant thread. // - options - CreateThreadAndRunOptions contains the optional parameters for the Client.CreateThreadAndRun method. func (client *Client) CreateThreadAndRun(ctx context.Context, body CreateAndRunThreadBody, options *CreateThreadAndRunOptions) (CreateThreadAndRunResponse, error) { @@ -386,7 +386,7 @@ func (client *Client) createThreadAndRunHandleResponse(resp *http.Response) (Cre // CreateVectorStore - Creates a vector store. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - body - Request object for creating a vector store. // - options - CreateVectorStoreOptions contains the optional parameters for the Client.CreateVectorStore method. func (client *Client) CreateVectorStore(ctx context.Context, body VectorStoreBody, options *CreateVectorStoreOptions) (CreateVectorStoreResponse, error) { @@ -433,7 +433,7 @@ func (client *Client) createVectorStoreHandleResponse(resp *http.Response) (Crea // CreateVectorStoreFile - Create a vector store file by attaching a file to a vector store. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - vectorStoreID - The ID of the vector store for which to create a File. // - body - Request object for creating a vector store file. // - options - CreateVectorStoreFileOptions contains the optional parameters for the Client.CreateVectorStoreFile method. @@ -485,7 +485,7 @@ func (client *Client) createVectorStoreFileHandleResponse(resp *http.Response) ( // CreateVectorStoreFileBatch - Create a vector store file batch. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - vectorStoreID - The ID of the vector store for which to create a File Batch. // - options - CreateVectorStoreFileBatchOptions contains the optional parameters for the Client.CreateVectorStoreFileBatch // method. @@ -537,7 +537,7 @@ func (client *Client) createVectorStoreFileBatchHandleResponse(resp *http.Respon // DeleteAssistant - Deletes an assistant. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - assistantID - The ID of the assistant to delete. // - options - DeleteAssistantOptions contains the optional parameters for the Client.DeleteAssistant method. func (client *Client) DeleteAssistant(ctx context.Context, assistantID string, options *DeleteAssistantOptions) (DeleteAssistantResponse, error) { @@ -585,7 +585,7 @@ func (client *Client) deleteAssistantHandleResponse(resp *http.Response) (Delete // DeleteFile - Delete a previously uploaded file. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - fileID - The ID of the file to delete. // - options - DeleteFileOptions contains the optional parameters for the Client.DeleteFile method. func (client *Client) DeleteFile(ctx context.Context, fileID string, options *DeleteFileOptions) (DeleteFileResponse, error) { @@ -633,7 +633,7 @@ func (client *Client) deleteFileHandleResponse(resp *http.Response) (DeleteFileR // DeleteThread - Deletes an existing thread. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread to delete. // - options - DeleteThreadOptions contains the optional parameters for the Client.DeleteThread method. func (client *Client) DeleteThread(ctx context.Context, threadID string, options *DeleteThreadOptions) (DeleteThreadResponse, error) { @@ -681,7 +681,7 @@ func (client *Client) deleteThreadHandleResponse(resp *http.Response) (DeleteThr // DeleteVectorStore - Deletes the vector store object matching the specified ID. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - vectorStoreID - The ID of the vector store to delete. // - options - DeleteVectorStoreOptions contains the optional parameters for the Client.DeleteVectorStore method. func (client *Client) DeleteVectorStore(ctx context.Context, vectorStoreID string, options *DeleteVectorStoreOptions) (DeleteVectorStoreResponse, error) { @@ -730,7 +730,7 @@ func (client *Client) deleteVectorStoreHandleResponse(resp *http.Response) (Dele // will not be deleted. To delete the file, use the delete file endpoint. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - vectorStoreID - The ID of the vector store that the file belongs to. // - fileID - The ID of the file to delete its relationship to the vector store. // - options - DeleteVectorStoreFileOptions contains the optional parameters for the Client.DeleteVectorStoreFile method. @@ -783,7 +783,7 @@ func (client *Client) deleteVectorStoreFileHandleResponse(resp *http.Response) ( // GetAssistant - Retrieves an existing assistant. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - assistantID - The ID of the assistant to retrieve. // - options - GetAssistantOptions contains the optional parameters for the Client.GetAssistant method. func (client *Client) GetAssistant(ctx context.Context, assistantID string, options *GetAssistantOptions) (GetAssistantResponse, error) { @@ -831,7 +831,7 @@ func (client *Client) getAssistantHandleResponse(resp *http.Response) (GetAssist // GetFile - Returns information about a specific file. Does not retrieve file content. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - fileID - The ID of the file to retrieve. // - options - GetFileOptions contains the optional parameters for the Client.GetFile method. func (client *Client) GetFile(ctx context.Context, fileID string, options *GetFileOptions) (GetFileResponse, error) { @@ -879,7 +879,7 @@ func (client *Client) getFileHandleResponse(resp *http.Response) (GetFileRespons // GetMessage - Gets an existing message from an existing thread. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread to retrieve the specified message from. // - messageID - The ID of the message to retrieve from the specified thread. // - options - GetMessageOptions contains the optional parameters for the Client.GetMessage method. @@ -932,7 +932,7 @@ func (client *Client) getMessageHandleResponse(resp *http.Response) (GetMessageR // GetRun - Gets an existing run from an existing thread. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread to retrieve run information from. // - runID - The ID of the thread to retrieve information about. // - options - GetRunOptions contains the optional parameters for the Client.GetRun method. @@ -985,7 +985,7 @@ func (client *Client) getRunHandleResponse(resp *http.Response) (GetRunResponse, // GetRunStep - Gets a single run step from a thread run. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread that was run. // - runID - The ID of the specific run to retrieve the step from. // - stepID - The ID of the step to retrieve information about. @@ -1043,7 +1043,7 @@ func (client *Client) getRunStepHandleResponse(resp *http.Response) (GetRunStepR // GetThread - Gets information about an existing thread. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread to retrieve information about. // - options - GetThreadOptions contains the optional parameters for the Client.GetThread method. func (client *Client) GetThread(ctx context.Context, threadID string, options *GetThreadOptions) (GetThreadResponse, error) { @@ -1091,7 +1091,7 @@ func (client *Client) getThreadHandleResponse(resp *http.Response) (GetThreadRes // GetVectorStore - Returns the vector store object matching the specified ID. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - vectorStoreID - The ID of the vector store to retrieve. // - options - GetVectorStoreOptions contains the optional parameters for the Client.GetVectorStore method. func (client *Client) GetVectorStore(ctx context.Context, vectorStoreID string, options *GetVectorStoreOptions) (GetVectorStoreResponse, error) { @@ -1139,7 +1139,7 @@ func (client *Client) getVectorStoreHandleResponse(resp *http.Response) (GetVect // GetVectorStoreFile - Retrieves a vector store file. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - vectorStoreID - The ID of the vector store that the file belongs to. // - fileID - The ID of the file being retrieved. // - options - GetVectorStoreFileOptions contains the optional parameters for the Client.GetVectorStoreFile method. @@ -1192,7 +1192,7 @@ func (client *Client) getVectorStoreFileHandleResponse(resp *http.Response) (Get // GetVectorStoreFileBatch - Retrieve a vector store file batch. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - vectorStoreID - The ID of the vector store that the file batch belongs to. // - batchID - The ID of the file batch being retrieved. // - options - GetVectorStoreFileBatchOptions contains the optional parameters for the Client.GetVectorStoreFileBatch @@ -1246,7 +1246,7 @@ func (client *Client) getVectorStoreFileBatchHandleResponse(resp *http.Response) // ListAssistants - Gets a list of assistants that were previously created. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - options - ListAssistantsOptions contains the optional parameters for the Client.ListAssistants method. func (client *Client) internalListAssistants(ctx context.Context, options *ListAssistantsOptions) (ListAssistantsResponse, error) { var err error @@ -1303,7 +1303,7 @@ func (client *Client) listAssistantsHandleResponse(resp *http.Response) (ListAss // ListFiles - Gets a list of previously uploaded files. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - options - ListFilesOptions contains the optional parameters for the Client.ListFiles method. func (client *Client) ListFiles(ctx context.Context, options *ListFilesOptions) (ListFilesResponse, error) { var err error @@ -1351,7 +1351,7 @@ func (client *Client) listFilesHandleResponse(resp *http.Response) (ListFilesRes // ListMessages - Gets a list of messages that exist on a thread. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread to list messages from. // - options - ListMessagesOptions contains the optional parameters for the Client.ListMessages method. func (client *Client) internalListMessages(ctx context.Context, threadID string, options *ListMessagesOptions) (ListMessagesResponse, error) { @@ -1416,7 +1416,7 @@ func (client *Client) listMessagesHandleResponse(resp *http.Response) (ListMessa // ListRunSteps - Gets a list of run steps from a thread run. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread that was run. // - runID - The ID of the run to list steps from. // - options - ListRunStepsOptions contains the optional parameters for the Client.ListRunSteps method. @@ -1483,7 +1483,7 @@ func (client *Client) listRunStepsHandleResponse(resp *http.Response) (ListRunSt // ListRuns - Gets a list of runs for a specified thread. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread to list runs from. // - options - ListRunsOptions contains the optional parameters for the Client.ListRuns method. func (client *Client) internalListRuns(ctx context.Context, threadID string, options *ListRunsOptions) (ListRunsResponse, error) { @@ -1545,7 +1545,7 @@ func (client *Client) listRunsHandleResponse(resp *http.Response) (ListRunsRespo // ListVectorStoreFileBatchFiles - Returns a list of vector store files in a batch. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - vectorStoreID - The ID of the vector store that the file batch belongs to. // - batchID - The ID of the file batch that the files belong to. // - options - ListVectorStoreFileBatchFilesOptions contains the optional parameters for the Client.ListVectorStoreFileBatchFiles @@ -1616,7 +1616,7 @@ func (client *Client) listVectorStoreFileBatchFilesHandleResponse(resp *http.Res // ListVectorStoreFiles - Returns a list of vector store files. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - vectorStoreID - The ID of the vector store that the files belong to. // - options - ListVectorStoreFilesOptions contains the optional parameters for the Client.ListVectorStoreFiles method. func (client *Client) internalListVectorStoreFiles(ctx context.Context, vectorStoreID string, options *ListVectorStoreFilesOptions) (ListVectorStoreFilesResponse, error) { @@ -1681,7 +1681,7 @@ func (client *Client) listVectorStoreFilesHandleResponse(resp *http.Response) (L // ListVectorStores - Returns a list of vector stores. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - options - ListVectorStoresOptions contains the optional parameters for the Client.ListVectorStores method. func (client *Client) internalListVectorStores(ctx context.Context, options *ListVectorStoresOptions) (ListVectorStoresResponse, error) { var err error @@ -1738,7 +1738,7 @@ func (client *Client) listVectorStoresHandleResponse(resp *http.Response) (ListV // ModifyVectorStore - The ID of the vector store to modify. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - vectorStoreID - The ID of the vector store to modify. // - body - Request object for updating a vector store. // - options - ModifyVectorStoreOptions contains the optional parameters for the Client.ModifyVectorStore method. @@ -1791,7 +1791,7 @@ func (client *Client) modifyVectorStoreHandleResponse(resp *http.Response) (Modi // outputs will have a status of 'requiresaction' with a requiredaction.type of 'submittooloutputs'. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread that was run. // - runID - The ID of the run that requires tool outputs. // - options - SubmitToolOutputsToRunOptions contains the optional parameters for the Client.SubmitToolOutputsToRun method. @@ -1847,7 +1847,7 @@ func (client *Client) submitToolOutputsToRunHandleResponse(resp *http.Response) // UpdateAssistant - Modifies an existing assistant. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - assistantID - The ID of the assistant to modify. // - body - The request details to use when modifying an existing assistant. // - options - UpdateAssistantOptions contains the optional parameters for the Client.UpdateAssistant method. @@ -1899,7 +1899,7 @@ func (client *Client) updateAssistantHandleResponse(resp *http.Response) (Update // UpdateMessage - Modifies an existing message on an existing thread. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread containing the specified message to modify. // - messageID - The ID of the message to modify on the specified thread. // - options - UpdateMessageOptions contains the optional parameters for the Client.UpdateMessage method. @@ -1955,7 +1955,7 @@ func (client *Client) updateMessageHandleResponse(resp *http.Response) (UpdateMe // UpdateRun - Modifies an existing thread run. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread associated with the specified run. // - runID - The ID of the run to modify. // - options - UpdateRunOptions contains the optional parameters for the Client.UpdateRun method. @@ -2011,7 +2011,7 @@ func (client *Client) updateRunHandleResponse(resp *http.Response) (UpdateRunRes // UpdateThread - Modifies an existing thread. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - threadID - The ID of the thread to modify. // - body - The details used to update an existing assistant thread. // - options - UpdateThreadOptions contains the optional parameters for the Client.UpdateThread method. @@ -2063,7 +2063,7 @@ func (client *Client) updateThreadHandleResponse(resp *http.Response) (UpdateThr // UploadFile - Uploads a file for use by other operations. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-01-preview +// Generated from API version 2024-10-01-preview // - file - The file data (not filename) to upload. // - purpose - The intended purpose of the file. // - options - UploadFileOptions contains the optional parameters for the Client.UploadFile method. diff --git a/sdk/ai/azopenaiassistants/constants.go b/sdk/ai/azopenaiassistants/constants.go index 8a2f14260b9f..a946c09271bf 100644 --- a/sdk/ai/azopenaiassistants/constants.go +++ b/sdk/ai/azopenaiassistants/constants.go @@ -322,22 +322,6 @@ func PossibleListSortOrderValues() []ListSortOrder { } } -// MessageAttachmentToolAssignmentType - The type of the tool being selected. -type MessageAttachmentToolAssignmentType string - -const ( - MessageAttachmentToolAssignmentTypeCodeInterpreter MessageAttachmentToolAssignmentType = "code_interpreter" - MessageAttachmentToolAssignmentTypeFileSearch MessageAttachmentToolAssignmentType = "file_search" -) - -// PossibleMessageAttachmentToolAssignmentTypeValues returns the possible values for the MessageAttachmentToolAssignmentType const type. -func PossibleMessageAttachmentToolAssignmentTypeValues() []MessageAttachmentToolAssignmentType { - return []MessageAttachmentToolAssignmentType{ - MessageAttachmentToolAssignmentTypeCodeInterpreter, - MessageAttachmentToolAssignmentTypeFileSearch, - } -} - // MessageIncompleteDetailsReason - A set of reasons describing why a message is marked as incomplete. type MessageIncompleteDetailsReason string diff --git a/sdk/ai/azopenaiassistants/internal/transform/transform.go b/sdk/ai/azopenaiassistants/internal/transform/transform.go index 2d547a425f45..5b3eb4d66b2d 100644 --- a/sdk/ai/azopenaiassistants/internal/transform/transform.go +++ b/sdk/ai/azopenaiassistants/internal/transform/transform.go @@ -266,24 +266,8 @@ func (t *transformer) replaceDocs() error { log.Printf("replaceDocs()") err := transformFiles(t.fileCache, "replaceDocs", []string{"client.go"}, func(text string) (string, error) { - docString := ` -// CreateVectorStoreFile - Create a vector store file by attaching a file to a vector store. -// If the operation fails it returns an *azcore.ResponseError type. -// -// Generated from API version 2024-07-01-preview -// - vectorStoreID - The ID of the vector store for which to create a File. -// - options - CreateVectorStoreFileOptions contains the optional parameters for the Client.CreateVectorStoreFile method. -` - newDocString := ` -// CreateVectorStoreFile - Create a vector store file by attaching a file to a vector store. -// If the operation fails it returns an *azcore.ResponseError type. -// -// Generated from API version 2024-07-01-preview -// - vectorStoreID - The ID of the vector store for which to create a File. -// - body - Request object for creating a vector store file. -// - options - CreateVectorStoreFileOptions contains the optional parameters for the Client.CreateVectorStoreFile method. -` - text = strings.ReplaceAll(text, docString, newDocString) + docStringRE := regexp.MustCompile(`(?s)(- options - CreateVectorStoreFileOptions)`) + text = docStringRE.ReplaceAllString(text, " - body - Request object for creating a vector store file.\n"+`// $1`) return text, nil }, nil) return err diff --git a/sdk/ai/azopenaiassistants/models.go b/sdk/ai/azopenaiassistants/models.go index 9b7d28878200..e98761cfdaed 100644 --- a/sdk/ai/azopenaiassistants/models.go +++ b/sdk/ai/azopenaiassistants/models.go @@ -216,6 +216,9 @@ type CreateAndRunThreadBody struct { // values may be up to 512 characters in length. Metadata map[string]*string + // Whether to enable parallel function calling during tool use. + ParallelToolCalls *bool + // Specifies the format that the model must output. ResponseFormat *AssistantResponseFormat @@ -388,6 +391,9 @@ type CreateRunBody struct { // The overridden model name that the assistant should use to run the thread. Model *string + // Whether to enable parallel function calling during tool use. + ParallelToolCalls *bool + // Specifies the format that the model must output. ResponseFormat *AssistantResponseFormat @@ -554,13 +560,7 @@ type MessageAttachment struct { FileID *string // REQUIRED; The tools to add to this file. - Tools []MessageAttachmentToolAssignment -} - -// MessageAttachmentToolAssignment - The possible tools to which files will be added by this message -type MessageAttachmentToolAssignment struct { - // REQUIRED; The type of the tool being selected. - Type *MessageAttachmentToolAssignmentType + Tools []any } // MessageContent - An abstract representation of a single item of thread message content. @@ -1700,6 +1700,9 @@ type ThreadRun struct { // REQUIRED; The object type, which is always 'thread.run'. Object *string + // REQUIRED; Whether to enable parallel function calling during tool use. + ParallelToolCalls *bool + // REQUIRED; The response format of the tool calls used in this run. ResponseFormat *AssistantResponseFormat diff --git a/sdk/ai/azopenaiassistants/models_serde.go b/sdk/ai/azopenaiassistants/models_serde.go index f9a0bd4560ac..36971e5177c0 100644 --- a/sdk/ai/azopenaiassistants/models_serde.go +++ b/sdk/ai/azopenaiassistants/models_serde.go @@ -426,6 +426,7 @@ func (c CreateAndRunThreadBody) MarshalJSON() ([]byte, error) { populate(objectMap, "max_completion_tokens", c.MaxCompletionTokens) populate(objectMap, "max_prompt_tokens", c.MaxPromptTokens) populate(objectMap, "metadata", c.Metadata) + populate(objectMap, "parallel_tool_calls", c.ParallelToolCalls) populate(objectMap, "response_format", c.ResponseFormat) populate(objectMap, "stream", c.stream) populate(objectMap, "temperature", c.Temperature) @@ -465,6 +466,9 @@ func (c *CreateAndRunThreadBody) UnmarshalJSON(data []byte) error { case "metadata": err = unpopulate(val, "Metadata", &c.Metadata) delete(rawMsg, key) + case "parallel_tool_calls": + err = unpopulate(val, "ParallelToolCalls", &c.ParallelToolCalls) + delete(rawMsg, key) case "response_format": err = unpopulate(val, "ResponseFormat", &c.ResponseFormat) delete(rawMsg, key) @@ -737,6 +741,7 @@ func (c CreateRunBody) MarshalJSON() ([]byte, error) { populate(objectMap, "max_prompt_tokens", c.MaxPromptTokens) populate(objectMap, "metadata", c.Metadata) populate(objectMap, "model", c.Model) + populate(objectMap, "parallel_tool_calls", c.ParallelToolCalls) populate(objectMap, "response_format", c.ResponseFormat) populate(objectMap, "stream", c.stream) populate(objectMap, "temperature", c.Temperature) @@ -780,6 +785,9 @@ func (c *CreateRunBody) UnmarshalJSON(data []byte) error { case "model": err = unpopulate(val, "Model", &c.Model) delete(rawMsg, key) + case "parallel_tool_calls": + err = unpopulate(val, "ParallelToolCalls", &c.ParallelToolCalls) + delete(rawMsg, key) case "response_format": err = unpopulate(val, "ResponseFormat", &c.ResponseFormat) delete(rawMsg, key) @@ -1212,33 +1220,6 @@ func (m *MessageAttachment) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MessageAttachmentToolAssignment. -func (m MessageAttachmentToolAssignment) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]any) - populate(objectMap, "type", m.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type MessageAttachmentToolAssignment. -func (m *MessageAttachmentToolAssignment) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "type": - err = unpopulate(val, "Type", &m.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type MessageContent. func (m MessageContent) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -3740,6 +3721,7 @@ func (t ThreadRun) MarshalJSON() ([]byte, error) { populate(objectMap, "metadata", t.Metadata) populate(objectMap, "model", t.Model) objectMap["object"] = "thread.run" + populate(objectMap, "parallel_tool_calls", t.ParallelToolCalls) populate(objectMap, "required_action", t.RequiredAction) populate(objectMap, "response_format", t.ResponseFormat) populateTimeUnix(objectMap, "started_at", t.StartedAt) @@ -3808,6 +3790,9 @@ func (t *ThreadRun) UnmarshalJSON(data []byte) error { case "object": err = unpopulate(val, "Object", &t.Object) delete(rawMsg, key) + case "parallel_tool_calls": + err = unpopulate(val, "ParallelToolCalls", &t.ParallelToolCalls) + delete(rawMsg, key) case "required_action": t.RequiredAction, err = unmarshalRequiredActionClassification(val) delete(rawMsg, key) diff --git a/sdk/ai/azopenaiassistants/testdata/tsp-location.yaml b/sdk/ai/azopenaiassistants/testdata/tsp-location.yaml index eb22bfa29d48..84a5ad727f91 100644 --- a/sdk/ai/azopenaiassistants/testdata/tsp-location.yaml +++ b/sdk/ai/azopenaiassistants/testdata/tsp-location.yaml @@ -1,5 +1,5 @@ #location: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/cacb3dc095486d8691c47dea944fc9ed0f4d0e32/specification/ai/OpenAI.Assistants/client.tsp directory: specification/ai/OpenAI.Assistants # https://github.com/Azure/azure-rest-api-specs/pull/29067 -commit: eb46d197d57e1f71f1819f37779f387f20c344e9 +commit: ea5bac870d87ff0424a4e4f5c448b0a66890838d repo: Azure/azure-rest-api-specs From 973425b0278b86917489a51a85bab314eb77da31 Mon Sep 17 00:00:00 2001 From: ripark Date: Tue, 12 Nov 2024 12:40:16 -0800 Subject: [PATCH 02/33] Adding in MessageAttachmentToolDefinition --- sdk/ai/azopenai/custom_models.go | 23 +++++++++++ sdk/ai/azopenaiassistants/autorest.md | 16 ++++++++ sdk/ai/azopenaiassistants/client_test.go | 17 +++----- sdk/ai/azopenaiassistants/models.go | 2 +- sdk/ai/azopenaiassistants/models_custom.go | 46 ++++++++++++++++++++++ 5 files changed, 92 insertions(+), 12 deletions(-) diff --git a/sdk/ai/azopenai/custom_models.go b/sdk/ai/azopenai/custom_models.go index 29f81ae1fa15..8e9fe4611adb 100644 --- a/sdk/ai/azopenai/custom_models.go +++ b/sdk/ai/azopenai/custom_models.go @@ -283,3 +283,26 @@ func NewMongoDBChatExtensionParametersEmbeddingDependency[T OnYourDataDeployment func (c MongoDBChatExtensionParametersEmbeddingDependency) MarshalJSON() ([]byte, error) { return json.Marshal(c.value) } + +// MessageAttachmentToolDefinition contains the content for a [ChatRequestToolMessage]. +// NOTE: This should be created using [azopenai.NewMessageAttachmentToolDefinition] +type MessageAttachmentToolDefinition struct { + value any +} + +// MarshalJSON implements the json.Marshaller interface for type MessageAttachmentToolDefinition. +func (c MessageAttachmentToolDefinition) MarshalJSON() ([]byte, error) { + return json.Marshal(c.value) +} + +// NewMessageAttachmentToolDefinition creates a [azopenai.MessageAttachmentToolDefinition]. +func NewMessageAttachmentToolDefinition[T CodeInterpreterToolDefinition | FileSearchToolDefinition](value T) *MessageAttachmentToolDefinition { + switch any(value).(type) { + case []CodeInterpreterToolDefinition: + return &MessageAttachmentToolDefinition{value: value} + case FileSearchToolDefinition: + return &MessageAttachmentToolDefinition{value: value} + default: + panic(fmt.Sprintf("Invalid type %T for MessageAttachmentToolDefinition", value)) + } +} diff --git a/sdk/ai/azopenaiassistants/autorest.md b/sdk/ai/azopenaiassistants/autorest.md index cfef00356f3b..dd54872470e8 100644 --- a/sdk/ai/azopenaiassistants/autorest.md +++ b/sdk/ai/azopenaiassistants/autorest.md @@ -155,6 +155,22 @@ directive: return $; ``` +MessageAttachmentToolDefinition + +```yaml +directive: + - from: swagger-document + where: $.definitions + transform: | + // create the dummy type that I can use to point to my manually created union + $.MessageAttachmentToolDefinition = { + "x-ms-external": true, + "type": "object", + "properties": { "ignored": { "type": "string" } }, + "x-ms-client-name": "MessageAttachmentToolDefinition" + }; +``` + ## Model -> DeploymentName ```yaml diff --git a/sdk/ai/azopenaiassistants/client_test.go b/sdk/ai/azopenaiassistants/client_test.go index a29701e6d69c..2af3043a0cbf 100644 --- a/sdk/ai/azopenaiassistants/client_test.go +++ b/sdk/ai/azopenaiassistants/client_test.go @@ -157,9 +157,9 @@ func TestAssistantMessages(t *testing.T) { Attachments: []azopenaiassistants.MessageAttachment{ { FileID: uploadResp.ID, - Tools: []azopenaiassistants.MessageAttachmentToolAssignment{ - {Type: to.Ptr(azopenaiassistants.MessageAttachmentToolAssignmentTypeCodeInterpreter)}, - {Type: to.Ptr(azopenaiassistants.MessageAttachmentToolAssignmentTypeFileSearch)}, + Tools: []azopenaiassistants.MessageAttachmentToolDefinition{ + {CodeInterpreterToolDefinition: &azopenaiassistants.CodeInterpreterToolDefinition{}}, + {FileSearchToolDefinition: &azopenaiassistants.FileSearchToolDefinition{}}, }, }, }, @@ -169,17 +169,12 @@ func TestAssistantMessages(t *testing.T) { attachmentTools := messageResp.Attachments[0].Tools // just trying to keep a consistent ordering of the tools for our checks. - if *attachmentTools[0].Type == azopenaiassistants.MessageAttachmentToolAssignmentTypeFileSearch { + if attachmentTools[0].FileSearchToolDefinition != nil { attachmentTools[0], attachmentTools[1] = attachmentTools[1], attachmentTools[0] } - require.Equal(t, azopenaiassistants.MessageAttachmentToolAssignment{ - Type: to.Ptr(azopenaiassistants.MessageAttachmentToolAssignmentType("code_interpreter")), - }, attachmentTools[0]) - - require.Equal(t, azopenaiassistants.MessageAttachmentToolAssignment{ - Type: to.Ptr(azopenaiassistants.MessageAttachmentToolAssignmentType("file_search")), - }, attachmentTools[1]) + require.NotNil(t, attachmentTools[0].CodeInterpreterToolDefinition) + require.NotNil(t, attachmentTools[1].FileSearchToolDefinition) messageID := messageResp.ID diff --git a/sdk/ai/azopenaiassistants/models.go b/sdk/ai/azopenaiassistants/models.go index e98761cfdaed..13003befa3e8 100644 --- a/sdk/ai/azopenaiassistants/models.go +++ b/sdk/ai/azopenaiassistants/models.go @@ -560,7 +560,7 @@ type MessageAttachment struct { FileID *string // REQUIRED; The tools to add to this file. - Tools []any + Tools []MessageAttachmentToolDefinition } // MessageContent - An abstract representation of a single item of thread message content. diff --git a/sdk/ai/azopenaiassistants/models_custom.go b/sdk/ai/azopenaiassistants/models_custom.go index d906f58e2d35..5b5ced74e843 100644 --- a/sdk/ai/azopenaiassistants/models_custom.go +++ b/sdk/ai/azopenaiassistants/models_custom.go @@ -5,6 +5,7 @@ package azopenaiassistants import ( "encoding/json" + "errors" "fmt" ) @@ -151,3 +152,48 @@ func unmarshalStringOrObject[T any](jsonBytes []byte) (string, *T, error) { return "", model, nil } + +// MessageAttachmentToolDefinition contains the content for a [ChatRequestToolMessage]. +// NOTE: This should be created using [azopenai.NewMessageAttachmentToolDefinition] +type MessageAttachmentToolDefinition struct { + *CodeInterpreterToolDefinition + *FileSearchToolDefinition +} + +// MarshalJSON implements the json.Marshaller interface for type MessageAttachmentToolDefinition. +func (m MessageAttachmentToolDefinition) MarshalJSON() ([]byte, error) { + if m.CodeInterpreterToolDefinition != nil && m.FileSearchToolDefinition != nil { + return nil, errors.New("only one tool definition should be set in MessageAttachmentToolDefinition") + } + + switch { + case m.CodeInterpreterToolDefinition != nil: + return json.Marshal(m.CodeInterpreterToolDefinition) + case m.FileSearchToolDefinition != nil: + return json.Marshal(m.FileSearchToolDefinition) + default: + return nil, errors.New("no tool definition was set in MessageAttachmentToolDefinition") + } +} + +// UnmarshalJSON implements the json.Marshaller interface for type MessageAttachmentToolDefinition. +func (m *MessageAttachmentToolDefinition) UnmarshalJSON(data []byte) error { + // There's only two types right now (CodeInterpreterToolDefinition and FileSearchToolDefinition) + // and CodeInterpreterToolDefinition is a subset of FileSearchToolDefinition + var toolDef *FileSearchToolDefinition + + if err := json.Unmarshal(data, &toolDef); err != nil { + return err + } + + switch *toolDef.Type { + case "code_interpreter": + m.CodeInterpreterToolDefinition = &CodeInterpreterToolDefinition{Type: toolDef.Type} + return nil + case "file_search": + m.FileSearchToolDefinition = toolDef + return nil + default: + return fmt.Errorf("unhandled tool definition type %s", *toolDef.Type) + } +} From e9ba07ebb06b51317b3cbaed8a83683c3ed32f9a Mon Sep 17 00:00:00 2001 From: Richard Park <51494936+richardpark-msft@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:04:56 -0800 Subject: [PATCH 03/33] Accidental copy/paste --- sdk/ai/azopenai/custom_models.go | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/sdk/ai/azopenai/custom_models.go b/sdk/ai/azopenai/custom_models.go index 8e9fe4611adb..29f81ae1fa15 100644 --- a/sdk/ai/azopenai/custom_models.go +++ b/sdk/ai/azopenai/custom_models.go @@ -283,26 +283,3 @@ func NewMongoDBChatExtensionParametersEmbeddingDependency[T OnYourDataDeployment func (c MongoDBChatExtensionParametersEmbeddingDependency) MarshalJSON() ([]byte, error) { return json.Marshal(c.value) } - -// MessageAttachmentToolDefinition contains the content for a [ChatRequestToolMessage]. -// NOTE: This should be created using [azopenai.NewMessageAttachmentToolDefinition] -type MessageAttachmentToolDefinition struct { - value any -} - -// MarshalJSON implements the json.Marshaller interface for type MessageAttachmentToolDefinition. -func (c MessageAttachmentToolDefinition) MarshalJSON() ([]byte, error) { - return json.Marshal(c.value) -} - -// NewMessageAttachmentToolDefinition creates a [azopenai.MessageAttachmentToolDefinition]. -func NewMessageAttachmentToolDefinition[T CodeInterpreterToolDefinition | FileSearchToolDefinition](value T) *MessageAttachmentToolDefinition { - switch any(value).(type) { - case []CodeInterpreterToolDefinition: - return &MessageAttachmentToolDefinition{value: value} - case FileSearchToolDefinition: - return &MessageAttachmentToolDefinition{value: value} - default: - panic(fmt.Sprintf("Invalid type %T for MessageAttachmentToolDefinition", value)) - } -} From 24399330e056b041545f163281cb5d7db80787f6 Mon Sep 17 00:00:00 2001 From: Richard Park <51494936+richardpark-msft@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:14:58 -0800 Subject: [PATCH 04/33] Updating doc comment for MessageAttachmentToolDefinition --- sdk/ai/azopenaiassistants/models_custom.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdk/ai/azopenaiassistants/models_custom.go b/sdk/ai/azopenaiassistants/models_custom.go index 5b5ced74e843..19e57a14f785 100644 --- a/sdk/ai/azopenaiassistants/models_custom.go +++ b/sdk/ai/azopenaiassistants/models_custom.go @@ -153,8 +153,7 @@ func unmarshalStringOrObject[T any](jsonBytes []byte) (string, *T, error) { return "", model, nil } -// MessageAttachmentToolDefinition contains the content for a [ChatRequestToolMessage]. -// NOTE: This should be created using [azopenai.NewMessageAttachmentToolDefinition] +// MessageAttachmentToolDefinition allows you to specify tools for use with a message attachment. type MessageAttachmentToolDefinition struct { *CodeInterpreterToolDefinition *FileSearchToolDefinition From 03e1f7baa936829c2180da442776b746b275bfc8 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 11 Nov 2024 14:02:06 -0800 Subject: [PATCH 05/33] Update docindex.yml to use Python 3.11 (#23719) Co-authored-by: Daniel Jurek --- eng/common/pipelines/templates/jobs/docindex.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/common/pipelines/templates/jobs/docindex.yml b/eng/common/pipelines/templates/jobs/docindex.yml index c642a4856792..8ba898e4c14d 100644 --- a/eng/common/pipelines/templates/jobs/docindex.yml +++ b/eng/common/pipelines/templates/jobs/docindex.yml @@ -4,9 +4,9 @@ jobs: name: azsdk-pool-mms-win-2022-general steps: - task: UsePythonVersion@0 - displayName: 'Use Python 3.9' + displayName: 'Use Python 3.11' inputs: - versionSpec: '3.9' + versionSpec: '3.11' - pwsh: | Invoke-WebRequest -Uri "https://github.com/dotnet/docfx/releases/download/v2.43.2/docfx.zip" ` From 65eebd8fd5f00e15d26e0eff39c4ed093dd99225 Mon Sep 17 00:00:00 2001 From: Ben Broderick Phillips Date: Mon, 11 Nov 2024 21:23:47 -0500 Subject: [PATCH 06/33] Refresh OIDC token in azadmin test resources scripts (#23722) --- sdk/security/keyvault/azadmin/ci.yml | 1 + .../keyvault/azadmin/test-resources-post.ps1 | 61 ++++++++++++++----- .../keyvault/azadmin/test-resources-pre.ps1 | 54 ++++++++++++++++ .../keyvault/azadmin/test-resources.json | 2 +- 4 files changed, 102 insertions(+), 16 deletions(-) create mode 100644 sdk/security/keyvault/azadmin/test-resources-pre.ps1 diff --git a/sdk/security/keyvault/azadmin/ci.yml b/sdk/security/keyvault/azadmin/ci.yml index ae76efce5b0c..ef3a7c0ef3bb 100644 --- a/sdk/security/keyvault/azadmin/ci.yml +++ b/sdk/security/keyvault/azadmin/ci.yml @@ -27,6 +27,7 @@ extends: TimeoutInMinutes: 120 ServiceDirectory: 'security/keyvault/azadmin' UsePipelineProxy: false + PersistOidcToken: true # Due to the high cost of Managed HSMs, which keyvault-admin requires, we only want to run # the live tests weekly or for releases (manual builds). diff --git a/sdk/security/keyvault/azadmin/test-resources-post.ps1 b/sdk/security/keyvault/azadmin/test-resources-post.ps1 index 80f20c0cbfdc..d17ebdad5afc 100644 --- a/sdk/security/keyvault/azadmin/test-resources-post.ps1 +++ b/sdk/security/keyvault/azadmin/test-resources-post.ps1 @@ -12,8 +12,25 @@ using namespace System.Security.Cryptography.X509Certificates # Use same parameter names as declared in eng/New-TestResources.ps1 (assume validation therein). [CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'Medium')] param ( - [Parameter()] - [hashtable] $DeploymentOutputs, + [Parameter(Mandatory = $true)] + [ValidateNotNullOrEmpty()] + [string] $SubscriptionId, + + [Parameter(Mandatory = $true)] + [ValidateNotNullOrEmpty()] + [string] $TenantId, + + [Parameter(Mandatory = $true)] + [ValidatePattern('^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$')] + [string] $TestApplicationId, + + [Parameter(Mandatory = $true)] + [ValidatePattern('^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$')] + [string] $TestApplicationOid, + + [Parameter(Mandatory = $true)] + [ValidateNotNullOrEmpty()] + [string] $Environment, # Captures any arguments from eng/New-TestResources.ps1 not declared here (no parameter errors). [Parameter(ValueFromRemainingArguments = $true)] @@ -80,7 +97,7 @@ Log 'Creating 3 X509 certificates to activate security domain' $wrappingFiles = foreach ($i in 0..2) { $certificate = New-X509Certificate2 "CN=$($hsmUrl.Host)" - $baseName = "$PSScriptRoot\$hsmName-certificate$i" + $baseName = "$PSScriptRoot/$hsmName-certificate$i" Export-X509Certificate2 "$baseName.pfx" $certificate Export-X509Certificate2PEM "$baseName.cer" $certificate @@ -89,18 +106,23 @@ $wrappingFiles = foreach ($i in 0..2) { Log "Downloading security domain from '$hsmUrl'" -$sdPath = "$PSScriptRoot\$hsmName-security-domain.key" +$sdPath = "$PSScriptRoot/$hsmName-security-domain.key" if (Test-Path $sdpath) { Log "Deleting old security domain: $sdPath" Remove-Item $sdPath -Force } -Export-AzKeyVaultSecurityDomain -Name $hsmName -Quorum 2 -Certificates $wrappingFiles -OutputPath $sdPath -ErrorAction SilentlyContinue -Verbose -if ( !$? ) { +az keyvault security-domain download ` + --hsm-name "$hsmName" ` + --sd-wrapping-keys $wrappingFiles ` + --sd-quorum 2 ` + --security-domain-file "$sdPath" ` + --verbose + +if ($LASTEXITCODE) { Write-Host $Error[0].Exception Write-Error $Error[0] - - exit + exit $LASTEXITCODE } Log "Security domain downloaded to '$sdPath'; Managed HSM is now active at '$hsmUrl'" @@ -109,10 +131,19 @@ Log "Security domain downloaded to '$sdPath'; Managed HSM is now active at '$hsm Log 'Sleeping for 30 seconds to allow activation to propagate...' Start-Sleep -Seconds 30 -$testApplicationOid = $DeploymentOutputs['CLIENT_OBJECTID'] - -Log "Creating additional required role assignments for '$testApplicationOid'" -$null = New-AzKeyVaultRoleAssignment -HsmName $hsmName -RoleDefinitionName 'Managed HSM Crypto Officer' -ObjectID $testApplicationOid -$null = New-AzKeyVaultRoleAssignment -HsmName $hsmName -RoleDefinitionName 'Managed HSM Crypto User' -ObjectID $testApplicationOid - -Log "Role assignments created for '$testApplicationOid'" \ No newline at end of file +Log "Creating additional required role assignments for '$TestApplicationOid'" +az keyvault role assignment create ` + --hsm-name "$hsmName" ` + --role "Managed HSM Crypto Officer" ` + --assignee-object-id "$TestApplicationOid" ` + --scope "/" +if ($LASTEXITCODE) { exit $LASTEXITCODE } +az keyvault role assignment create ` + --hsm-name "$hsmName" ` + --role "Managed HSM Crypto User" ` + --assignee-object-id "$TestApplicationOid" ` + --scope "/" +if ($LASTEXITCODE) { exit $LASTEXITCODE } + + +Log "Role assignments created for '$TestApplicationOid'" diff --git a/sdk/security/keyvault/azadmin/test-resources-pre.ps1 b/sdk/security/keyvault/azadmin/test-resources-pre.ps1 new file mode 100644 index 000000000000..7de1f6896552 --- /dev/null +++ b/sdk/security/keyvault/azadmin/test-resources-pre.ps1 @@ -0,0 +1,54 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. + +# IMPORTANT: Do not invoke this file directly. Please instead run eng/New-TestResources.ps1 from the repository root. + +#Requires -Version 6.0 +#Requires -PSEdition Core + +using namespace System.Security.Cryptography +using namespace System.Security.Cryptography.X509Certificates + +# Use same parameter names as declared in eng/New-TestResources.ps1 (assume validation therein). +[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'Medium')] +param ( + [Parameter(Mandatory = $true)] + [ValidateNotNullOrEmpty()] + [string] $SubscriptionId, + + [Parameter(Mandatory = $true)] + [ValidateNotNullOrEmpty()] + [string] $TenantId, + + [Parameter(Mandatory = $true)] + [ValidatePattern('^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$')] + [string] $TestApplicationId, + + [Parameter(Mandatory = $true)] + [ValidatePattern('^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$')] + [string] $TestApplicationOid, + + [Parameter(Mandatory = $true)] + [ValidateNotNullOrEmpty()] + [string] $Environment, + + # Captures any arguments from eng/New-TestResources.ps1 not declared here (no parameter errors). + [Parameter(ValueFromRemainingArguments = $true)] + $RemainingArguments +) + +# By default stop for any error. +if (!$PSBoundParameters.ContainsKey('ErrorAction')) { + $ErrorActionPreference = 'Stop' +} + +function Log($Message) { + Write-Host ('{0} - {1}' -f [DateTime]::Now.ToLongTimeString(), $Message) +} + +Log "Refreshing OIDC token" +az cloud set -n $Environment +az login --federated-token $env:ARM_OIDC_TOKEN --service-principal -t $TenantId -u $TestApplicationId +if ($LASTEXITCODE) { exit $LASTEXITCODE } +az account set --subscription $SubscriptionId +if ($LASTEXITCODE) { exit $LASTEXITCODE } diff --git a/sdk/security/keyvault/azadmin/test-resources.json b/sdk/security/keyvault/azadmin/test-resources.json index d2d2a90b954e..5eb2123a03f1 100644 --- a/sdk/security/keyvault/azadmin/test-resources.json +++ b/sdk/security/keyvault/azadmin/test-resources.json @@ -323,4 +323,4 @@ "value": "[concat(reference(resourceId('Microsoft.Storage/storageAccounts', variables('primaryAccountName'))).primaryEndpoints.blob, variables('blobContainerName'))]" } } -} \ No newline at end of file +} From 1e8e8379b7c49f9babc0a1b283303bec7a98e858 Mon Sep 17 00:00:00 2001 From: Chenjie Shi Date: Tue, 12 Nov 2024 22:14:23 +0800 Subject: [PATCH 07/33] remove pkg.go.dev link in readme (#23708) * remove pkg.go.dev link in readme * fix changelog --- sdk/resourcemanager/aad/armaad/README.md | 8 +++----- sdk/resourcemanager/addons/armaddons/README.md | 8 +++----- .../advisor/armadvisor/README.md | 8 +++----- .../agrifood/armagrifood/README.md | 8 +++----- .../armalertsmanagement/README.md | 8 +++----- .../armanalysisservices/README.md | 8 +++----- .../apicenter/armapicenter/README.md | 8 +++----- .../apimanagement/armapimanagement/README.md | 8 +++----- .../armappcomplianceautomation/README.md | 8 +++----- .../armappconfiguration/README.md | 8 +++----- .../appcontainers/armappcontainers/README.md | 8 +++----- .../armapplicationinsights/README.md | 8 +++----- .../appplatform/armappplatform/README.md | 8 +++----- .../appservice/armappservice/README.md | 8 +++----- sdk/resourcemanager/astro/armastro/CHANGELOG.md | 1 + sdk/resourcemanager/astro/armastro/README.md | 8 +++----- .../attestation/armattestation/README.md | 8 +++----- .../authorization/armauthorization/README.md | 17 +++++++---------- .../automanage/armautomanage/README.md | 16 ++++------------ .../automation/armautomation/README.md | 9 +++------ sdk/resourcemanager/avs/armavs/README.md | 8 +++----- .../azurearcdata/armazurearcdata/README.md | 8 +++----- .../azuredata/armazuredata/README.md | 8 +++----- .../azurestackhci/armazurestackhci/README.md | 8 +++----- .../armbaremetalinfrastructure/README.md | 8 +++----- sdk/resourcemanager/batch/armbatch/README.md | 8 +++----- .../billing/armbilling/README.md | 8 +++----- .../armbillingbenefits/README.md | 8 +++----- .../blockchain/armblockchain/README.md | 8 +++----- .../blueprint/armblueprint/README.md | 8 +++----- .../botservice/armbotservice/README.md | 8 +++----- sdk/resourcemanager/cdn/armcdn/README.md | 8 +++----- .../changeanalysis/armchangeanalysis/README.md | 8 +++----- sdk/resourcemanager/chaos/armchaos/README.md | 6 ++---- .../armcognitiveservices/README.md | 8 +++----- .../commerce/armcommerce/README.md | 8 +++----- .../communication/armcommunication/README.md | 8 +++----- .../compute/armcompute/README.md | 6 ++---- .../computefleet/armcomputefleet/README.md | 8 +++----- .../armcomputeschedule/README.md | 7 +++---- .../armconfidentialledger/README.md | 8 +++----- .../confluent/armconfluent/README.md | 8 +++----- .../armconnectedvmware/CHANGELOG.md | 2 +- .../armconnectedvmware/README.md | 8 +++----- .../consumption/armconsumption/README.md | 8 +++----- .../armcontainerinstance/README.md | 8 +++----- .../armcontainerorchestratorruntime/README.md | 8 +++----- .../armcontainerregistry/README.md | 8 +++----- .../armcontainerservice/README.md | 6 ++---- .../armcontainerservicefleet/README.md | 8 +++----- sdk/resourcemanager/cosmos/armcosmos/README.md | 9 +++------ .../armcosmosforpostgresql/README.md | 8 +++----- .../costmanagement/armcostmanagement/README.md | 8 +++----- .../armcustomerinsights/README.md | 8 +++----- .../armcustomerlockbox/README.md | 8 +++----- .../armcustomproviders/README.md | 8 +++----- .../dashboard/armdashboard/README.md | 8 +++----- .../databoundaries/armdataboundaries/README.md | 8 +++----- .../databox/armdatabox/README.md | 8 +++----- .../databoxedge/armdataboxedge/README.md | 8 +++----- .../databricks/armdatabricks/README.md | 8 +++----- .../datacatalog/armdatacatalog/README.md | 8 +++----- .../datadog/armdatadog/README.md | 8 +++----- .../datafactory/armdatafactory/README.md | 9 +++------ .../armdatalakeanalytics/README.md | 8 +++----- .../datalake-store/armdatalakestore/README.md | 8 +++----- .../datamigration/armdatamigration/README.md | 8 +++----- .../dataprotection/armdataprotection/README.md | 8 +++----- .../datashare/armdatashare/README.md | 8 +++----- .../armdelegatednetwork/README.md | 8 +++----- .../armdeploymentmanager/README.md | 8 +++----- .../armdesktopvirtualization/README.md | 8 +++----- .../devcenter/armdevcenter/README.md | 8 +++----- sdk/resourcemanager/devhub/armdevhub/README.md | 8 +++----- .../armdeviceprovisioningservices/README.md | 8 +++----- .../armdeviceregistry/CHANGELOG.md | 1 + .../deviceregistry/armdeviceregistry/README.md | 8 +++----- .../deviceupdate/armdeviceupdate/README.md | 8 +++----- sdk/resourcemanager/devops/armdevops/README.md | 8 +++----- .../armdevopsinfrastructure/CHANGELOG.md | 1 + .../armdevopsinfrastructure/README.md | 8 +++----- .../devtestlabs/armdevtestlabs/README.md | 8 +++----- .../digitaltwins/armdigitaltwins/README.md | 9 +++------ sdk/resourcemanager/dns/armdns/README.md | 8 +++----- .../dnsresolver/armdnsresolver/README.md | 8 +++----- .../domainservices/armdomainservices/README.md | 8 +++----- .../dynatrace/armdynatrace/README.md | 8 +++----- .../edgeorder/armedgeorder/README.md | 8 +++----- .../armedgeorderpartner/README.md | 8 +++----- .../edgezones/armedgezones/README.md | 8 +++----- .../education/armeducation/README.md | 8 +++----- .../elastic/armelastic/README.md | 8 +++----- .../elasticsan/armelasticsan/README.md | 8 +++----- .../armengagementfabric/README.md | 8 +++----- .../eventgrid/armeventgrid/README.md | 8 +++----- .../eventhub/armeventhub/README.md | 8 +++----- .../armextendedlocation/README.md | 8 +++----- sdk/resourcemanager/fabric/armfabric/README.md | 8 +++----- .../fluidrelay/armfluidrelay/README.md | 8 +++----- .../frontdoor/armfrontdoor/README.md | 8 +++----- .../graphservices/armgraphservices/README.md | 8 +++----- .../armguestconfiguration/README.md | 8 +++----- .../hanaonazure/armhanaonazure/README.md | 8 +++----- .../armhardwaresecuritymodules/README.md | 8 +++----- .../hdinsight/armhdinsight/README.md | 8 +++----- .../armhdinsightcontainers/README.md | 8 +++----- .../healthbot/armhealthbot/README.md | 8 +++----- .../healthcareapis/armhealthcareapis/README.md | 8 +++----- .../armhealthdataaiservices/README.md | 8 +++----- .../hybridcompute/armhybridcompute/README.md | 8 +++----- .../armhybridconnectivity/README.md | 8 +++----- .../armhybridcontainerservice/README.md | 9 +++------ .../armhybriddatamanager/README.md | 8 +++----- .../armhybridkubernetes/README.md | 8 +++----- .../hybridnetwork/armhybridnetwork/README.md | 8 +++----- .../arminformaticadatamgmt/README.md | 8 +++----- .../armintegrationspaces/CHANGELOG.md | 1 + .../armintegrationspaces/README.md | 8 +++----- .../iotcentral/armiotcentral/README.md | 8 +++----- .../armiotfirmwaredefense/README.md | 8 +++----- sdk/resourcemanager/iothub/armiothub/README.md | 8 +++----- .../iotoperations/armiotoperations/README.md | 8 +++----- .../iotsecurity/armiotsecurity/README.md | 8 +++----- .../keyvault/armkeyvault/README.md | 8 +++----- .../armkubernetesconfiguration/README.md | 8 +++----- sdk/resourcemanager/kusto/armkusto/README.md | 8 +++----- .../labservices/armlabservices/README.md | 8 +++----- .../largeinstance/armlargeinstance/CHANGELOG.md | 1 + .../largeinstance/armlargeinstance/README.md | 8 +++----- .../liftrqumulo/armqumulo/README.md | 8 +++----- .../loadtesting/armloadtesting/README.md | 8 +++----- sdk/resourcemanager/logic/armlogic/README.md | 8 +++----- sdk/resourcemanager/logz/armlogz/README.md | 8 +++----- .../armm365securityandcompliance/README.md | 8 +++----- .../armmachinelearning/README.md | 8 +++----- .../armmachinelearningservices/CHANGELOG.md | 1 + .../armmachinelearningservices/README.md | 8 +++----- .../maintenance/armmaintenance/README.md | 8 +++----- .../managednetwork/armmanagednetwork/README.md | 8 +++----- .../armmanagednetworkfabric/README.md | 8 +++----- .../armmanagedservices/README.md | 8 +++----- .../armmanagementgroups/README.md | 8 +++----- .../armmanagementpartner/README.md | 8 +++----- sdk/resourcemanager/maps/armmaps/README.md | 8 +++----- .../mariadb/armmariadb/README.md | 8 +++----- .../marketplace/armmarketplace/README.md | 8 +++----- .../armmarketplaceordering/README.md | 6 ++---- .../mediaservices/armmediaservices/README.md | 8 +++----- .../migrate/armmigrate/README.md | 8 +++----- .../armmigrationdiscoverysap/CHANGELOG.md | 1 + .../armmigrationdiscoverysap/README.md | 8 +++----- .../mixedreality/armmixedreality/README.md | 8 +++----- .../mobilenetwork/armmobilenetwork/README.md | 8 +++----- .../mongocluster/armmongocluster/README.md | 8 +++----- .../monitor/armmonitor/README.md | 8 +++----- sdk/resourcemanager/msi/armmsi/README.md | 8 +++----- sdk/resourcemanager/mysql/armmysql/README.md | 8 +++----- .../mysql/armmysqlflexibleservers/README.md | 8 +++----- sdk/resourcemanager/netapp/armnetapp/README.md | 9 +++------ .../network/armnetwork/README.md | 10 ++++------ .../armnetworkanalytics/README.md | 8 +++----- .../networkcloud/armnetworkcloud/README.md | 8 +++----- .../armnetworkfunction/README.md | 8 +++----- .../newrelic/armnewrelicobservability/README.md | 8 +++----- sdk/resourcemanager/nginx/armnginx/README.md | 8 +++----- .../armnotificationhubs/README.md | 8 +++----- sdk/resourcemanager/oep/armoep/README.md | 8 +++----- .../armoperationalinsights/README.md | 8 +++----- .../armoperationsmanagement/README.md | 8 +++----- .../oracledatabase/armoracledatabase/README.md | 8 +++----- .../orbital/armorbital/README.md | 8 +++----- .../paloaltonetworksngfw/armpanngfw/README.md | 8 +++----- .../peering/armpeering/README.md | 8 +++----- .../armplaywrighttesting/README.md | 8 +++----- .../policyinsights/armpolicyinsights/README.md | 8 +++----- sdk/resourcemanager/portal/armportal/README.md | 8 +++----- .../postgresql/armpostgresql/README.md | 8 +++----- .../armpostgresqlflexibleservers/README.md | 8 +++----- .../postgresqlhsc/armpostgresqlhsc/CHANGELOG.md | 1 + .../postgresqlhsc/armpostgresqlhsc/README.md | 8 +++----- .../armpowerbidedicated/README.md | 8 +++----- .../armpowerbiembedded/README.md | 8 +++----- .../armpowerbiprivatelinks/README.md | 8 +++----- .../powerplatform/armpowerplatform/README.md | 8 +++----- .../privatedns/armprivatedns/README.md | 8 +++----- .../providerhub/armproviderhub/README.md | 6 ++---- .../purview/armpurview/README.md | 8 +++----- .../quantum/armquantum/README.md | 8 +++----- sdk/resourcemanager/quota/armquota/README.md | 8 +++----- .../armrecoveryservices/README.md | 8 +++----- .../armrecoveryservicesbackup/README.md | 8 +++----- .../armrecoveryservicessiterecovery/README.md | 8 +++----- .../README.md | 8 +++----- .../armredhatopenshift/README.md | 8 +++----- sdk/resourcemanager/redis/armredis/README.md | 8 +++----- .../armredisenterprise/README.md | 8 +++----- sdk/resourcemanager/relay/armrelay/README.md | 8 +++----- .../reservations/armreservations/README.md | 9 +++------ .../armresourceconnector/README.md | 8 +++----- .../resourcegraph/armresourcegraph/README.md | 6 ++---- .../resourcehealth/armresourcehealth/README.md | 8 +++----- .../resourcemover/armresourcemover/README.md | 8 +++----- .../resources/armchanges/README.md | 8 +++----- .../resources/armdeploymentscripts/README.md | 8 +++----- .../resources/armdeploymentstacks/README.md | 8 +++----- .../resources/armfeatures/README.md | 8 +++----- .../resources/armlinks/README.md | 8 +++----- .../resources/armlocks/README.md | 8 +++----- .../resources/armmanagedapplications/README.md | 8 +++----- .../resources/armpolicy/README.md | 8 +++----- .../resources/armresources/README.md | 8 +++----- .../resources/armsubscriptions/README.md | 6 ++---- .../resources/armtemplatespecs/README.md | 8 +++----- sdk/resourcemanager/saas/armsaas/README.md | 8 +++----- .../scheduler/armscheduler/README.md | 8 +++----- sdk/resourcemanager/scvmm/armscvmm/README.md | 8 +++----- sdk/resourcemanager/search/armsearch/README.md | 8 +++----- .../security/armsecurity/README.md | 8 +++----- .../securitydevops/armsecuritydevops/README.md | 8 +++----- .../armsecurityinsights/README.md | 8 +++----- .../selfhelp/armselfhelp/README.md | 8 +++----- .../serialconsole/armserialconsole/README.md | 8 +++----- .../servicebus/armservicebus/README.md | 8 +++----- .../servicefabric/armservicefabric/README.md | 8 +++----- .../armservicefabricmanagedclusters/README.md | 8 +++----- .../armservicefabricmesh/CHANGELOG.md | 1 + .../armservicefabricmesh/README.md | 8 +++----- .../servicelinker/armservicelinker/README.md | 8 +++----- .../armservicenetworking/README.md | 8 +++----- .../signalr/armsignalr/README.md | 8 +++----- .../solutions/armmanagedapplications/README.md | 8 +++----- sdk/resourcemanager/sphere/armsphere/README.md | 8 +++----- .../armspringappdiscovery/CHANGELOG.md | 1 + .../armspringappdiscovery/README.md | 8 +++----- sdk/resourcemanager/sql/armsql/README.md | 8 +++----- .../armsqlvirtualmachine/README.md | 8 +++----- .../standbypool/armstandbypool/README.md | 8 +++----- .../storage/armstorage/README.md | 8 +++----- .../armstorageactions/CHANGELOG.md | 1 + .../storageactions/armstorageactions/README.md | 8 +++----- .../storagecache/armstoragecache/README.md | 8 +++----- .../armstorageimportexport/README.md | 8 +++----- .../storagemover/armstoragemover/README.md | 8 +++----- .../storagepool/armstoragepool/README.md | 8 +++----- .../storagesync/armstoragesync/README.md | 8 +++----- .../armstorsimple1200series/README.md | 8 +++----- .../armstorsimple8000series/README.md | 8 +++----- .../armstreamanalytics/README.md | 8 +++----- .../subscription/armsubscription/README.md | 8 +++----- .../support/armsupport/README.md | 8 +++----- .../synapse/armsynapse/README.md | 8 +++----- .../testbase/armtestbase/README.md | 8 +++----- .../armtimeseriesinsights/README.md | 8 +++----- .../trafficmanager/armtrafficmanager/README.md | 8 +++----- .../trustedsigning/armtrustedsigning/README.md | 8 +++----- .../videoanalyzer/armvideoanalyzer/CHANGELOG.md | 4 +++- .../videoanalyzer/armvideoanalyzer/README.md | 8 +++----- .../armvirtualmachineimagebuilder/README.md | 8 +++----- .../visualstudio/armvisualstudio/README.md | 8 +++----- .../armvmwarecloudsimple/README.md | 8 +++----- .../voiceservices/armvoiceservices/README.md | 10 ++++------ .../webpubsub/armwebpubsub/README.md | 8 +++----- .../windowsesu/armwindowsesu/README.md | 8 +++----- .../windowsiot/armwindowsiot/README.md | 8 +++----- .../armworkloadmonitor/CHANGELOG.md | 1 + .../armworkloadmonitor/README.md | 8 +++----- .../workloads/armworkloads/README.md | 9 +++------ .../armworkloadssapvirtualinstance/CHANGELOG.md | 1 + .../armworkloadssapvirtualinstance/README.md | 8 +++----- 269 files changed, 779 insertions(+), 1286 deletions(-) diff --git a/sdk/resourcemanager/aad/armaad/README.md b/sdk/resourcemanager/aad/armaad/README.md index 2710bc528713..7f01aceef298 100644 --- a/sdk/resourcemanager/aad/armaad/README.md +++ b/sdk/resourcemanager/aad/armaad/README.md @@ -1,7 +1,5 @@ # Azure Active Directory Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad) - The `armaad` module provides operations for working with Azure Active Directory. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/aad/armaad) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/aad/armaad ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Active Directory. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Active Directory. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armaad.NewClientFactory(, cred, &options) ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewPrivateLinkResourcesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/addons/armaddons/README.md b/sdk/resourcemanager/addons/armaddons/README.md index a1d0d41a2b22..91db47650b5c 100644 --- a/sdk/resourcemanager/addons/armaddons/README.md +++ b/sdk/resourcemanager/addons/armaddons/README.md @@ -1,7 +1,5 @@ # Azure Addons Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/addons/armaddons)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/addons/armaddons) - The `armaddons` module provides operations for working with Azure Addons. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/addons/armaddons) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/addons/armaddons ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Addons. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Addons. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armaddons.NewClientFactory(, cred, &optio ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewSupportPlanTypesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/advisor/armadvisor/README.md b/sdk/resourcemanager/advisor/armadvisor/README.md index 71736113edf6..d49d6d1797ea 100644 --- a/sdk/resourcemanager/advisor/armadvisor/README.md +++ b/sdk/resourcemanager/advisor/armadvisor/README.md @@ -1,7 +1,5 @@ # Azure Advisor Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/advisor/armadvisor)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/advisor/armadvisor) - The `armadvisor` module provides operations for working with Azure Advisor. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/advisor/armadvisor) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/advisor/armadvisor ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Advisor. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Advisor. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armadvisor.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewSuppressionsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/agrifood/armagrifood/README.md b/sdk/resourcemanager/agrifood/armagrifood/README.md index 704d32e461b2..b000fe5efe35 100644 --- a/sdk/resourcemanager/agrifood/armagrifood/README.md +++ b/sdk/resourcemanager/agrifood/armagrifood/README.md @@ -1,7 +1,5 @@ # Azure AgriFood Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/agrifood/armagrifood)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/agrifood/armagrifood) - The `armagrifood` module provides operations for working with Azure AgriFood. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/agrifood/armagrifood) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/agrifood/armagrifoo ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure AgriFood. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure AgriFood. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armagrifood.NewClientFactory(, cred, &opt ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewExtensionsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/alertsmanagement/armalertsmanagement/README.md b/sdk/resourcemanager/alertsmanagement/armalertsmanagement/README.md index ac93f95d5c34..6bdcd93ebe6d 100644 --- a/sdk/resourcemanager/alertsmanagement/armalertsmanagement/README.md +++ b/sdk/resourcemanager/alertsmanagement/armalertsmanagement/README.md @@ -1,7 +1,5 @@ # Azure Alerts Management Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/alertsmanagement/armalertsmanagement)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/alertsmanagement/armalertsmanagement) - The `armalertsmanagement` module provides operations for working with Azure Alerts Management. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/alertsmanagement/armalertsmanagement) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/alertsmanagement/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Alerts Management. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Alerts Management. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armalertsmanagement.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAlertProcessingRulesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/analysisservices/armanalysisservices/README.md b/sdk/resourcemanager/analysisservices/armanalysisservices/README.md index c7646e40e382..193ed69b78a0 100644 --- a/sdk/resourcemanager/analysisservices/armanalysisservices/README.md +++ b/sdk/resourcemanager/analysisservices/armanalysisservices/README.md @@ -1,7 +1,5 @@ # Azure Analysis Services Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/analysisservices/armanalysisservices)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/analysisservices/armanalysisservices) - The `armanalysisservices` module provides operations for working with Azure Analysis Services. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/analysisservices/armanalysisservices) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/analysisservices/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Analysis Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Analysis Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armanalysisservices.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewServersClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/apicenter/armapicenter/README.md b/sdk/resourcemanager/apicenter/armapicenter/README.md index dca6a392a884..e5c04b4d08d5 100644 --- a/sdk/resourcemanager/apicenter/armapicenter/README.md +++ b/sdk/resourcemanager/apicenter/armapicenter/README.md @@ -1,7 +1,5 @@ # Azure Apicenter Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apicenter/armapicenter)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apicenter/armapicenter) - The `armapicenter` module provides operations for working with Azure Apicenter. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/apicenter/armapicenter) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apicenter/armapicen ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Apicenter. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Apicenter. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ client, err := armapicenter.NewClientFactory(, cred, &options) ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAPIDefinitionsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/README.md b/sdk/resourcemanager/apimanagement/armapimanagement/README.md index 737599c19db2..c324a743d961 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/README.md +++ b/sdk/resourcemanager/apimanagement/armapimanagement/README.md @@ -1,7 +1,5 @@ # Azure API Management Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armapimanagement/v2) - The `armapimanagement` module provides operations for working with Azure API Management. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/apimanagement/armapimanagement) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armap ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure API Management. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure API Management. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armapimanagement.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewServiceClient() @@ -105,4 +103,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/appcomplianceautomation/armappcomplianceautomation/README.md b/sdk/resourcemanager/appcomplianceautomation/armappcomplianceautomation/README.md index bfc587df852a..3903641e50d1 100644 --- a/sdk/resourcemanager/appcomplianceautomation/armappcomplianceautomation/README.md +++ b/sdk/resourcemanager/appcomplianceautomation/armappcomplianceautomation/README.md @@ -1,7 +1,5 @@ # Azure Appcomplianceautomation Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcomplianceautomation/armappcomplianceautomation)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcomplianceautomation/armappcomplianceautomation) - The `armappcomplianceautomation` module provides operations for working with Azure Appcomplianceautomation. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/appcomplianceautomation/armappcomplianceautomation) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcomplianceautoma ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Appcomplianceautomation. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Appcomplianceautomation. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armappcomplianceautomation.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewConfigurationStoresClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/appcontainers/armappcontainers/README.md b/sdk/resourcemanager/appcontainers/armappcontainers/README.md index 3da8922bbfd7..da49a196fb5c 100644 --- a/sdk/resourcemanager/appcontainers/armappcontainers/README.md +++ b/sdk/resourcemanager/appcontainers/armappcontainers/README.md @@ -1,7 +1,5 @@ # Azure Container Apps Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers/v3) - The `armappcontainers` module provides operations for working with Azure Container Apps. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/appcontainers/armappcontainers) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armap ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Container Apps. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Container Apps. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armappcontainers.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAppResiliencyClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/applicationinsights/armapplicationinsights/README.md b/sdk/resourcemanager/applicationinsights/armapplicationinsights/README.md index ad86e915085f..3fa92987d97c 100644 --- a/sdk/resourcemanager/applicationinsights/armapplicationinsights/README.md +++ b/sdk/resourcemanager/applicationinsights/armapplicationinsights/README.md @@ -1,7 +1,5 @@ # Azure Application Insight Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights/armapplicationinsights) - The `armapplicationinsights` module provides operations for working with Azure Application Insight. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/applicationinsights/armapplicationinsights) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/applicationinsights ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Application Insight. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Application Insight. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armapplicationinsights.NewClientFactory(, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAPIKeysClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/appplatform/armappplatform/README.md b/sdk/resourcemanager/appplatform/armappplatform/README.md index bb881e93e128..a91099dbdc17 100644 --- a/sdk/resourcemanager/appplatform/armappplatform/README.md +++ b/sdk/resourcemanager/appplatform/armappplatform/README.md @@ -1,7 +1,5 @@ # Azure App Platform Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappplatform/v2) - The `armappplatform` module provides operations for working with Azure App Platform. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/appplatform/armappplatform) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appplatform/armappp ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure App Platform. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure App Platform. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armappplatform.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAPIPortalCustomDomainsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/appservice/armappservice/README.md b/sdk/resourcemanager/appservice/armappservice/README.md index b0160a1ae3c3..fce2005ef306 100644 --- a/sdk/resourcemanager/appservice/armappservice/README.md +++ b/sdk/resourcemanager/appservice/armappservice/README.md @@ -1,7 +1,5 @@ # Azure App Service Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappservice/v4) - The `armappservice` module provides operations for working with Azure App Service. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/appservice/armappservice) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appservice/armappse ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure App Service. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure App Service. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armappservice.NewClientFactory(, cred, &o ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewCertificateOrdersClient() @@ -104,4 +102,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/astro/armastro/CHANGELOG.md b/sdk/resourcemanager/astro/armastro/CHANGELOG.md index 1191639b0689..d9f9a7af8745 100644 --- a/sdk/resourcemanager/astro/armastro/CHANGELOG.md +++ b/sdk/resourcemanager/astro/armastro/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History ## 0.1.0 (2024-02-23) +### Other Changes The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/astro/armastro` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html). diff --git a/sdk/resourcemanager/astro/armastro/README.md b/sdk/resourcemanager/astro/armastro/README.md index 375fec124f41..b8d9d0d2bb26 100644 --- a/sdk/resourcemanager/astro/armastro/README.md +++ b/sdk/resourcemanager/astro/armastro/README.md @@ -1,7 +1,5 @@ # Azure Astro Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/astro/armastro)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/astro/armastro) - The `armastro` module provides operations for working with Azure Astro. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/astro/armastro) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/astro/armastro ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Astro. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Astro. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armastro.NewClientFactory(, cred, &option ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewOrganizationsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/attestation/armattestation/README.md b/sdk/resourcemanager/attestation/armattestation/README.md index c9291957eaf9..3cc41c5f7b02 100644 --- a/sdk/resourcemanager/attestation/armattestation/README.md +++ b/sdk/resourcemanager/attestation/armattestation/README.md @@ -1,7 +1,5 @@ # Azure Attestation Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/attestation/armattestation)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/attestation/armattestation) - The `armattestation` module provides operations for working with Azure Attestation. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/attestation/armattestation) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/attestation/armatte ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Attestation. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Attestation. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armattestation.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewProvidersClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/authorization/armauthorization/README.md b/sdk/resourcemanager/authorization/armauthorization/README.md index ae264e911102..0b8afd59ad57 100644 --- a/sdk/resourcemanager/authorization/armauthorization/README.md +++ b/sdk/resourcemanager/authorization/armauthorization/README.md @@ -1,7 +1,5 @@ # Azure Authorization Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v3)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v3) - The `armauthorization` module provides operations for working with Azure Authorization. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/authorization/armauthorization) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armau ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Authorization. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Authorization. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -73,12 +71,11 @@ clientFactory, err := armX.NewClientFactory(, cred, &options) ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. -```go +````go client := clientFactory.NewXClient() -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v3)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v3) The `armauthorization` module provides operations for working with Azure Authorization. @@ -99,7 +96,7 @@ Install the Azure Authorization module: ```sh go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v3 -``` +```` ## Fakes @@ -110,7 +107,7 @@ Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Authorization. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Authorization. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -139,7 +136,7 @@ clientFactory, err := armauthorization.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewPermissionsClient() @@ -167,4 +164,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/automanage/armautomanage/README.md b/sdk/resourcemanager/automanage/armautomanage/README.md index e50e34ae1081..76af7397dfa3 100644 --- a/sdk/resourcemanager/automanage/armautomanage/README.md +++ b/sdk/resourcemanager/automanage/armautomanage/README.md @@ -1,7 +1,5 @@ # Azure Automanage Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automanage/armautomanage) - The `armautomanage` module provides operations for working with Azure Automanage. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/automanage/armautomanage) @@ -35,7 +33,7 @@ import ( ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Automanage. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Automanage. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -64,7 +62,7 @@ clientFactory, err := armautomanage.NewClientFactory(, cred, &o ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go reportsClient := clientFactory.NewReportsClient() @@ -103,7 +101,7 @@ properties := armautomanage.ConfigurationProfileProperties{ location := "eastus" environment := "dev" -// tags may be omitted +// tags may be omitted tags := make(map[string]*string) tags["environment"] = &environment @@ -116,7 +114,6 @@ profile := armautomanage.ConfigurationProfile{ newProfile, err := configProfilesClient.CreateOrUpdate(context.Background(), configurationProfileName, "resourceGroupName", profile, nil) ``` - ## Get an Automanage Configuration Profile ```go @@ -126,14 +123,12 @@ data, err := json.MarshalIndent(profile, "", " ") fmt.Println(string(data)) ``` - ## Delete an Automanage Configuration Profile ```go _, err := configProfilesClient.Delete(context.Background(), "resourceGroupName", "configurationProfileName", nil) ``` - ## Get an Automanage Profile Assignment ```go @@ -142,7 +137,6 @@ data, err := json.MarshalIndent(assignment, "", " ") fmt.Println(string(data)) ``` - ## Create an Assignment between a VM and an Automanage Best Practices Production Configuration Profile ```go @@ -160,7 +154,6 @@ assignment := armautomanage.ConfigurationProfileAssignment{ newAssignment, err = assignmentClient.CreateOrUpdate(context.Background(), "default", "resourceGroupName", "vmName", assignment, nil) ``` - ## Create an Assignment between a VM and a Custom Automanage Configuration Profile ```go @@ -178,7 +171,6 @@ assignment := armautomanage.ConfigurationProfileAssignment{ newAssignment, err = assignmentClient.CreateOrUpdate(context.Background(), "default", "resourceGroupName", "vmName", assignment, nil) ``` - ## Provide Feedback If you encounter bugs or have suggestions, please @@ -201,4 +193,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/automation/armautomation/README.md b/sdk/resourcemanager/automation/armautomation/README.md index ca48f98eef83..283bf7e86755 100644 --- a/sdk/resourcemanager/automation/armautomation/README.md +++ b/sdk/resourcemanager/automation/armautomation/README.md @@ -1,7 +1,5 @@ # Azure Automation Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautomation) - The `armautomation` module provides operations for working with Azure Automation. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/automation/armautomation) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/automation/armautom ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Automation. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Automation. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armautomation.NewClientFactory(, cred, &o ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewHybridRunbookWorkerGroupClient() @@ -67,7 +65,6 @@ This allows writing tests to cover various success/error conditions without the Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes. - ## Provide Feedback If you encounter bugs or have suggestions, please @@ -90,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/avs/armavs/README.md b/sdk/resourcemanager/avs/armavs/README.md index a0a7bfe737f6..221fae5c7481 100644 --- a/sdk/resourcemanager/avs/armavs/README.md +++ b/sdk/resourcemanager/avs/armavs/README.md @@ -1,7 +1,5 @@ # Azure VMware Solution Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/avs/armavs/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/avs/armavs/v2) - The `armavs` module provides operations for working with Azure VMware Solution. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/avs/armavs) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/avs/armavs/v2 ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure VMware Solution. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure VMware Solution. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armavs.NewClientFactory(, cred, &options) ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAddonsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/azurearcdata/armazurearcdata/README.md b/sdk/resourcemanager/azurearcdata/armazurearcdata/README.md index 4a8f579a4094..fa161386c1ab 100644 --- a/sdk/resourcemanager/azurearcdata/armazurearcdata/README.md +++ b/sdk/resourcemanager/azurearcdata/armazurearcdata/README.md @@ -1,7 +1,5 @@ # Azure Hybrid Data Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazurearcdata)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazurearcdata) - The `armazurearcdata` module provides operations for working with Azure Hybrid Data. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/azurearcdata/armazurearcdata) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurearcdata/armazu ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Hybrid Data. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Hybrid Data. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armazurearcdata.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewSQLServerInstancesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/azuredata/armazuredata/README.md b/sdk/resourcemanager/azuredata/armazuredata/README.md index f28d40fb42ef..e54a031d4d4b 100644 --- a/sdk/resourcemanager/azuredata/armazuredata/README.md +++ b/sdk/resourcemanager/azuredata/armazuredata/README.md @@ -1,7 +1,5 @@ # Azure Hybrid Data Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azuredata/armazuredata)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azuredata/armazuredata) - The `armazuredata` module provides operations for working with Azure Hybrid Data. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/azuredata/armazuredata) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azuredata/armazured ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Hybrid Data. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Hybrid Data. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armazuredata.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewSQLServersClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/azurestackhci/armazurestackhci/README.md b/sdk/resourcemanager/azurestackhci/armazurestackhci/README.md index a8905f362d37..71fc32e32ad2 100644 --- a/sdk/resourcemanager/azurestackhci/armazurestackhci/README.md +++ b/sdk/resourcemanager/azurestackhci/armazurestackhci/README.md @@ -1,7 +1,5 @@ # Azure Stack HCI Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurestackhci/armazurestackhci/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurestackhci/armazurestackhci/v2) - The `armazurestackhci` module provides operations for working with Azure Stack HCI. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/azurestackhci/armazurestackhci) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/azurestackhci/armaz ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Stack HCI. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Stack HCI. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armazurestackhci.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewArcSettingsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/baremetalinfrastructure/armbaremetalinfrastructure/README.md b/sdk/resourcemanager/baremetalinfrastructure/armbaremetalinfrastructure/README.md index 4c4b8f6e9fed..6b17fd197ef0 100644 --- a/sdk/resourcemanager/baremetalinfrastructure/armbaremetalinfrastructure/README.md +++ b/sdk/resourcemanager/baremetalinfrastructure/armbaremetalinfrastructure/README.md @@ -1,7 +1,5 @@ # Azure Bare Metal Infrastructure Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/baremetalinfrastructure/armbaremetalinfrastructure/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/baremetalinfrastructure/armbaremetalinfrastructure/v2) - The `armbaremetalinfrastructure` module provides operations for working with Azure Bare Metal Infrastructure. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/baremetalinfrastructure/armbaremetalinfrastructure) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/baremetalinfrastruc ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Bare Metal Infrastructure. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Bare Metal Infrastructure. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armbaremetalinfrastructure.NewClientFactory(, cred, &option ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAccountClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/billing/armbilling/README.md b/sdk/resourcemanager/billing/armbilling/README.md index 628b4bd06c67..7d173e2717fa 100644 --- a/sdk/resourcemanager/billing/armbilling/README.md +++ b/sdk/resourcemanager/billing/armbilling/README.md @@ -1,7 +1,5 @@ # Azure Billing Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billing/armbilling)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billing/armbilling) - The `armbilling` module provides operations for working with Azure Billing. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/billing/armbilling) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billing/armbilling ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Billing. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Billing. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armbilling.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewInvoicesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/billingbenefits/armbillingbenefits/README.md b/sdk/resourcemanager/billingbenefits/armbillingbenefits/README.md index 6de15dfbda1f..68203c7c1d82 100644 --- a/sdk/resourcemanager/billingbenefits/armbillingbenefits/README.md +++ b/sdk/resourcemanager/billingbenefits/armbillingbenefits/README.md @@ -1,7 +1,5 @@ # Azure Billingbenefits Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billingbenefits/armbillingbenefits/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billingbenefits/armbillingbenefits/v2) - The `armbillingbenefits` module provides operations for working with Azure Billingbenefits. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/billingbenefits/armbillingbenefits) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billingbenefits/arm ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Billingbenefits. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Billingbenefits. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armbillingbenefits.NewClientFactory(, cre ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewRPClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/blockchain/armblockchain/README.md b/sdk/resourcemanager/blockchain/armblockchain/README.md index f87894992c7a..a2af382131dc 100644 --- a/sdk/resourcemanager/blockchain/armblockchain/README.md +++ b/sdk/resourcemanager/blockchain/armblockchain/README.md @@ -1,7 +1,5 @@ # Azure Blockchain Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblockchain) - The `armblockchain` module provides operations for working with Azure Blockchain. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/blockchain/armblockchain) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blockchain/armblock ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Blockchain. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Blockchain. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armblockchain.NewClientFactory(, cred, &o ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewMembersClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/blueprint/armblueprint/README.md b/sdk/resourcemanager/blueprint/armblueprint/README.md index 92256b7d6d75..aeb8b3fece6e 100644 --- a/sdk/resourcemanager/blueprint/armblueprint/README.md +++ b/sdk/resourcemanager/blueprint/armblueprint/README.md @@ -1,7 +1,5 @@ # Azure Blueprint Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blueprint/armblueprint)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blueprint/armblueprint) - The `armblueprint` module provides operations for working with Azure Blueprint. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/blueprint/armblueprint) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/blueprint/armbluepr ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Blueprint. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Blueprint. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armblueprint.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewBlueprintsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/botservice/armbotservice/README.md b/sdk/resourcemanager/botservice/armbotservice/README.md index 1c2cfd5fc9f8..c794f4207e6b 100644 --- a/sdk/resourcemanager/botservice/armbotservice/README.md +++ b/sdk/resourcemanager/botservice/armbotservice/README.md @@ -1,7 +1,5 @@ # Azure Bot Service Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/botservice/armbotservice)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/botservice/armbotservice) - The `armbotservice` module provides operations for working with Azure Bot Service. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/botservice/armbotservice) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/botservice/armbotse ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Bot Service. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Bot Service. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armbotservice.NewClientFactory(, cred, &o ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewBotsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/cdn/armcdn/README.md b/sdk/resourcemanager/cdn/armcdn/README.md index 786e392e98a9..efd961445a19 100644 --- a/sdk/resourcemanager/cdn/armcdn/README.md +++ b/sdk/resourcemanager/cdn/armcdn/README.md @@ -1,7 +1,5 @@ # Azure Content Delivery Network Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn/v2) - The `armcdn` module provides operations for working with Azure Content Delivery Network. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/cdn/armcdn) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn/v2 ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Content Delivery Network. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Content Delivery Network. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armcdn.NewClientFactory(, cred, &options) ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAFDCustomDomainsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/changeanalysis/armchangeanalysis/README.md b/sdk/resourcemanager/changeanalysis/armchangeanalysis/README.md index e4c22955d752..d33da537a90c 100644 --- a/sdk/resourcemanager/changeanalysis/armchangeanalysis/README.md +++ b/sdk/resourcemanager/changeanalysis/armchangeanalysis/README.md @@ -1,7 +1,5 @@ # Azure Change Analysis Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/changeanalysis/armchangeanalysis)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/changeanalysis/armchangeanalysis) - The `armchangeanalysis` module provides operations for working with Azure Change Analysis. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/changeanalysis/armchangeanalysis) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/changeanalysis/armc ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Change Analysis. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Change Analysis. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armchangeanalysis.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewChangesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/chaos/armchaos/README.md b/sdk/resourcemanager/chaos/armchaos/README.md index 174815c844b0..61bda46c49a6 100644 --- a/sdk/resourcemanager/chaos/armchaos/README.md +++ b/sdk/resourcemanager/chaos/armchaos/README.md @@ -1,7 +1,5 @@ # Azure Chaos Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/chaos/armchaos)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/chaos/armchaos) - The `armchaos` module provides operations for working with Azure Chaos. This package is currently in Beta and is not yet fully supported. @@ -26,7 +24,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/chaos/armchaos ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Chaos. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Chaos. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -55,7 +53,7 @@ clientFactory, err := armchaos.NewClientFactory(, cred, &option ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewCapabilitiesClient() diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/README.md b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/README.md index 86e5013612ea..c0fdcbabd15c 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/README.md +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/README.md @@ -1,7 +1,5 @@ # Azure Cognitive Services Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices) - The `armcognitiveservices` module provides operations for working with Azure Cognitive Services. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/cognitiveservices/armcognitiveservices) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/a ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Cognitive Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Cognitive Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armcognitiveservices.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAccountsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/commerce/armcommerce/README.md b/sdk/resourcemanager/commerce/armcommerce/README.md index f17f594791c4..b1b31e60fb43 100644 --- a/sdk/resourcemanager/commerce/armcommerce/README.md +++ b/sdk/resourcemanager/commerce/armcommerce/README.md @@ -1,7 +1,5 @@ # Azure Commerce Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/commerce/armcommerce)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/commerce/armcommerce) - The `armcommerce` module provides operations for working with Azure Commerce. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/commerce/armcommerce) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/commerce/armcommerc ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Commerce. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Commerce. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armcommerce.NewClientFactory(, cred, &opt ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewRateCardClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/communication/armcommunication/README.md b/sdk/resourcemanager/communication/armcommunication/README.md index 8d457d51854e..327e1ccc96bd 100644 --- a/sdk/resourcemanager/communication/armcommunication/README.md +++ b/sdk/resourcemanager/communication/armcommunication/README.md @@ -1,7 +1,5 @@ # Azure Communication Services Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/communication/armcommunication/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/communication/armcommunication/v2) - The `armcommunication` module provides operations for working with Azure Communication Services. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/communication/armcommunication) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/communication/armco ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Communication Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Communication Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armcommunication.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDomainsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/compute/armcompute/README.md b/sdk/resourcemanager/compute/armcompute/README.md index b508c67ffebf..869a19f3f45f 100644 --- a/sdk/resourcemanager/compute/armcompute/README.md +++ b/sdk/resourcemanager/compute/armcompute/README.md @@ -1,7 +1,5 @@ # Azure Compute Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6) - The `armcompute` module provides operations for working with Azure Compute. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/compute/armcompute) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/ ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Compute. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Compute. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armcompute.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAvailabilitySetsClient() diff --git a/sdk/resourcemanager/computefleet/armcomputefleet/README.md b/sdk/resourcemanager/computefleet/armcomputefleet/README.md index 88ca46cce05f..d92afe0f9bd2 100644 --- a/sdk/resourcemanager/computefleet/armcomputefleet/README.md +++ b/sdk/resourcemanager/computefleet/armcomputefleet/README.md @@ -1,7 +1,5 @@ # Azure Compute Fleet Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computefleet/armcomputefleet)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computefleet/armcomputefleet) - The `armcomputefleet` module provides operations for working with Azure Compute Fleet. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/computefleet/armcomputefleet) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computefleet/armcom ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Compute Fleet. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Compute Fleet. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armcomputefleet.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewFleetsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/computeschedule/armcomputeschedule/README.md b/sdk/resourcemanager/computeschedule/armcomputeschedule/README.md index 1ecc6eaa9e8c..025c8e6c3774 100644 --- a/sdk/resourcemanager/computeschedule/armcomputeschedule/README.md +++ b/sdk/resourcemanager/computeschedule/armcomputeschedule/README.md @@ -1,8 +1,7 @@ # Azure Compute Schedule Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computeschedule/armcomputeschedule)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computeschedule/armcomputeschedule) - Microsoft Azure Compute Schedule allows customers to schedule one off operations on their virtual machines. These operations include: + - Start - Deallocate - Hibernate @@ -35,7 +34,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computeschedule/arm ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Compute Schedule. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Compute Schedule. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -64,7 +63,7 @@ clientFactory, err := armcomputeschedule.NewClientFactory(, cre ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewScheduledActionsClient() diff --git a/sdk/resourcemanager/confidentialledger/armconfidentialledger/README.md b/sdk/resourcemanager/confidentialledger/armconfidentialledger/README.md index fd28f0242178..4bae291445a4 100644 --- a/sdk/resourcemanager/confidentialledger/armconfidentialledger/README.md +++ b/sdk/resourcemanager/confidentialledger/armconfidentialledger/README.md @@ -1,7 +1,5 @@ # Azure Confidential Ledger Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confidentialledger/armconfidentialledger)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confidentialledger/armconfidentialledger) - The `armconfidentialledger` module provides operations for working with Azure Confidential Ledger. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/confidentialledger/armconfidentialledger) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confidentialledger/ ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Confidential Ledger. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Confidential Ledger. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armconfidentialledger.NewClientFactory(, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/confluent/armconfluent/README.md b/sdk/resourcemanager/confluent/armconfluent/README.md index 8a5369b64e5a..7da3d5e1e19f 100644 --- a/sdk/resourcemanager/confluent/armconfluent/README.md +++ b/sdk/resourcemanager/confluent/armconfluent/README.md @@ -1,7 +1,5 @@ # Azure Confluent Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconfluent)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconfluent) - The `armconfluent` module provides operations for working with Azure Confluent. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/confluent/armconfluent) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/confluent/armconflu ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Confluent. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Confluent. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armconfluent.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAccessClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/connectedvmware/armconnectedvmware/CHANGELOG.md b/sdk/resourcemanager/connectedvmware/armconnectedvmware/CHANGELOG.md index 10d99c9bd0fb..5855b5aa2440 100644 --- a/sdk/resourcemanager/connectedvmware/armconnectedvmware/CHANGELOG.md +++ b/sdk/resourcemanager/connectedvmware/armconnectedvmware/CHANGELOG.md @@ -1,7 +1,7 @@ # Release History ## 1.1.1 (2023-12-22) -### Others Change +### Other Changes - Fixed README.md diff --git a/sdk/resourcemanager/connectedvmware/armconnectedvmware/README.md b/sdk/resourcemanager/connectedvmware/armconnectedvmware/README.md index e1c793eac65a..393bf825831f 100644 --- a/sdk/resourcemanager/connectedvmware/armconnectedvmware/README.md +++ b/sdk/resourcemanager/connectedvmware/armconnectedvmware/README.md @@ -1,7 +1,5 @@ # Azure Arc VMware Management Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/armconnectedvmware) - The `armconnectedvmware` module provides operations for working with Azure Arc VMware Management. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/connectedvmware/armconnectedvmware) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/connectedvmware/arm ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Arc VMware Management. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Arc VMware Management. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armconnectedvmware.NewClientFactory(, cre ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewVCentersClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/consumption/armconsumption/README.md b/sdk/resourcemanager/consumption/armconsumption/README.md index 70c2d3eaf4a1..5e4efb629ff8 100644 --- a/sdk/resourcemanager/consumption/armconsumption/README.md +++ b/sdk/resourcemanager/consumption/armconsumption/README.md @@ -1,7 +1,5 @@ # Azure Consumption Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption) - The `armconsumption` module provides operations for working with Azure Consumption. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/consumption/armconsumption) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armcons ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Consumption. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Consumption. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armconsumption.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewPriceSheetClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/containerinstance/armcontainerinstance/README.md b/sdk/resourcemanager/containerinstance/armcontainerinstance/README.md index 63276275a276..f4fe48b8aef6 100644 --- a/sdk/resourcemanager/containerinstance/armcontainerinstance/README.md +++ b/sdk/resourcemanager/containerinstance/armcontainerinstance/README.md @@ -1,7 +1,5 @@ # Azure Container Instance Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance/v2) - The `armcontainerinstance` module provides operations for working with Azure Container Instance. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/containerinstance/armcontainerinstance) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/a ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Container Instance. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Container Instance. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armcontainerinstance.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewContainerGroupProfileClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime/README.md b/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime/README.md index 7386502798fe..ad17cf8a7583 100644 --- a/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime/README.md +++ b/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime/README.md @@ -1,7 +1,5 @@ # Azure Container Orchestrator Runtime Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime) - The `armcontainerorchestratorruntime` module provides operations for working with Azure Container Orchestrator Runtime. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/containerorchestratorruntime/armcontainerorchestratorruntime) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerorchestrat ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Container Orchestrator Runtime. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Container Orchestrator Runtime. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armcontainerorchestratorruntime.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewImportPipelinesClient() @@ -96,4 +94,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/containerservice/armcontainerservice/README.md b/sdk/resourcemanager/containerservice/armcontainerservice/README.md index b2e7e682bea9..3ce88ae6a059 100644 --- a/sdk/resourcemanager/containerservice/armcontainerservice/README.md +++ b/sdk/resourcemanager/containerservice/armcontainerservice/README.md @@ -1,7 +1,5 @@ # Azure Container Service Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v6)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v6) - The `armcontainerservice` module provides operations for working with Azure Container Service. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/containerservice/armcontainerservice) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Container Service. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Container Service. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armcontainerservice.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAgentPoolsClient() diff --git a/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/README.md b/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/README.md index 6f74b5db2ba3..f4f1f72544fe 100644 --- a/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/README.md +++ b/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet/README.md @@ -1,7 +1,5 @@ # Azure Kubernetes Fleet Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet) - The `armcontainerservicefleet` module provides operations for working with Azure Kubernetes Fleet. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/containerservicefleet/armcontainerservicefleet) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservicefle ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Kubernetes Fleet. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Kubernetes Fleet. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armcontainerservicefleet.NewClientFactory(, cred, &optio ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewCassandraClustersClient() @@ -67,7 +65,6 @@ This allows writing tests to cover various success/error conditions without the Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes. - ## More sample code - [Cassandra](https://aka.ms/azsdk/go/mgmt/samples?path=sdk/resourcemanager/cosmos/cassandra) @@ -108,4 +105,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/README.md b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/README.md index 521610e21c06..95794fd4d2f9 100644 --- a/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/README.md +++ b/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql/README.md @@ -1,7 +1,5 @@ # Azure Cosmosforpostgresql Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql) - The `armcosmosforpostgresql` module provides operations for working with Azure Cosmosforpostgresql. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/cosmosforpostgresql/armcosmosforpostgresql) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmosforpostgresql ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Cosmosforpostgresql. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Cosmosforpostgresql. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ client, err := armcosmosforpostgresql.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClustersClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/costmanagement/armcostmanagement/README.md b/sdk/resourcemanager/costmanagement/armcostmanagement/README.md index 5db86fd93c1f..a7e14480c97b 100644 --- a/sdk/resourcemanager/costmanagement/armcostmanagement/README.md +++ b/sdk/resourcemanager/costmanagement/armcostmanagement/README.md @@ -1,7 +1,5 @@ # Azure Costmanagement Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armcostmanagement/v2) - The `armcostmanagement` module provides operations for working with Azure Costmanagement. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/costmanagement/armcostmanagement) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/costmanagement/armc ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Costmanagement. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Costmanagement. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armcostmanagement.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAlertsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/customerinsights/armcustomerinsights/README.md b/sdk/resourcemanager/customerinsights/armcustomerinsights/README.md index f9f495e1e0de..4d7e6a986527 100644 --- a/sdk/resourcemanager/customerinsights/armcustomerinsights/README.md +++ b/sdk/resourcemanager/customerinsights/armcustomerinsights/README.md @@ -1,7 +1,5 @@ # Azure Customer Insights Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/customerinsights/armcustomerinsights)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/customerinsights/armcustomerinsights) - The `armcustomerinsights` module provides operations for working with Azure Customer Insights. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/customerinsights/armcustomerinsights) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/customerinsights/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Customer Insights. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Customer Insights. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armcustomerinsights.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewHubsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/customerlockbox/armcustomerlockbox/README.md b/sdk/resourcemanager/customerlockbox/armcustomerlockbox/README.md index 0fa4ed0cf62f..345b4a328fe4 100644 --- a/sdk/resourcemanager/customerlockbox/armcustomerlockbox/README.md +++ b/sdk/resourcemanager/customerlockbox/armcustomerlockbox/README.md @@ -1,7 +1,5 @@ # Azure Customer Lockbox Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/customerlockbox/armcustomerlockbox)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/customerlockbox/armcustomerlockbox) - The `armcustomerlockbox` module provides operations for working with Azure Customer Lockbox. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/customerlockbox/armcustomerlockbox) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/customerlockbox/arm ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Customer Lockbox. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Customer Lockbox. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armcustomerlockbox.NewClientFactory(, cre ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewGetClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/customproviders/armcustomproviders/README.md b/sdk/resourcemanager/customproviders/armcustomproviders/README.md index 5d98d1b186ea..345890d2579c 100644 --- a/sdk/resourcemanager/customproviders/armcustomproviders/README.md +++ b/sdk/resourcemanager/customproviders/armcustomproviders/README.md @@ -1,7 +1,5 @@ # Azure Custom Providers Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/customproviders/armcustomproviders)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/customproviders/armcustomproviders) - The `armcustomproviders` module provides operations for working with Azure Custom Providers. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/customproviders/armcustomproviders) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/customproviders/arm ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Custom Providers. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Custom Providers. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armcustomproviders.NewClientFactory(, cre ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewCustomResourceProviderClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/dashboard/armdashboard/README.md b/sdk/resourcemanager/dashboard/armdashboard/README.md index 3ba99ffc91b4..04c6fad2f39c 100644 --- a/sdk/resourcemanager/dashboard/armdashboard/README.md +++ b/sdk/resourcemanager/dashboard/armdashboard/README.md @@ -1,7 +1,5 @@ # Azure Dashboard Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashboard) - The `armdashboard` module provides operations for working with Azure Dashboard. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/dashboard/armdashboard) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dashboard/armdashbo ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Dashboard. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Dashboard. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdashboard.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewGrafanaClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/databoundaries/armdataboundaries/README.md b/sdk/resourcemanager/databoundaries/armdataboundaries/README.md index c111e879fd0b..0838a1ef5080 100644 --- a/sdk/resourcemanager/databoundaries/armdataboundaries/README.md +++ b/sdk/resourcemanager/databoundaries/armdataboundaries/README.md @@ -1,7 +1,5 @@ # Azure Data Boundary Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databoundaries/armdataboundaries)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databoundaries/armdataboundaries) - The `armdataboundaries` module provides operations for working with Azure Data Boundary. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/databoundaries/armdataboundaries) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databoundaries/armd ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Data Boundary. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Data Boundary. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdataboundaries.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/databox/armdatabox/README.md b/sdk/resourcemanager/databox/armdatabox/README.md index ec45510dda44..0de7dad385a7 100644 --- a/sdk/resourcemanager/databox/armdatabox/README.md +++ b/sdk/resourcemanager/databox/armdatabox/README.md @@ -1,7 +1,5 @@ # Azure Data Box Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databox/armdatabox/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databox/armdatabox/v2) - The `armdatabox` module provides operations for working with Azure Data Box. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/databox/armdatabox) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databox/armdatabox/ ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Data Box. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Data Box. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdatabox.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewServiceClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/databoxedge/armdataboxedge/README.md b/sdk/resourcemanager/databoxedge/armdataboxedge/README.md index 0641c05644c1..f7aaba1058e9 100644 --- a/sdk/resourcemanager/databoxedge/armdataboxedge/README.md +++ b/sdk/resourcemanager/databoxedge/armdataboxedge/README.md @@ -1,7 +1,5 @@ # Azure Data Box Edge Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databoxedge/armdataboxedge)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databoxedge/armdataboxedge) - The `armdataboxedge` module provides operations for working with Azure Data Box Edge. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/databoxedge/armdataboxedge) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databoxedge/armdata ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Data Box Edge. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Data Box Edge. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdataboxedge.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewUsersClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/databricks/armdatabricks/README.md b/sdk/resourcemanager/databricks/armdatabricks/README.md index f4f0cf76701b..7a5aff55c8d2 100644 --- a/sdk/resourcemanager/databricks/armdatabricks/README.md +++ b/sdk/resourcemanager/databricks/armdatabricks/README.md @@ -1,7 +1,5 @@ # Azure Databricks Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databricks/armdatabricks)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databricks/armdatabricks) - The `armdatabricks` module provides operations for working with Azure Databricks. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/databricks/armdatabricks) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/databricks/armdatab ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Databricks. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Databricks. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdatabricks.NewClientFactory(, cred, &o ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewWorkspacesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/datacatalog/armdatacatalog/README.md b/sdk/resourcemanager/datacatalog/armdatacatalog/README.md index 17979f74acac..d0d3ceb2f91d 100644 --- a/sdk/resourcemanager/datacatalog/armdatacatalog/README.md +++ b/sdk/resourcemanager/datacatalog/armdatacatalog/README.md @@ -1,7 +1,5 @@ # Azure Data Catalog Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datacatalog/armdatacatalog)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datacatalog/armdatacatalog) - The `armdatacatalog` module provides operations for working with Azure Data Catalog. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/datacatalog/armdatacatalog) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datacatalog/armdata ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Data Catalog. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Data Catalog. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdatacatalog.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewADCCatalogsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/datadog/armdatadog/README.md b/sdk/resourcemanager/datadog/armdatadog/README.md index bd118bed7e9a..c5c9086a2096 100644 --- a/sdk/resourcemanager/datadog/armdatadog/README.md +++ b/sdk/resourcemanager/datadog/armdatadog/README.md @@ -1,7 +1,5 @@ # Azure Datadog Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datadog/armdatadog)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datadog/armdatadog) - The `armdatadog` module provides operations for working with Azure Datadog. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/datadog/armdatadog) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datadog/armdatadog ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Datadog. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Datadog. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdatadog.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewMarketplaceAgreementsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/datafactory/armdatafactory/README.md b/sdk/resourcemanager/datafactory/armdatafactory/README.md index 329cb2cf0b94..90f4bf4d8d9e 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/README.md +++ b/sdk/resourcemanager/datafactory/armdatafactory/README.md @@ -1,7 +1,5 @@ # Azure Data Factory Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v9)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v9) - The `armdatafactory` module provides operations for working with Azure Data Factory. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/datafactory/armdatafactory) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdata ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Data Factory. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Data Factory. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdatafactory.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewActivityRunsClient() @@ -67,7 +65,6 @@ This allows writing tests to cover various success/error conditions without the Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes. - ## Provide Feedback If you encounter bugs or have suggestions, please @@ -90,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/datalake-analytics/armdatalakeanalytics/README.md b/sdk/resourcemanager/datalake-analytics/armdatalakeanalytics/README.md index f5224dbacf82..da1bd52a3d28 100644 --- a/sdk/resourcemanager/datalake-analytics/armdatalakeanalytics/README.md +++ b/sdk/resourcemanager/datalake-analytics/armdatalakeanalytics/README.md @@ -1,7 +1,5 @@ # Azure Data Lake Analytics Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datalake-analytics/armdatalakeanalytics)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datalake-analytics/armdatalakeanalytics) - The `armdatalakeanalytics` module provides operations for working with Azure Data Lake Analytics. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/datalake-analytics/armdatalakeanalytics) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datalake-analytics/ ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Data Lake Analytics. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Data Lake Analytics. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdatalakeanalytics.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDataLakeStoreAccountsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/datalake-store/armdatalakestore/README.md b/sdk/resourcemanager/datalake-store/armdatalakestore/README.md index a28957c53329..bc552fab0073 100644 --- a/sdk/resourcemanager/datalake-store/armdatalakestore/README.md +++ b/sdk/resourcemanager/datalake-store/armdatalakestore/README.md @@ -1,7 +1,5 @@ # Azure Data Lake Storage Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datalake-store/armdatalakestore)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datalake-store/armdatalakestore) - The `armdatalakestore` module provides operations for working with Azure Data Lake Storage. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/datalake-store/armdatalakestore) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datalake-store/armd ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Data Lake Storage. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Data Lake Storage. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdatalakestore.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAccountsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/datamigration/armdatamigration/README.md b/sdk/resourcemanager/datamigration/armdatamigration/README.md index 6ccb9efa1d90..8f3bca8d5e62 100644 --- a/sdk/resourcemanager/datamigration/armdatamigration/README.md +++ b/sdk/resourcemanager/datamigration/armdatamigration/README.md @@ -1,7 +1,5 @@ # Azure Data Migration Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armdatamigration) - The `armdatamigration` module provides operations for working with Azure Data Migration. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/datamigration/armdatamigration) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datamigration/armda ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Data Migration. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Data Migration. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdatamigration.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewServicesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/README.md b/sdk/resourcemanager/dataprotection/armdataprotection/README.md index b96f6bf8d8f6..297661f2a932 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/README.md +++ b/sdk/resourcemanager/dataprotection/armdataprotection/README.md @@ -1,7 +1,5 @@ # Azure Backup Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v3)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v3) - The `armdataprotection` module provides operations for working with Azure Backup. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/dataprotection/armdataprotection) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armd ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Backup. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Backup. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdataprotection.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewBackupInstancesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/datashare/armdatashare/README.md b/sdk/resourcemanager/datashare/armdatashare/README.md index d101c74692cb..682287c4d696 100644 --- a/sdk/resourcemanager/datashare/armdatashare/README.md +++ b/sdk/resourcemanager/datashare/armdatashare/README.md @@ -1,7 +1,5 @@ # Azure Data Shara Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datashare/armdatashare)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datashare/armdatashare) - The `armdatashare` module provides operations for working with Azure Data Shara. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/datashare/armdatashare) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datashare/armdatash ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Data Shara. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Data Shara. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdatashare.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAccountsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/delegatednetwork/armdelegatednetwork/README.md b/sdk/resourcemanager/delegatednetwork/armdelegatednetwork/README.md index 41c338903934..13582e3826d2 100644 --- a/sdk/resourcemanager/delegatednetwork/armdelegatednetwork/README.md +++ b/sdk/resourcemanager/delegatednetwork/armdelegatednetwork/README.md @@ -1,7 +1,5 @@ # Azure Delegated Network Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/delegatednetwork/armdelegatednetwork)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/delegatednetwork/armdelegatednetwork) - The `armdelegatednetwork` module provides operations for working with Azure Delegated Network. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/delegatednetwork/armdelegatednetwork) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/delegatednetwork/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Delegated Network. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Delegated Network. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdelegatednetwork.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/deploymentmanager/armdeploymentmanager/README.md b/sdk/resourcemanager/deploymentmanager/armdeploymentmanager/README.md index c0ee5c134708..773e050618e7 100644 --- a/sdk/resourcemanager/deploymentmanager/armdeploymentmanager/README.md +++ b/sdk/resourcemanager/deploymentmanager/armdeploymentmanager/README.md @@ -1,7 +1,5 @@ # Azure Deployment manager Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deploymentmanager/armdeploymentmanager)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deploymentmanager/armdeploymentmanager) - The `armdeploymentmanager` module provides operations for working with Azure Deployment manager. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/deploymentmanager/armdeploymentmanager) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deploymentmanager/a ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Deployment manager. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Deployment manager. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdeploymentmanager.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewServicesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/desktopvirtualization/armdesktopvirtualization/README.md b/sdk/resourcemanager/desktopvirtualization/armdesktopvirtualization/README.md index 9dad2e6b9fcd..49b33769b048 100644 --- a/sdk/resourcemanager/desktopvirtualization/armdesktopvirtualization/README.md +++ b/sdk/resourcemanager/desktopvirtualization/armdesktopvirtualization/README.md @@ -1,7 +1,5 @@ # Azure Virtual Desktop Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/desktopvirtualization/armdesktopvirtualization/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/desktopvirtualization/armdesktopvirtualization/v2) - The `armdesktopvirtualization` module provides operations for working with Azure Virtual Desktop. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/desktopvirtualization/armdesktopvirtualization) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/desktopvirtualizati ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Virtual Desktop. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Virtual Desktop. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdesktopvirtualization.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAttachedNetworksClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/devhub/armdevhub/README.md b/sdk/resourcemanager/devhub/armdevhub/README.md index 88c2676cc094..be39f00d9e3f 100644 --- a/sdk/resourcemanager/devhub/armdevhub/README.md +++ b/sdk/resourcemanager/devhub/armdevhub/README.md @@ -1,7 +1,5 @@ # Azure Devhub Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devhub/armdevhub)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devhub/armdevhub) - The `armdevhub` module provides operations for working with Azure Devhub. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/devhub/armdevhub) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devhub/armdevhub ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Devhub. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Devhub. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdevhub.NewClientFactory(, cred, &optio ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDeveloperHubServiceClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/README.md b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/README.md index 1bcf4ff15d0e..4e21ad2497c0 100644 --- a/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/README.md +++ b/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices/README.md @@ -1,7 +1,5 @@ # Azure Device Provisioning Service Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices) - The `armdeviceprovisioningservices` module provides operations for working with Azure Device Provisioning Service. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deviceprovisionings ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Device Provisioning Service. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Device Provisioning Service. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdeviceprovisioningservices.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAssetEndpointProfilesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/deviceupdate/armdeviceupdate/README.md b/sdk/resourcemanager/deviceupdate/armdeviceupdate/README.md index 8859339e87dc..130e4aecf151 100644 --- a/sdk/resourcemanager/deviceupdate/armdeviceupdate/README.md +++ b/sdk/resourcemanager/deviceupdate/armdeviceupdate/README.md @@ -1,7 +1,5 @@ # Azure Device Update Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deviceupdate/armdeviceupdate)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deviceupdate/armdeviceupdate) - The `armdeviceupdate` module provides operations for working with Azure Device Update. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/deviceupdate/armdeviceupdate) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/deviceupdate/armdev ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Device Update. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Device Update. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdeviceupdate.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAccountsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/devops/armdevops/README.md b/sdk/resourcemanager/devops/armdevops/README.md index 78194e664370..98d39593cc7b 100644 --- a/sdk/resourcemanager/devops/armdevops/README.md +++ b/sdk/resourcemanager/devops/armdevops/README.md @@ -1,7 +1,5 @@ # Azure DevOps Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devops/armdevops)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devops/armdevops) - The `armdevops` module provides operations for working with Azure DevOps. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/devops/armdevops) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devops/armdevops ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure DevOps. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure DevOps. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdevops.NewClientFactory(, cred, &optio ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewPipelinesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure/CHANGELOG.md b/sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure/CHANGELOG.md index 96e36af4f892..30f1580b8077 100644 --- a/sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure/CHANGELOG.md +++ b/sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History ## 0.1.0 (2024-05-24) +### Other Changes The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html). diff --git a/sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure/README.md b/sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure/README.md index 63351ae71d8c..68d09e53333c 100644 --- a/sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure/README.md +++ b/sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure/README.md @@ -1,7 +1,5 @@ # Azure DevOps Infrastructure Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure) - The `armdevopsinfrastructure` module provides operations for working with Azure DevOps Infrastructure. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devopsinfrastructur ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure DevOps Infrastructure. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure DevOps Infrastructure. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdevopsinfrastructure.NewClientFactory( ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewImageVersionsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/devtestlabs/armdevtestlabs/README.md b/sdk/resourcemanager/devtestlabs/armdevtestlabs/README.md index d748471a70a7..3963765f6640 100644 --- a/sdk/resourcemanager/devtestlabs/armdevtestlabs/README.md +++ b/sdk/resourcemanager/devtestlabs/armdevtestlabs/README.md @@ -1,7 +1,5 @@ # Azure Lab Services Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devtestlabs/armdevtestlabs)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devtestlabs/armdevtestlabs) - The `armdevtestlabs` module provides operations for working with Azure Lab Services. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/devtestlabs/armdevtestlabs) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/devtestlabs/armdevt ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Lab Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Lab Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdevtestlabs.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewPolicySetsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/digitaltwins/armdigitaltwins/README.md b/sdk/resourcemanager/digitaltwins/armdigitaltwins/README.md index e8e23bc28419..f2d4a272bf14 100644 --- a/sdk/resourcemanager/digitaltwins/armdigitaltwins/README.md +++ b/sdk/resourcemanager/digitaltwins/armdigitaltwins/README.md @@ -1,7 +1,5 @@ # Azure Digital Twins Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdigitaltwins) - The `armdigitaltwins` module provides operations for working with Azure Digital Twins. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/digitaltwins/armdigitaltwins) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/digitaltwins/armdig ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Digital Twins. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Digital Twins. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdigitaltwins.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -67,7 +65,6 @@ This allows writing tests to cover various success/error conditions without the Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes. - ## Provide Feedback If you encounter bugs or have suggestions, please @@ -90,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/dns/armdns/README.md b/sdk/resourcemanager/dns/armdns/README.md index a710fac6a03c..2493de2da553 100644 --- a/sdk/resourcemanager/dns/armdns/README.md +++ b/sdk/resourcemanager/dns/armdns/README.md @@ -1,7 +1,5 @@ # Azure DNS Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dns/armdns)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dns/armdns) - The `armdns` module provides operations for working with Azure DNS. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/dns/armdns) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dns/armdns ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure DNS. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure DNS. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdns.NewClientFactory(, cred, &options) ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDnssecConfigsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/dnsresolver/armdnsresolver/README.md b/sdk/resourcemanager/dnsresolver/armdnsresolver/README.md index dc46fe28a1ed..0c6b3b626aab 100644 --- a/sdk/resourcemanager/dnsresolver/armdnsresolver/README.md +++ b/sdk/resourcemanager/dnsresolver/armdnsresolver/README.md @@ -1,7 +1,5 @@ # Azure DNS Private Resolver Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dnsresolver/armdnsresolver)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dnsresolver/armdnsresolver) - The `armdnsresolver` module provides operations for working with Azure DNS Private Resolver. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/dnsresolver/armdnsresolver) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dnsresolver/armdnsr ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure DNS Private Resolver. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure DNS Private Resolver. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdnsresolver.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDNSForwardingRulesetsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/domainservices/armdomainservices/README.md b/sdk/resourcemanager/domainservices/armdomainservices/README.md index 29b21e8c5443..019f955caad0 100644 --- a/sdk/resourcemanager/domainservices/armdomainservices/README.md +++ b/sdk/resourcemanager/domainservices/armdomainservices/README.md @@ -1,7 +1,5 @@ # Azure Domain Services Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/domainservices/armdomainservices)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/domainservices/armdomainservices) - The `armdomainservices` module provides operations for working with Azure Domain Services. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/domainservices/armdomainservices) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/domainservices/armd ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Domain Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Domain Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdomainservices.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDomainServiceOperationsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/dynatrace/armdynatrace/README.md b/sdk/resourcemanager/dynatrace/armdynatrace/README.md index 57a17a7b0bc1..92783a32661d 100644 --- a/sdk/resourcemanager/dynatrace/armdynatrace/README.md +++ b/sdk/resourcemanager/dynatrace/armdynatrace/README.md @@ -1,7 +1,5 @@ # Azure Dynatrace Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatrace/v2) - The `armdynatrace` module provides operations for working with Azure Dynatrace. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/dynatrace/armdynatrace) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dynatrace/armdynatr ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Dynatrace. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Dynatrace. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdynatrace.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewMonitorsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/edgeorder/armedgeorder/README.md b/sdk/resourcemanager/edgeorder/armedgeorder/README.md index 4fa1ecacc5c0..9b0ce2cc7a1e 100644 --- a/sdk/resourcemanager/edgeorder/armedgeorder/README.md +++ b/sdk/resourcemanager/edgeorder/armedgeorder/README.md @@ -1,7 +1,5 @@ # Azure Edge Order Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeorder) - The `armedgeorder` module provides operations for working with Azure Edge Order. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/edgeorder/armedgeorder) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorder/armedgeor ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Edge Order. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Edge Order. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armedgeorder.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewManagementClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/edgeorderpartner/armedgeorderpartner/README.md b/sdk/resourcemanager/edgeorderpartner/armedgeorderpartner/README.md index e52f39e864e8..a54a1679206a 100644 --- a/sdk/resourcemanager/edgeorderpartner/armedgeorderpartner/README.md +++ b/sdk/resourcemanager/edgeorderpartner/armedgeorderpartner/README.md @@ -1,7 +1,5 @@ # Azure Edge Order Partner Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorderpartner/armedgeorderpartner)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorderpartner/armedgeorderpartner) - The `armedgeorderpartner` module provides operations for working with Azure Edge Order Partner. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/edgeorderpartner/armedgeorderpartner) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgeorderpartner/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Edge Order Partner. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Edge Order Partner. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armedgeorderpartner.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAPISClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/edgezones/armedgezones/README.md b/sdk/resourcemanager/edgezones/armedgezones/README.md index 9e0b834b8e50..80edfbb9885a 100644 --- a/sdk/resourcemanager/edgezones/armedgezones/README.md +++ b/sdk/resourcemanager/edgezones/armedgezones/README.md @@ -1,7 +1,5 @@ # Azure Edgezones Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgezones/armedgezones)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgezones/armedgezones) - The `armedgezones` module provides operations for working with Azure Edgezones. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/edgezones/armedgezones) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/edgezones/armedgezo ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Edgezones. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Edgezones. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armedgezones.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewExtendedZonesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/education/armeducation/README.md b/sdk/resourcemanager/education/armeducation/README.md index 20e2108561ab..3f76d88dbc49 100644 --- a/sdk/resourcemanager/education/armeducation/README.md +++ b/sdk/resourcemanager/education/armeducation/README.md @@ -1,7 +1,5 @@ # Azure Education Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/education/armeducation)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/education/armeducation) - The `armeducation` module provides operations for working with Azure Education. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/education/armeducation) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/education/armeducat ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Education. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Education. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armeducation.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewStudentsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/elastic/armelastic/README.md b/sdk/resourcemanager/elastic/armelastic/README.md index a5ad307e5e5a..a2ad6ecf9d99 100644 --- a/sdk/resourcemanager/elastic/armelastic/README.md +++ b/sdk/resourcemanager/elastic/armelastic/README.md @@ -1,7 +1,5 @@ # Azure Elastic Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic) - The `armelastic` module provides operations for working with Azure Elastic. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/elastic/armelastic) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elastic/armelastic ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Elastic. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Elastic. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armelastic.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAllTrafficFiltersClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/elasticsan/armelasticsan/README.md b/sdk/resourcemanager/elasticsan/armelasticsan/README.md index e51ac71644a6..4ba4a05842de 100644 --- a/sdk/resourcemanager/elasticsan/armelasticsan/README.md +++ b/sdk/resourcemanager/elasticsan/armelasticsan/README.md @@ -1,7 +1,5 @@ # Azure Elasticsan Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elasticsan/armelasticsan)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elasticsan/armelasticsan) - The `armelasticsan` module provides operations for working with Azure Elasticsan. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/elasticsan/armelasticsan) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/elasticsan/armelast ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Elasticsan. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Elasticsan. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armelasticsan.NewClientFactory(, cred, &o ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewElasticSansClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/engagementfabric/armengagementfabric/README.md b/sdk/resourcemanager/engagementfabric/armengagementfabric/README.md index 382ba2d92845..118ef1b4dc9c 100644 --- a/sdk/resourcemanager/engagementfabric/armengagementfabric/README.md +++ b/sdk/resourcemanager/engagementfabric/armengagementfabric/README.md @@ -1,7 +1,5 @@ # Azure Engagement Fabric Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/engagementfabric/armengagementfabric)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/engagementfabric/armengagementfabric) - The `armengagementfabric` module provides operations for working with Azure Engagement Fabric. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/engagementfabric/armengagementfabric) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/engagementfabric/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Engagement Fabric. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Engagement Fabric. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armengagementfabric.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAccountsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/eventgrid/armeventgrid/README.md b/sdk/resourcemanager/eventgrid/armeventgrid/README.md index 126546ae6885..49be96ca1c6c 100644 --- a/sdk/resourcemanager/eventgrid/armeventgrid/README.md +++ b/sdk/resourcemanager/eventgrid/armeventgrid/README.md @@ -1,7 +1,5 @@ # Azure Event Grid Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventgrid/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventgrid/v2) - The `armeventgrid` module provides operations for working with Azure Event Grid. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/eventgrid/armeventgrid) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventg ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Event Grid. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Event Grid. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armeventgrid.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewCaCertificatesClient() @@ -105,4 +103,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/eventhub/armeventhub/README.md b/sdk/resourcemanager/eventhub/armeventhub/README.md index 19bdf772dd3e..ed10ef11ff16 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/README.md +++ b/sdk/resourcemanager/eventhub/armeventhub/README.md @@ -1,7 +1,5 @@ # Azure Event Hubs Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub) - The `armeventhub` module provides operations for working with Azure Event Hubs. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/eventhub/armeventhub) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhu ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Event Hubs. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Event Hubs. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armeventhub.NewClientFactory(, cred, &opt ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewApplicationGroupClient() @@ -96,4 +94,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/extendedlocation/armextendedlocation/README.md b/sdk/resourcemanager/extendedlocation/armextendedlocation/README.md index e63495d0542b..e42950830b37 100644 --- a/sdk/resourcemanager/extendedlocation/armextendedlocation/README.md +++ b/sdk/resourcemanager/extendedlocation/armextendedlocation/README.md @@ -1,7 +1,5 @@ # Azure Extended Location Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/extendedlocation/armextendedlocation)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/extendedlocation/armextendedlocation) - The `armextendedlocation` module provides operations for working with Azure Extended Location. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/extendedlocation/armextendedlocation) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/extendedlocation/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Extended Location. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Extended Location. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armextendedlocation.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewCustomLocationsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/fabric/armfabric/README.md b/sdk/resourcemanager/fabric/armfabric/README.md index 53dab0b0b2db..b8404daa4130 100644 --- a/sdk/resourcemanager/fabric/armfabric/README.md +++ b/sdk/resourcemanager/fabric/armfabric/README.md @@ -1,7 +1,5 @@ # Azure Fabric Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/fabric/armfabric)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/fabric/armfabric) - The `armfabric` module provides operations for working with Azure Fabric. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/fabric/armfabric) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/fabric/armfabric ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Fabric. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Fabric. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armfabric.NewClientFactory(, cred, &optio ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewCapacitiesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/fluidrelay/armfluidrelay/README.md b/sdk/resourcemanager/fluidrelay/armfluidrelay/README.md index 51f4f876af9e..972355752d8a 100644 --- a/sdk/resourcemanager/fluidrelay/armfluidrelay/README.md +++ b/sdk/resourcemanager/fluidrelay/armfluidrelay/README.md @@ -1,7 +1,5 @@ # Azure Fluidrelay Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/fluidrelay/armfluidrelay)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/fluidrelay/armfluidrelay) - The `armfluidrelay` module provides operations for working with Azure Fluidrelay. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/fluidrelay/armfluidrelay) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/fluidrelay/armfluid ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Fluidrelay. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Fluidrelay. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armfluidrelay.NewClientFactory(, cred, &o ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewServersClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/frontdoor/armfrontdoor/README.md b/sdk/resourcemanager/frontdoor/armfrontdoor/README.md index 9bb3af327730..f8fbcccc2690 100644 --- a/sdk/resourcemanager/frontdoor/armfrontdoor/README.md +++ b/sdk/resourcemanager/frontdoor/armfrontdoor/README.md @@ -1,7 +1,5 @@ # Azure Front Door Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/frontdoor/armfrontdoor)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/frontdoor/armfrontdoor) - The `armfrontdoor` module provides operations for working with Azure Front Door. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/frontdoor/armfrontdoor) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/frontdoor/armfrontd ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Front Door. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Front Door. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armfrontdoor.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewEndpointsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/graphservices/armgraphservices/README.md b/sdk/resourcemanager/graphservices/armgraphservices/README.md index ec30150011fa..0c4e4221ea51 100644 --- a/sdk/resourcemanager/graphservices/armgraphservices/README.md +++ b/sdk/resourcemanager/graphservices/armgraphservices/README.md @@ -1,7 +1,5 @@ # Azure Graphservices Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/graphservices/armgraphservices)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/graphservices/armgraphservices) - The `armgraphservices` module provides operations for working with Azure Graphservices. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/graphservices/armgraphservices) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/graphservices/armgr ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Graphservices. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Graphservices. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armgraphservices.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAccountClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/guestconfiguration/armguestconfiguration/README.md b/sdk/resourcemanager/guestconfiguration/armguestconfiguration/README.md index 044535d55a04..e050380679ea 100644 --- a/sdk/resourcemanager/guestconfiguration/armguestconfiguration/README.md +++ b/sdk/resourcemanager/guestconfiguration/armguestconfiguration/README.md @@ -1,7 +1,5 @@ # Azure Guest Configuration Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/guestconfiguration/armguestconfiguration)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/guestconfiguration/armguestconfiguration) - The `armguestconfiguration` module provides operations for working with Azure Guest Configuration. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/guestconfiguration/armguestconfiguration) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/guestconfiguration/ ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Guest Configuration. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Guest Configuration. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armguestconfiguration.NewClientFactory(, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAssignmentsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/hanaonazure/armhanaonazure/README.md b/sdk/resourcemanager/hanaonazure/armhanaonazure/README.md index f894d3340722..7daaf88fe9d5 100644 --- a/sdk/resourcemanager/hanaonazure/armhanaonazure/README.md +++ b/sdk/resourcemanager/hanaonazure/armhanaonazure/README.md @@ -1,7 +1,5 @@ # Azure SAP HANA Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hanaonazure/armhanaonazure)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hanaonazure/armhanaonazure) - The `armhanaonazure` module provides operations for working with Azure SAP HANA. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/hanaonazure/armhanaonazure) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hanaonazure/armhana ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure SAP HANA. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure SAP HANA. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armhanaonazure.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewSapMonitorsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/hardwaresecuritymodules/armhardwaresecuritymodules/README.md b/sdk/resourcemanager/hardwaresecuritymodules/armhardwaresecuritymodules/README.md index 0b08035508bb..9c080b8ad3d7 100644 --- a/sdk/resourcemanager/hardwaresecuritymodules/armhardwaresecuritymodules/README.md +++ b/sdk/resourcemanager/hardwaresecuritymodules/armhardwaresecuritymodules/README.md @@ -1,7 +1,5 @@ # Azure Dedicated HSM Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hardwaresecuritymodules/armhardwaresecuritymodules/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hardwaresecuritymodules/armhardwaresecuritymodules/v2) - The `armhardwaresecuritymodules` module provides operations for working with Azure Dedicated HSM. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/hardwaresecuritymodules/armhardwaresecuritymodules) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hardwaresecuritymod ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Dedicated HSM. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Dedicated HSM. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armhardwaresecuritymodules.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewApplicationsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/hdinsightcontainers/armhdinsightcontainers/README.md b/sdk/resourcemanager/hdinsightcontainers/armhdinsightcontainers/README.md index 493da684d342..067299be3589 100644 --- a/sdk/resourcemanager/hdinsightcontainers/armhdinsightcontainers/README.md +++ b/sdk/resourcemanager/hdinsightcontainers/armhdinsightcontainers/README.md @@ -1,7 +1,5 @@ # Azure Hdinsight Containers Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hdinsightcontainers/armhdinsightcontainers)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hdinsightcontainers/armhdinsightcontainers) - The `armhdinsightcontainers` module provides operations for working with Azure Hdinsight Containers. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/hdinsightcontainers/armhdinsightcontainers) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hdinsightcontainers ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Hdinsight Containers. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Hdinsight Containers. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armhdinsightcontainers.NewClientFactory(, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAvailableClusterPoolVersionsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/healthbot/armhealthbot/README.md b/sdk/resourcemanager/healthbot/armhealthbot/README.md index a9b1776d2509..7b394c13e1ac 100644 --- a/sdk/resourcemanager/healthbot/armhealthbot/README.md +++ b/sdk/resourcemanager/healthbot/armhealthbot/README.md @@ -1,7 +1,5 @@ # Azure Health Bot Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthbot/armhealthbot)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthbot/armhealthbot) - The `armhealthbot` module provides operations for working with Azure Health Bot. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/healthbot/armhealthbot) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthbot/armhealth ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Health Bot. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Health Bot. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armhealthbot.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewBotsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/healthcareapis/armhealthcareapis/README.md b/sdk/resourcemanager/healthcareapis/armhealthcareapis/README.md index 07d7887baecc..93b05663c77e 100644 --- a/sdk/resourcemanager/healthcareapis/armhealthcareapis/README.md +++ b/sdk/resourcemanager/healthcareapis/armhealthcareapis/README.md @@ -1,7 +1,5 @@ # Azure Healthcare APIs Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armhealthcareapis/v2) - The `armhealthcareapis` module provides operations for working with Azure Healthcare APIs. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/healthcareapis/armhealthcareapis) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthcareapis/armh ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Healthcare APIs. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Healthcare APIs. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armhealthcareapis.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDicomServicesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/healthdataaiservices/armhealthdataaiservices/README.md b/sdk/resourcemanager/healthdataaiservices/armhealthdataaiservices/README.md index 86a5f834c8e6..9afcb1a67d3a 100644 --- a/sdk/resourcemanager/healthdataaiservices/armhealthdataaiservices/README.md +++ b/sdk/resourcemanager/healthdataaiservices/armhealthdataaiservices/README.md @@ -1,7 +1,5 @@ # Azure HealthDataAIServices Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthdataaiservices/armhealthdataaiservices)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthdataaiservices/armhealthdataaiservices) - The `armhealthdataaiservices` module provides operations for working with Azure HealthDataAIServices. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/healthdataaiservices/armhealthdataaiservices) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/healthdataaiservice ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure HealthDataAIServices. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure HealthDataAIServices. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armhealthdataaiservices.NewClientFactory( ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDeidServicesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/README.md b/sdk/resourcemanager/hybridcompute/armhybridcompute/README.md index 55de81c172d5..7ce536fadcb0 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/README.md +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/README.md @@ -1,7 +1,5 @@ # Azure Hybrid Compute Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2) - The `armhybridcompute` module provides operations for working with Azure Hybrid Compute. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/hybridcompute/armhybridcompute) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhy ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Hybrid Compute. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Hybrid Compute. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armhybridcompute.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewExtensionMetadataClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/hybridconnectivity/armhybridconnectivity/README.md b/sdk/resourcemanager/hybridconnectivity/armhybridconnectivity/README.md index 5c2ef94fcd0f..22ab09b89fd9 100644 --- a/sdk/resourcemanager/hybridconnectivity/armhybridconnectivity/README.md +++ b/sdk/resourcemanager/hybridconnectivity/armhybridconnectivity/README.md @@ -1,7 +1,5 @@ # Azure Arc Connectivity Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridconnectivity/armhybridconnectivity)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridconnectivity/armhybridconnectivity) - The `armhybridconnectivity` module provides operations for working with Azure Arc Connectivity. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/hybridconnectivity/armhybridconnectivity) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridconnectivity/ ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Arc Connectivity. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Arc Connectivity. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armhybridconnectivity.NewClientFactory(, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewEndpointsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/hybridcontainerservice/armhybridcontainerservice/README.md b/sdk/resourcemanager/hybridcontainerservice/armhybridcontainerservice/README.md index 8970a2c02749..9376a5da5917 100644 --- a/sdk/resourcemanager/hybridcontainerservice/armhybridcontainerservice/README.md +++ b/sdk/resourcemanager/hybridcontainerservice/armhybridcontainerservice/README.md @@ -1,7 +1,5 @@ # Azure Hybrid Container Service Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcontainerservice/armhybridcontainerservice)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcontainerservice/armhybridcontainerservice) - The `armhybridcontainerservice` module provides operations for working with Azure Hybrid Container Service. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/hybridcontainerservice/armhybridcontainerservice) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcontainerserv ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Hybrid Container Service. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Hybrid Container Service. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armhybridcontainerservice.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDataManagersClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/hybridkubernetes/armhybridkubernetes/README.md b/sdk/resourcemanager/hybridkubernetes/armhybridkubernetes/README.md index 70e36a328426..e96a58827b5d 100644 --- a/sdk/resourcemanager/hybridkubernetes/armhybridkubernetes/README.md +++ b/sdk/resourcemanager/hybridkubernetes/armhybridkubernetes/README.md @@ -1,7 +1,5 @@ # Azure Kubernetes Connect Service Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridkubernetes/armhybridkubernetes)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridkubernetes/armhybridkubernetes) - The `armhybridkubernetes` module provides operations for working with Azure Kubernetes Connect Service. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/hybridkubernetes/armhybridkubernetes) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridkubernetes/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Kubernetes Connect Service. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Kubernetes Connect Service. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armhybridkubernetes.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewConnectedClusterClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/hybridnetwork/armhybridnetwork/README.md b/sdk/resourcemanager/hybridnetwork/armhybridnetwork/README.md index 15dd57df9c1b..d416b3f76e59 100644 --- a/sdk/resourcemanager/hybridnetwork/armhybridnetwork/README.md +++ b/sdk/resourcemanager/hybridnetwork/armhybridnetwork/README.md @@ -1,7 +1,5 @@ # Azure Private Edge Zone Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridnetwork/armhybridnetwork/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridnetwork/armhybridnetwork/v2) - The `armhybridnetwork` module provides operations for working with Azure Private Edge Zone. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/hybridnetwork/armhybridnetwork) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridnetwork/armhy ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Private Edge Zone. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Private Edge Zone. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armhybridnetwork.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDevicesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/informaticadatamgmt/arminformaticadatamgmt/README.md b/sdk/resourcemanager/informaticadatamgmt/arminformaticadatamgmt/README.md index f0b6d8faaca2..a2fb743fec77 100644 --- a/sdk/resourcemanager/informaticadatamgmt/arminformaticadatamgmt/README.md +++ b/sdk/resourcemanager/informaticadatamgmt/arminformaticadatamgmt/README.md @@ -1,7 +1,5 @@ # Azure Informatica DataManagement Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/informaticadatamgmt/arminformaticadatamgmt)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/informaticadatamgmt/arminformaticadatamgmt) - The `arminformaticadatamgmt` module provides operations for working with Azure Informatica DataManagement. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/informaticadatamgmt/arminformaticadatamgmt) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/informaticadatamgmt ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Informatica DataManagement. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Informatica DataManagement. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := arminformaticadatamgmt.NewClientFactory(, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewOrganizationsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/integrationspaces/armintegrationspaces/CHANGELOG.md b/sdk/resourcemanager/integrationspaces/armintegrationspaces/CHANGELOG.md index 85978a615c38..81936cf31b69 100644 --- a/sdk/resourcemanager/integrationspaces/armintegrationspaces/CHANGELOG.md +++ b/sdk/resourcemanager/integrationspaces/armintegrationspaces/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History ## 0.1.0 (2023-11-24) +### Other Changes The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html). diff --git a/sdk/resourcemanager/integrationspaces/armintegrationspaces/README.md b/sdk/resourcemanager/integrationspaces/armintegrationspaces/README.md index b6c7675f341d..8e6d84b9ffb4 100644 --- a/sdk/resourcemanager/integrationspaces/armintegrationspaces/README.md +++ b/sdk/resourcemanager/integrationspaces/armintegrationspaces/README.md @@ -1,7 +1,5 @@ # Azure Integrationspaces Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/armintegrationspaces) - The `armintegrationspaces` module provides operations for working with Azure Integrationspaces. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/integrationspaces/armintegrationspaces) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/integrationspaces/a ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Integrationspaces. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Integrationspaces. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armintegrationspaces.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewInfrastructureResourcesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/iotcentral/armiotcentral/README.md b/sdk/resourcemanager/iotcentral/armiotcentral/README.md index bb42afbd3955..1d969cbc3b12 100644 --- a/sdk/resourcemanager/iotcentral/armiotcentral/README.md +++ b/sdk/resourcemanager/iotcentral/armiotcentral/README.md @@ -1,7 +1,5 @@ # Azure IoT Central Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotcentral/armiotcentral)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotcentral/armiotcentral) - The `armiotcentral` module provides operations for working with Azure IoT Central. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/iotcentral/armiotcentral) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotcentral/armiotce ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure IoT Central. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure IoT Central. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armiotcentral.NewClientFactory(, cred, &o ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAppsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/iotfirmwaredefense/armiotfirmwaredefense/README.md b/sdk/resourcemanager/iotfirmwaredefense/armiotfirmwaredefense/README.md index d49002ff624a..d392d6558398 100644 --- a/sdk/resourcemanager/iotfirmwaredefense/armiotfirmwaredefense/README.md +++ b/sdk/resourcemanager/iotfirmwaredefense/armiotfirmwaredefense/README.md @@ -1,7 +1,5 @@ # Azure Iotfirmwaredefense Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotfirmwaredefense/armiotfirmwaredefense)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotfirmwaredefense/armiotfirmwaredefense) - The `armiotfirmwaredefense` module provides operations for working with Azure Iotfirmwaredefense. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/iotfirmwaredefense/armiotfirmwaredefense) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotfirmwaredefense/ ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Iotfirmwaredefense. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Iotfirmwaredefense. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ client, err := armiotfirmwaredefense.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewBinaryHardeningClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/iothub/armiothub/README.md b/sdk/resourcemanager/iothub/armiothub/README.md index 7474f42b2ecc..f000389d41c0 100644 --- a/sdk/resourcemanager/iothub/armiothub/README.md +++ b/sdk/resourcemanager/iothub/armiothub/README.md @@ -1,7 +1,5 @@ # Azure IoT Hub Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iothub/armiothub)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iothub/armiothub) - The `armiothub` module provides operations for working with Azure IoT Hub. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/iothub/armiothub) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iothub/armiothub ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure IoT Hub. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure IoT Hub. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armiothub.NewClientFactory(, cred, &optio ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewResourceClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/iotoperations/armiotoperations/README.md b/sdk/resourcemanager/iotoperations/armiotoperations/README.md index 0bbb5b19fe48..e8e9f659f517 100644 --- a/sdk/resourcemanager/iotoperations/armiotoperations/README.md +++ b/sdk/resourcemanager/iotoperations/armiotoperations/README.md @@ -1,7 +1,5 @@ # Azure IoTOperations Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotoperations/armiotoperations)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotoperations/armiotoperations) - The `armiotoperations` module provides operations for working with Azure IoTOperations. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/iotoperations/armiotoperations) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotoperations/armio ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure IoTOperations. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure IoTOperations. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armiotoperations.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewBrokerAuthenticationClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/iotsecurity/armiotsecurity/README.md b/sdk/resourcemanager/iotsecurity/armiotsecurity/README.md index 7a02b0b13ba1..4780380e0da9 100644 --- a/sdk/resourcemanager/iotsecurity/armiotsecurity/README.md +++ b/sdk/resourcemanager/iotsecurity/armiotsecurity/README.md @@ -1,7 +1,5 @@ # Azure IoT Security Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotsecurity/armiotsecurity)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotsecurity/armiotsecurity) - The `armiotsecurity` module provides operations for working with Azure IoT Security. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/iotsecurity/armiotsecurity) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/iotsecurity/armiots ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure IoT Security. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure IoT Security. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armiotsecurity.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDevicesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/keyvault/armkeyvault/README.md b/sdk/resourcemanager/keyvault/armkeyvault/README.md index c394a2d4329e..213e17b299f7 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/README.md +++ b/sdk/resourcemanager/keyvault/armkeyvault/README.md @@ -1,7 +1,5 @@ # Azure Key Vault Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvault) - The `armkeyvault` module provides operations for working with Azure Key Vault. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/keyvault/armkeyvault) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvaul ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Key Vault. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Key Vault. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armkeyvault.NewClientFactory(, cred, &opt ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewVaultsClient() @@ -95,4 +93,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/kubernetesconfiguration/armkubernetesconfiguration/README.md b/sdk/resourcemanager/kubernetesconfiguration/armkubernetesconfiguration/README.md index b6d14648ef8d..075144574c32 100644 --- a/sdk/resourcemanager/kubernetesconfiguration/armkubernetesconfiguration/README.md +++ b/sdk/resourcemanager/kubernetesconfiguration/armkubernetesconfiguration/README.md @@ -1,7 +1,5 @@ # Azure Kubernetes Configuration Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kubernetesconfiguration/armkubernetesconfiguration/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kubernetesconfiguration/armkubernetesconfiguration/v2) - The `armkubernetesconfiguration` module provides operations for working with Azure Kubernetes Configuration. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/kubernetesconfiguration/armkubernetesconfiguration) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kubernetesconfigura ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Kubernetes Configuration. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Kubernetes Configuration. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armkubernetesconfiguration.NewClientFactory(, cred, &option ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDatabasesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/labservices/armlabservices/README.md b/sdk/resourcemanager/labservices/armlabservices/README.md index bb0a46d66cb4..c219f7f3e365 100644 --- a/sdk/resourcemanager/labservices/armlabservices/README.md +++ b/sdk/resourcemanager/labservices/armlabservices/README.md @@ -1,7 +1,5 @@ # Azure Lab Services Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/labservices/armlabservices)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/labservices/armlabservices) - The `armlabservices` module provides operations for working with Azure Lab Services. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/labservices/armlabservices) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/labservices/armlabs ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Lab Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Lab Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armlabservices.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewLabPlansClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/largeinstance/armlargeinstance/CHANGELOG.md b/sdk/resourcemanager/largeinstance/armlargeinstance/CHANGELOG.md index 6ae3f0cc31bd..bfad91b6cc7f 100644 --- a/sdk/resourcemanager/largeinstance/armlargeinstance/CHANGELOG.md +++ b/sdk/resourcemanager/largeinstance/armlargeinstance/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History ## 0.1.0 (2024-02-23) +### Other Changes The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/largeinstance/armlargeinstance` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html). diff --git a/sdk/resourcemanager/largeinstance/armlargeinstance/README.md b/sdk/resourcemanager/largeinstance/armlargeinstance/README.md index d560af007015..fd79b3f86bdc 100644 --- a/sdk/resourcemanager/largeinstance/armlargeinstance/README.md +++ b/sdk/resourcemanager/largeinstance/armlargeinstance/README.md @@ -1,7 +1,5 @@ # Azure Largeinstance Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/largeinstance/armlargeinstance)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/largeinstance/armlargeinstance) - The `armlargeinstance` module provides operations for working with Azure Largeinstance. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/largeinstance/armlargeinstance) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/largeinstance/armla ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Largeinstance. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Largeinstance. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armlargeinstance.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAzureLargeInstanceClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/README.md b/sdk/resourcemanager/liftrqumulo/armqumulo/README.md index 45419ba965a5..317f5a581d4d 100644 --- a/sdk/resourcemanager/liftrqumulo/armqumulo/README.md +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/README.md @@ -1,7 +1,5 @@ # Azure Liftr Qumulo Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/liftrqumulo/armqumulo/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/liftrqumulo/armqumulo/v2) - The `armqumulo` module provides operations for working with Azure Liftr Qumulo. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/liftrqumulo/armqumulo) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/liftrqumulo/armqumu ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Liftr Qumulo. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Liftr Qumulo. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armqumulo.NewClientFactory(, cred, &optio ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewFileSystemsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/loadtesting/armloadtesting/README.md b/sdk/resourcemanager/loadtesting/armloadtesting/README.md index 05fe0c2c3046..153a5afff281 100644 --- a/sdk/resourcemanager/loadtesting/armloadtesting/README.md +++ b/sdk/resourcemanager/loadtesting/armloadtesting/README.md @@ -1,7 +1,5 @@ # Azure Load Testing Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/loadtesting/armloadtesting)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/loadtesting/armloadtesting) - The `armloadtesting` module provides operations for working with Azure Load Testing. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/loadtesting/armloadtesting) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/loadtesting/armload ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Load Testing. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Load Testing. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armloadtesting.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewLoadTestsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/logic/armlogic/README.md b/sdk/resourcemanager/logic/armlogic/README.md index e972acef1d73..1be4cdda3c54 100644 --- a/sdk/resourcemanager/logic/armlogic/README.md +++ b/sdk/resourcemanager/logic/armlogic/README.md @@ -1,7 +1,5 @@ # Azure Logic Apps Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/logic/armlogic)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/logic/armlogic) - The `armlogic` module provides operations for working with Azure Logic Apps. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/logic/armlogic) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/logic/armlogic ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Logic Apps. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Logic Apps. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armlogic.NewClientFactory(, cred, &option ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewWorkflowsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/logz/armlogz/README.md b/sdk/resourcemanager/logz/armlogz/README.md index a9529a6d014b..9513df5fcf91 100644 --- a/sdk/resourcemanager/logz/armlogz/README.md +++ b/sdk/resourcemanager/logz/armlogz/README.md @@ -1,7 +1,5 @@ # Azure Logz Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/logz/armlogz)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/logz/armlogz) - The `armlogz` module provides operations for working with Azure Logz. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/logz/armlogz) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/logz/armlogz ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Logz. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Logz. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armlogz.NewClientFactory(, cred, &options ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewSingleSignOnClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance/README.md b/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance/README.md index 0e7860c14088..38b4788681bb 100644 --- a/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance/README.md +++ b/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance/README.md @@ -1,7 +1,5 @@ # Azure Directory and Database Infrastructure Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance) - The `armm365securityandcompliance` module provides operations for working with Azure Directory and Database Infrastructure. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/m365securityandcompliance/armm365securityandcompliance) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/m365securityandcomp ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Directory and Database Infrastructure. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Directory and Database Infrastructure. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armm365securityandcompliance.NewClientFactory(, cre ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewBatchDeploymentsClient() @@ -98,4 +96,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/machinelearningservices/armmachinelearningservices/CHANGELOG.md b/sdk/resourcemanager/machinelearningservices/armmachinelearningservices/CHANGELOG.md index 57daab8efaa9..c32bd42bb4b6 100644 --- a/sdk/resourcemanager/machinelearningservices/armmachinelearningservices/CHANGELOG.md +++ b/sdk/resourcemanager/machinelearningservices/armmachinelearningservices/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History ## 1.0.1 (2022-05-30) +### Other Changes - Deprecated: use github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/machinelearning/armmachinelearning instead. diff --git a/sdk/resourcemanager/machinelearningservices/armmachinelearningservices/README.md b/sdk/resourcemanager/machinelearningservices/armmachinelearningservices/README.md index 6b270f81f5f5..d96f737ee6fc 100644 --- a/sdk/resourcemanager/machinelearningservices/armmachinelearningservices/README.md +++ b/sdk/resourcemanager/machinelearningservices/armmachinelearningservices/README.md @@ -1,7 +1,5 @@ # Azure Machine Learning Services Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/machinelearningservices/armmachinelearningservices)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/machinelearningservices/armmachinelearningservices) - The `armmachinelearningservices` module provides operations for working with Azure Machine Learning Services. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/machinelearningservices/armmachinelearningservices) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/machinelearningserv ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Machine Learning Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Machine Learning Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -35,7 +33,7 @@ For more information on authentication, please see the documentation for `aziden ## Clients -Azure Machine Learning Services modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. +Azure Machine Learning Services modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go client, err := armmachinelearningservices.NewQuotasClient(, cred, nil) @@ -74,4 +72,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/maintenance/armmaintenance/README.md b/sdk/resourcemanager/maintenance/armmaintenance/README.md index e9579d535503..8436ca58249e 100644 --- a/sdk/resourcemanager/maintenance/armmaintenance/README.md +++ b/sdk/resourcemanager/maintenance/armmaintenance/README.md @@ -1,7 +1,5 @@ # Azure Maintenance Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/maintenance/armmaintenance)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/maintenance/armmaintenance) - The `armmaintenance` module provides operations for working with Azure Maintenance. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/maintenance/armmaintenance) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/maintenance/armmain ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Maintenance. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Maintenance. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmaintenance.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewApplyUpdateForResourceGroupClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/managednetwork/armmanagednetwork/README.md b/sdk/resourcemanager/managednetwork/armmanagednetwork/README.md index ed99259c6d88..8f3aec40806c 100644 --- a/sdk/resourcemanager/managednetwork/armmanagednetwork/README.md +++ b/sdk/resourcemanager/managednetwork/armmanagednetwork/README.md @@ -1,7 +1,5 @@ # Azure Managed Network Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managednetwork/armmanagednetwork)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managednetwork/armmanagednetwork) - The `armmanagednetwork` module provides operations for working with Azure Managed Network. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/managednetwork/armmanagednetwork) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managednetwork/armm ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Managed Network. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Managed Network. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmanagednetwork.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewManagedNetworksClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/managednetworkfabric/armmanagednetworkfabric/README.md b/sdk/resourcemanager/managednetworkfabric/armmanagednetworkfabric/README.md index abedfe6e897c..7894cb23050c 100644 --- a/sdk/resourcemanager/managednetworkfabric/armmanagednetworkfabric/README.md +++ b/sdk/resourcemanager/managednetworkfabric/armmanagednetworkfabric/README.md @@ -1,7 +1,5 @@ # Azure Managednetworkfabric Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managednetworkfabric/armmanagednetworkfabric)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managednetworkfabric/armmanagednetworkfabric) - The `armmanagednetworkfabric` module provides operations for working with Azure Managednetworkfabric. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/managednetworkfabric/armmanagednetworkfabric) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managednetworkfabri ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Managednetworkfabric. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Managednetworkfabric. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ client, err := armmanagednetworkfabric.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewExternalNetworksClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/managedservices/armmanagedservices/README.md b/sdk/resourcemanager/managedservices/armmanagedservices/README.md index 05f4b877f2a0..34b5370184d2 100644 --- a/sdk/resourcemanager/managedservices/armmanagedservices/README.md +++ b/sdk/resourcemanager/managedservices/armmanagedservices/README.md @@ -1,7 +1,5 @@ # Azure Managed Services Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managedservices/armmanagedservices)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managedservices/armmanagedservices) - The `armmanagedservices` module provides operations for working with Azure Managed Services. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/managedservices/armmanagedservices) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managedservices/arm ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Managed Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Managed Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmanagedservices.NewClientFactory(, cre ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewRegistrationDefinitionsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/managementgroups/armmanagementgroups/README.md b/sdk/resourcemanager/managementgroups/armmanagementgroups/README.md index e7ffceac6824..cc528e3f3c6e 100644 --- a/sdk/resourcemanager/managementgroups/armmanagementgroups/README.md +++ b/sdk/resourcemanager/managementgroups/armmanagementgroups/README.md @@ -1,7 +1,5 @@ # Azure Management Groups Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups) - The `armmanagementgroups` module provides operations for working with Azure Management Groups. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/managementgroups/armmanagementgroups) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Management Groups. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Management Groups. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmanagementgroups.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/managementpartner/armmanagementpartner/README.md b/sdk/resourcemanager/managementpartner/armmanagementpartner/README.md index d4a8cc41cbde..c4fddd5e3b16 100644 --- a/sdk/resourcemanager/managementpartner/armmanagementpartner/README.md +++ b/sdk/resourcemanager/managementpartner/armmanagementpartner/README.md @@ -1,7 +1,5 @@ # Azure Management Partner Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementpartner/armmanagementpartner)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementpartner/armmanagementpartner) - The `armmanagementpartner` module provides operations for working with Azure Management Partner. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/managementpartner/armmanagementpartner) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementpartner/a ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Management Partner. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Management Partner. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmanagementpartner.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewPartnerClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/maps/armmaps/README.md b/sdk/resourcemanager/maps/armmaps/README.md index 4073d4308e14..35ecfc3664e4 100644 --- a/sdk/resourcemanager/maps/armmaps/README.md +++ b/sdk/resourcemanager/maps/armmaps/README.md @@ -1,7 +1,5 @@ # Azure Maps Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/maps/armmaps)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/maps/armmaps) - The `armmaps` module provides operations for working with Azure Maps. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/maps/armmaps) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/maps/armmaps ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Maps. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Maps. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmaps.NewClientFactory(, cred, &options ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/mariadb/armmariadb/README.md b/sdk/resourcemanager/mariadb/armmariadb/README.md index b819040ac41a..3405c80c5b01 100644 --- a/sdk/resourcemanager/mariadb/armmariadb/README.md +++ b/sdk/resourcemanager/mariadb/armmariadb/README.md @@ -1,7 +1,5 @@ # Azure OSS Databases Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mariadb/armmariadb)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mariadb/armmariadb) - The `armmariadb` module provides operations for working with Azure OSS Databases. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/mariadb/armmariadb) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mariadb/armmariadb ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure OSS Databases. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure OSS Databases. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmariadb.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDatabasesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/marketplace/armmarketplace/README.md b/sdk/resourcemanager/marketplace/armmarketplace/README.md index c9f54234ab87..d88a64a0966d 100644 --- a/sdk/resourcemanager/marketplace/armmarketplace/README.md +++ b/sdk/resourcemanager/marketplace/armmarketplace/README.md @@ -1,7 +1,5 @@ # Azure Marketplace Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmarketplace) - The `armmarketplace` module provides operations for working with Azure Marketplace. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/marketplace/armmarketplace) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplace/armmark ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Marketplace. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Marketplace. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmarketplace.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewPrivateStoreClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/marketplaceordering/armmarketplaceordering/README.md b/sdk/resourcemanager/marketplaceordering/armmarketplaceordering/README.md index 50c9f4707fab..1123d1a9ffeb 100644 --- a/sdk/resourcemanager/marketplaceordering/armmarketplaceordering/README.md +++ b/sdk/resourcemanager/marketplaceordering/armmarketplaceordering/README.md @@ -1,7 +1,5 @@ # Azure Marketplace Ordering Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplaceordering/armmarketplaceordering)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplaceordering/armmarketplaceordering) - The `armmarketplaceordering` module provides operations for working with Azure Marketplace Ordering. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/marketplaceordering/armmarketplaceordering) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/marketplaceordering ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Marketplace Ordering. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Marketplace Ordering. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmarketplaceordering.NewClientFactory(, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewMarketplaceAgreementsClient() diff --git a/sdk/resourcemanager/mediaservices/armmediaservices/README.md b/sdk/resourcemanager/mediaservices/armmediaservices/README.md index b2c81cf06adc..0ee27c596135 100644 --- a/sdk/resourcemanager/mediaservices/armmediaservices/README.md +++ b/sdk/resourcemanager/mediaservices/armmediaservices/README.md @@ -1,7 +1,5 @@ # Azure Media Services Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mediaservices/armmediaservices/v3)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mediaservices/armmediaservices/v3) - The `armmediaservices` module provides operations for working with Azure Media Services. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/mediaservices/armmediaservices) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mediaservices/armme ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Media Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Media Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmediaservices.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -98,4 +96,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/migrate/armmigrate/README.md b/sdk/resourcemanager/migrate/armmigrate/README.md index e38ce48d7cd0..32454e82fa53 100644 --- a/sdk/resourcemanager/migrate/armmigrate/README.md +++ b/sdk/resourcemanager/migrate/armmigrate/README.md @@ -1,7 +1,5 @@ # Azure Migrate Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate) - The `armmigrate` module provides operations for working with Azure Migrate. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/migrate/armmigrate) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrate/armmigrate ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Migrate. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Migrate. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmigrate.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewGroupsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap/CHANGELOG.md b/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap/CHANGELOG.md index fdefa2e3b32f..22bc149b1adc 100644 --- a/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap/CHANGELOG.md +++ b/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History ## 0.1.0 (2024-03-22) +### Other Changes The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html). diff --git a/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap/README.md b/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap/README.md index 75c6665ef68d..9545b86aaeac 100644 --- a/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap/README.md +++ b/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap/README.md @@ -1,7 +1,5 @@ # Azure Migrationdiscovery Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap) - The `armmigrationdiscoverysap` module provides operations for working with Azure Migrationdiscovery. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/migrationdiscovery/armmigrationdiscoverysap) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/migrationdiscovery/ ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Migrationdiscovery. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Migrationdiscovery. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmigrationdiscoverysap.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewObjectAnchorsAccountsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/README.md b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/README.md index 2268faee7619..35e2c5521401 100644 --- a/sdk/resourcemanager/mobilenetwork/armmobilenetwork/README.md +++ b/sdk/resourcemanager/mobilenetwork/armmobilenetwork/README.md @@ -1,7 +1,5 @@ # Azure Private 5G Core Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmobilenetwork/v4)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmobilenetwork/v4) - The `armmobilenetwork` module provides operations for working with Azure Private 5G Core. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/mobilenetwork/armmobilenetwork) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mobilenetwork/armmo ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Private 5G Core. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Private 5G Core. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmobilenetwork.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAttachedDataNetworksClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/mongocluster/armmongocluster/README.md b/sdk/resourcemanager/mongocluster/armmongocluster/README.md index 7f9ab7b5801e..206298507c50 100644 --- a/sdk/resourcemanager/mongocluster/armmongocluster/README.md +++ b/sdk/resourcemanager/mongocluster/armmongocluster/README.md @@ -1,7 +1,5 @@ # Azure Mongocluster Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mongocluster/armmongocluster)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mongocluster/armmongocluster) - The `armmongocluster` module provides operations for working with Azure Mongocluster. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/mongocluster/armmongocluster) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mongocluster/armmon ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Mongocluster. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Mongocluster. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmongocluster.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewFirewallRulesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/monitor/armmonitor/README.md b/sdk/resourcemanager/monitor/armmonitor/README.md index 52e9ed62b3b9..9ee125d7c443 100644 --- a/sdk/resourcemanager/monitor/armmonitor/README.md +++ b/sdk/resourcemanager/monitor/armmonitor/README.md @@ -1,7 +1,5 @@ # Azure Monitor Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor) - The `armmonitor` module provides operations for working with Azure Monitor. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/monitor/armmonitor) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Monitor. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Monitor. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -35,7 +33,7 @@ For more information on authentication, please see the documentation for `aziden ## Client Factory -Azure Monitor module consists of one or more clients. We provide a client factory which could be used to create any client in this module. +Azure Monitor module consists of one or more clients. We provide a client factory which could be used to create any client in this module. ```go clientFactory, err := armmonitor.NewClientFactory(, cred, nil) @@ -54,7 +52,7 @@ clientFactory, err := armmonitor.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAlertRuleIncidentsClient() diff --git a/sdk/resourcemanager/msi/armmsi/README.md b/sdk/resourcemanager/msi/armmsi/README.md index abbfe159b6fc..9276c276376e 100644 --- a/sdk/resourcemanager/msi/armmsi/README.md +++ b/sdk/resourcemanager/msi/armmsi/README.md @@ -1,7 +1,5 @@ # Azure Managed Service Identity Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi) - The `armmsi` module provides operations for working with Azure Managed Service Identity. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/msi/armmsi) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Managed Service Identity. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Managed Service Identity. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmsi.NewClientFactory(, cred, &options) ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewSystemAssignedIdentitiesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/mysql/armmysql/README.md b/sdk/resourcemanager/mysql/armmysql/README.md index 7cf9343b2cf0..936c7b9a41c7 100644 --- a/sdk/resourcemanager/mysql/armmysql/README.md +++ b/sdk/resourcemanager/mysql/armmysql/README.md @@ -1,7 +1,5 @@ # Azure Database for MySQL Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mysql/armmysql)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mysql/armmysql) - The `armmysql` module provides operations for working with Azure Database for MySQL. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/mysql/armmysql) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mysql/armmysql ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Database for MySQL. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Database for MySQL. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmysql.NewClientFactory(, cred, &option ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDatabasesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/mysql/armmysqlflexibleservers/README.md b/sdk/resourcemanager/mysql/armmysqlflexibleservers/README.md index 649747e6114a..07db76e79f38 100644 --- a/sdk/resourcemanager/mysql/armmysqlflexibleservers/README.md +++ b/sdk/resourcemanager/mysql/armmysqlflexibleservers/README.md @@ -1,7 +1,5 @@ # Azure Database for MySQL Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mysql/armmysqlflexibleservers/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mysql/armmysqlflexibleservers/v2) - The `armmysqlflexibleservers` module provides operations for working with Azure Database for MySQL. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/mysql/armmysqlflexibleservers) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/mysql/armmysqlflexi ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Database for MySQL. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Database for MySQL. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmysqlflexibleservers.NewClientFactory( ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAdvancedThreatProtectionSettingsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/netapp/armnetapp/README.md b/sdk/resourcemanager/netapp/armnetapp/README.md index 7ab702cafcdb..5fa5ebb35092 100644 --- a/sdk/resourcemanager/netapp/armnetapp/README.md +++ b/sdk/resourcemanager/netapp/armnetapp/README.md @@ -1,7 +1,5 @@ # Azure NetApp Files Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7) - The `armnetapp` module provides operations for working with Azure NetApp Files. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/netapp/armnetapp) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/netapp/armnetapp/v7 ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure NetApp Files. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure NetApp Files. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armnetapp.NewClientFactory(, cred, &optio ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAccountsClient() @@ -67,7 +65,6 @@ This allows writing tests to cover various success/error conditions without the Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes. - ## Major Version Upgrade Go uses [semantic import versioning](https://github.com/golang/go/wiki/Modules#semantic-import-versioning) to ensure a good backward compatibility for modules. For Azure Go management SDK, we usually upgrade module version according to cooresponding service's API version. Regarding it could be a complicated experience for major version upgrade, we will try our best to keep the SDK API stable and release new version in backward compatible way. However, if any unavoidable breaking changes and a new major version releases for SDK modules, you could use these commands under your module folder to upgrade: @@ -99,4 +96,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/network/armnetwork/README.md b/sdk/resourcemanager/network/armnetwork/README.md index 2faca243d39f..c4348574780b 100644 --- a/sdk/resourcemanager/network/armnetwork/README.md +++ b/sdk/resourcemanager/network/armnetwork/README.md @@ -1,7 +1,5 @@ # Azure Network Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v6)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v6) - The `armnetwork` module provides operations for working with Azure Network. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/network/armnetwork) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/ ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Network. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Network. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -35,7 +33,7 @@ For more information on authentication, please see the documentation for `aziden ## Client Factory -Azure Network module consists of one or more clients. We provide a client factory which could be used to create any client in this module. +Azure Network module consists of one or more clients. We provide a client factory which could be used to create any client in this module. ```go clientFactory, err := armnetwork.NewClientFactory(, cred, nil) @@ -54,7 +52,7 @@ clientFactory, err := armnetwork.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAdminRuleCollectionsClient() @@ -99,4 +97,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/networkanalytics/armnetworkanalytics/README.md b/sdk/resourcemanager/networkanalytics/armnetworkanalytics/README.md index 267ff0868995..8a7559355c74 100644 --- a/sdk/resourcemanager/networkanalytics/armnetworkanalytics/README.md +++ b/sdk/resourcemanager/networkanalytics/armnetworkanalytics/README.md @@ -1,7 +1,5 @@ # Azure Networkanalytics Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkanalytics/armnetworkanalytics)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkanalytics/armnetworkanalytics) - The `armnetworkanalytics` module provides operations for working with Azure Networkanalytics. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/networkanalytics/armnetworkanalytics) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkanalytics/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Networkanalytics. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Networkanalytics. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armnetworkanalytics.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDataProductsCatalogsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/README.md b/sdk/resourcemanager/networkcloud/armnetworkcloud/README.md index 6402c7d6ad66..1fba9d0cea5d 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/README.md +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/README.md @@ -1,7 +1,5 @@ # Azure Networkcloud Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud) - The `armnetworkcloud` module provides operations for working with Azure Networkcloud. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/networkcloud/armnetworkcloud) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnet ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Networkcloud. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Networkcloud. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ client, err := armnetworkcloud.NewClientFactory(, cred, &option ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewTrunkedNetworksClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/networkfunction/armnetworkfunction/README.md b/sdk/resourcemanager/networkfunction/armnetworkfunction/README.md index 70f117f8ea0a..629d06327a28 100644 --- a/sdk/resourcemanager/networkfunction/armnetworkfunction/README.md +++ b/sdk/resourcemanager/networkfunction/armnetworkfunction/README.md @@ -1,7 +1,5 @@ # Azure Network Function Manager Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkfunction/armnetworkfunction/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkfunction/armnetworkfunction/v2) - The `armnetworkfunction` module provides operations for working with Azure Network Function Manager. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/networkfunction/armnetworkfunction) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkfunction/arm ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Network Function Manager. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Network Function Manager. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armnetworkfunction.NewClientFactory(, cre ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/newrelic/armnewrelicobservability/README.md b/sdk/resourcemanager/newrelic/armnewrelicobservability/README.md index da7620e017dc..36b9409f1f02 100644 --- a/sdk/resourcemanager/newrelic/armnewrelicobservability/README.md +++ b/sdk/resourcemanager/newrelic/armnewrelicobservability/README.md @@ -1,7 +1,5 @@ # Azure Newrelic Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/newrelic/armnewrelicobservability)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/newrelic/armnewrelicobservability) - The `armnewrelicobservability` module provides operations for working with Azure Newrelic. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/newrelic/armnewrelicobservability) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/newrelic/armnewreli ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Newrelic. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Newrelic. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armnewrelicobservability.NewClientFactory(, cred, &option ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewCertificatesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/notificationhubs/armnotificationhubs/README.md b/sdk/resourcemanager/notificationhubs/armnotificationhubs/README.md index 0843b3266d4d..2e7fcdb64872 100644 --- a/sdk/resourcemanager/notificationhubs/armnotificationhubs/README.md +++ b/sdk/resourcemanager/notificationhubs/armnotificationhubs/README.md @@ -1,7 +1,5 @@ # Azure Notification Hubs Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/notificationhubs/armnotificationhubs/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/notificationhubs/armnotificationhubs/v2) - The `armnotificationhubs` module provides operations for working with Azure Notification Hubs. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/notificationhubs/armnotificationhubs) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/notificationhubs/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Notification Hubs. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Notification Hubs. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armnotificationhubs.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/oep/armoep/README.md b/sdk/resourcemanager/oep/armoep/README.md index 6ee05154194a..1f48a5630f48 100644 --- a/sdk/resourcemanager/oep/armoep/README.md +++ b/sdk/resourcemanager/oep/armoep/README.md @@ -1,7 +1,5 @@ # Azure Open Energy Platform Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oep/armoep)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oep/armoep) - The `armoep` module provides operations for working with Azure Open Energy Platform. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/oep/armoep) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oep/armoep ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Open Energy Platform. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Open Energy Platform. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armoep.NewClientFactory(, cred, &options) ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.LocationsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/README.md b/sdk/resourcemanager/operationalinsights/armoperationalinsights/README.md index 36c78f0c8ec7..61b817136275 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/README.md +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/README.md @@ -1,7 +1,5 @@ # Azure Operational Insights Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights/armoperationalinsights/v2) - The `armoperationalinsights` module provides operations for working with Azure Operational Insights. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/operationalinsights/armoperationalinsights) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Operational Insights. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Operational Insights. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armoperationalinsights.NewClientFactory(, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAvailableServiceTiersClient() @@ -95,4 +93,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/operationsmanagement/armoperationsmanagement/README.md b/sdk/resourcemanager/operationsmanagement/armoperationsmanagement/README.md index 670af5bddcf7..4ec7504fe325 100644 --- a/sdk/resourcemanager/operationsmanagement/armoperationsmanagement/README.md +++ b/sdk/resourcemanager/operationsmanagement/armoperationsmanagement/README.md @@ -1,7 +1,5 @@ # Azure Operations Management Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationsmanagement/armoperationsmanagement)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationsmanagement/armoperationsmanagement) - The `armoperationsmanagement` module provides operations for working with Azure Operations Management. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/operationsmanagement/armoperationsmanagement) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationsmanagemen ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Operations Management. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Operations Management. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armoperationsmanagement.NewClientFactory( ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewManagementConfigurationsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/oracledatabase/armoracledatabase/README.md b/sdk/resourcemanager/oracledatabase/armoracledatabase/README.md index 952add88a247..6ffe39c6fe82 100644 --- a/sdk/resourcemanager/oracledatabase/armoracledatabase/README.md +++ b/sdk/resourcemanager/oracledatabase/armoracledatabase/README.md @@ -1,7 +1,5 @@ # Azure Oracle Database Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armoracledatabase) - The `armoracledatabase` module provides operations for working with Azure Oracle Database. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/oracledatabase/armoracledatabase) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/oracledatabase/armo ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Oracle Database. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Oracle Database. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armoracledatabase.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAutonomousDatabaseBackupsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/orbital/armorbital/README.md b/sdk/resourcemanager/orbital/armorbital/README.md index de6d800cc9e5..7c75aa1a283f 100644 --- a/sdk/resourcemanager/orbital/armorbital/README.md +++ b/sdk/resourcemanager/orbital/armorbital/README.md @@ -1,7 +1,5 @@ # Azure Orbital Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/orbital/armorbital/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/orbital/armorbital/v2) - The `armorbital` module provides operations for working with Azure Orbital. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/orbital/armorbital) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/orbital/armorbital/ ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Orbital. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Orbital. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armorbital.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewContactsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw/README.md b/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw/README.md index da161be94d23..66be10ee376c 100644 --- a/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw/README.md +++ b/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw/README.md @@ -1,7 +1,5 @@ # Azure PaloAltoNetworks Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw) - The `armpanngfw` module provides operations for working with Azure PaloAltoNetworks. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/paloaltonetworksngfw/armpanngfw) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/paloaltonetworksngf ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure PaloAltoNetworks. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure PaloAltoNetworks. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armpanngfw.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewLocalRulesClient() @@ -82,4 +80,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/peering/armpeering/README.md b/sdk/resourcemanager/peering/armpeering/README.md index 76faf074673c..ad8a32d0c4a3 100644 --- a/sdk/resourcemanager/peering/armpeering/README.md +++ b/sdk/resourcemanager/peering/armpeering/README.md @@ -1,7 +1,5 @@ # Azure Peering Service Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/peering/armpeering)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/peering/armpeering) - The `armpeering` module provides operations for working with Azure Peering Service. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/peering/armpeering) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/peering/armpeering ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Peering Service. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Peering Service. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armpeering.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewPeeringsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/README.md b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/README.md index 62671d53d9db..a7e8b2cd4455 100644 --- a/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/README.md +++ b/sdk/resourcemanager/playwrighttesting/armplaywrighttesting/README.md @@ -1,7 +1,5 @@ # Azure Playwrighttesting Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/playwrighttesting/armplaywrighttesting)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/playwrighttesting/armplaywrighttesting) - The `armplaywrighttesting` module provides operations for working with Azure Playwrighttesting. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/playwrighttesting/armplaywrighttesting) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/playwrighttesting/a ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Playwrighttesting. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Playwrighttesting. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armplaywrighttesting.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewQuotasClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/policyinsights/armpolicyinsights/README.md b/sdk/resourcemanager/policyinsights/armpolicyinsights/README.md index 47d23a2538c6..1367f91d5aac 100644 --- a/sdk/resourcemanager/policyinsights/armpolicyinsights/README.md +++ b/sdk/resourcemanager/policyinsights/armpolicyinsights/README.md @@ -1,7 +1,5 @@ # Azure Policy Insight Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/policyinsights/armpolicyinsights)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/policyinsights/armpolicyinsights) - The `armpolicyinsights` module provides operations for working with Azure Policy Insight. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/policyinsights/armpolicyinsights) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/policyinsights/armp ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Policy Insight. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Policy Insight. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armpolicyinsights.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewPolicyEventsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/portal/armportal/README.md b/sdk/resourcemanager/portal/armportal/README.md index a5adfda6784c..447dd526c339 100644 --- a/sdk/resourcemanager/portal/armportal/README.md +++ b/sdk/resourcemanager/portal/armportal/README.md @@ -1,7 +1,5 @@ # Azure Portal Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/portal/armportal)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/portal/armportal) - The `armportal` module provides operations for working with Azure Portal. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/portal/armportal) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/portal/armportal ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Portal. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Portal. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armportal.NewClientFactory(, cred, &optio ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDashboardsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/postgresql/armpostgresql/README.md b/sdk/resourcemanager/postgresql/armpostgresql/README.md index fb323f55d590..6a2c51b2003a 100644 --- a/sdk/resourcemanager/postgresql/armpostgresql/README.md +++ b/sdk/resourcemanager/postgresql/armpostgresql/README.md @@ -1,7 +1,5 @@ # Azure Database for PostgreSQL Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresql)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresql) - The `armpostgresql` module provides operations for working with Azure Database for PostgreSQL. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/postgresql/armpostgresql) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostg ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Database for PostgreSQL. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Database for PostgreSQL. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armpostgresql.NewClientFactory(, cred, &o ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewServersClient() @@ -97,4 +95,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/README.md b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/README.md index 02b06752e2a0..a6f40786adc6 100644 --- a/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/README.md +++ b/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/README.md @@ -1,7 +1,5 @@ # Azure Database for PostgreSQL Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers/v4) - The `armpostgresqlflexibleservers` module provides operations for working with Azure Database for PostgreSQL. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/postgresql/armpostgresqlflexibleservers) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostg ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Database for PostgreSQL. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Database for PostgreSQL. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armpostgresqlflexibleservers.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewServersClient() @@ -82,4 +80,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/powerbidedicated/armpowerbidedicated/README.md b/sdk/resourcemanager/powerbidedicated/armpowerbidedicated/README.md index ccdcfecf25f3..44bef660c65b 100644 --- a/sdk/resourcemanager/powerbidedicated/armpowerbidedicated/README.md +++ b/sdk/resourcemanager/powerbidedicated/armpowerbidedicated/README.md @@ -1,7 +1,5 @@ # Azure Power BI Dedicated Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/powerbidedicated/armpowerbidedicated)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/powerbidedicated/armpowerbidedicated) - The `armpowerbidedicated` module provides operations for working with Azure Power BI Dedicated. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/powerbidedicated/armpowerbidedicated) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/powerbidedicated/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Power BI Dedicated. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Power BI Dedicated. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armpowerbidedicated.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAutoScaleVCoresClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/powerbiembedded/armpowerbiembedded/README.md b/sdk/resourcemanager/powerbiembedded/armpowerbiembedded/README.md index 878d83a1a91a..67c7808c9acd 100644 --- a/sdk/resourcemanager/powerbiembedded/armpowerbiembedded/README.md +++ b/sdk/resourcemanager/powerbiembedded/armpowerbiembedded/README.md @@ -1,7 +1,5 @@ # Azure Power BI Embedded Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/powerbiembedded/armpowerbiembedded)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/powerbiembedded/armpowerbiembedded) - The `armpowerbiembedded` module provides operations for working with Azure Power BI Embedded. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/powerbiembedded/armpowerbiembedded) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/powerbiembedded/arm ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Power BI Embedded. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Power BI Embedded. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armpowerbiembedded.NewClientFactory(, cre ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewWorkspacesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/powerbiprivatelinks/armpowerbiprivatelinks/README.md b/sdk/resourcemanager/powerbiprivatelinks/armpowerbiprivatelinks/README.md index cea2298b7539..8f4d30791fcb 100644 --- a/sdk/resourcemanager/powerbiprivatelinks/armpowerbiprivatelinks/README.md +++ b/sdk/resourcemanager/powerbiprivatelinks/armpowerbiprivatelinks/README.md @@ -1,7 +1,5 @@ # Azure Power BI Private Links Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/powerbiprivatelinks/armpowerbiprivatelinks/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/powerbiprivatelinks/armpowerbiprivatelinks/v2) - The `armpowerbiprivatelinks` module provides operations for working with Azure Power BI Private Links. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/powerbiprivatelinks/armpowerbiprivatelinks) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/powerbiprivatelinks ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Power BI Private Links. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Power BI Private Links. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armpowerbiprivatelinks.NewClientFactory(, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewPowerBIResourcesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/powerplatform/armpowerplatform/README.md b/sdk/resourcemanager/powerplatform/armpowerplatform/README.md index 2c6df6ab80cf..2d0bff7bfdf5 100644 --- a/sdk/resourcemanager/powerplatform/armpowerplatform/README.md +++ b/sdk/resourcemanager/powerplatform/armpowerplatform/README.md @@ -1,7 +1,5 @@ # Azure Power Platform Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/powerplatform/armpowerplatform)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/powerplatform/armpowerplatform) - The `armpowerplatform` module provides operations for working with Azure Power Platform. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/powerplatform/armpowerplatform) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/powerplatform/armpo ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Power Platform. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Power Platform. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armpowerplatform.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAccountsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/privatedns/armprivatedns/README.md b/sdk/resourcemanager/privatedns/armprivatedns/README.md index 3a731b96c57d..95005aaa2604 100644 --- a/sdk/resourcemanager/privatedns/armprivatedns/README.md +++ b/sdk/resourcemanager/privatedns/armprivatedns/README.md @@ -1,7 +1,5 @@ # Azure Private DNS Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armprivatedns) - The `armprivatedns` module provides operations for working with Azure Private DNS. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/privatedns/armprivatedns) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armpriva ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Private DNS. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Private DNS. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armprivatedns.NewClientFactory(, cred, &o ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewPrivateZonesClient() @@ -95,4 +93,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/providerhub/armproviderhub/README.md b/sdk/resourcemanager/providerhub/armproviderhub/README.md index e2feb161e0a6..09f74ffb0b26 100644 --- a/sdk/resourcemanager/providerhub/armproviderhub/README.md +++ b/sdk/resourcemanager/providerhub/armproviderhub/README.md @@ -1,7 +1,5 @@ # Azure Provider HUB Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armproviderhub) - The `armproviderhub` module provides operations for working with Azure Provider HUB. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/providerhub/armproviderhub) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/providerhub/armprov ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Provider HUB. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Provider HUB. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armproviderhub.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() diff --git a/sdk/resourcemanager/purview/armpurview/README.md b/sdk/resourcemanager/purview/armpurview/README.md index f2af88d64255..263bd3d51c94 100644 --- a/sdk/resourcemanager/purview/armpurview/README.md +++ b/sdk/resourcemanager/purview/armpurview/README.md @@ -1,7 +1,5 @@ # Azure Purview Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/purview/armpurview)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/purview/armpurview) - The `armpurview` module provides operations for working with Azure Purview. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/purview/armpurview) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/purview/armpurview ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Purview. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Purview. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armpurview.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAccountsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/quantum/armquantum/README.md b/sdk/resourcemanager/quantum/armquantum/README.md index 3afe3b02fe9c..dd0b18a07054 100644 --- a/sdk/resourcemanager/quantum/armquantum/README.md +++ b/sdk/resourcemanager/quantum/armquantum/README.md @@ -1,7 +1,5 @@ # Azure Quantum Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/quantum/armquantum)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/quantum/armquantum) - The `armquantum` module provides operations for working with Azure Quantum. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/quantum/armquantum) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/quantum/armquantum ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Quantum. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Quantum. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armquantum.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewOfferingsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/quota/armquota/README.md b/sdk/resourcemanager/quota/armquota/README.md index 73f001d9b29f..78e03fc9e4f2 100644 --- a/sdk/resourcemanager/quota/armquota/README.md +++ b/sdk/resourcemanager/quota/armquota/README.md @@ -1,7 +1,5 @@ # Azure Quota Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/quota/armquota)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/quota/armquota) - The `armquota` module provides operations for working with Azure Quota. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/quota/armquota) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/quota/armquota ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Quota. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Quota. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armquota.NewClientFactory(, cred, &option ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewGroupQuotaSubscriptionAllocationClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/README.md b/sdk/resourcemanager/recoveryservices/armrecoveryservices/README.md index dc37ecc57248..36b038ab0bb1 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/README.md +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/README.md @@ -1,7 +1,5 @@ # Azure Recovery Services Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices/v2) - The `armrecoveryservices` module provides operations for working with Azure Recovery Services. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/recoveryservices/armrecoveryservices) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Recovery Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Recovery Services. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armrecoveryservices.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/README.md b/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/README.md index b2745e235ca2..a59b52b4e53b 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/README.md +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/README.md @@ -1,7 +1,5 @@ # Azure Recovery Services Backup Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/v4)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/v4) - The `armrecoveryservicesbackup` module provides operations for working with Azure Recovery Services Backup. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Recovery Services Backup. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Recovery Services Backup. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armrecoveryservicesbackup.NewClientFactory(, cre ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewMachinePoolsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/redis/armredis/README.md b/sdk/resourcemanager/redis/armredis/README.md index b2804ad4b545..c064e9e371de 100644 --- a/sdk/resourcemanager/redis/armredis/README.md +++ b/sdk/resourcemanager/redis/armredis/README.md @@ -1,7 +1,5 @@ # Azure Cache for Redis Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v3)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v3) - The `armredis` module provides operations for working with Azure Cache for Redis. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/redis/armredis) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v3 ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Cache for Redis. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Cache for Redis. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armredis.NewClientFactory(, cred, &option ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAccessPolicyAssignmentClient() @@ -95,4 +93,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/redisenterprise/armredisenterprise/README.md b/sdk/resourcemanager/redisenterprise/armredisenterprise/README.md index ef4326390988..3bd75710be2f 100644 --- a/sdk/resourcemanager/redisenterprise/armredisenterprise/README.md +++ b/sdk/resourcemanager/redisenterprise/armredisenterprise/README.md @@ -1,7 +1,5 @@ # Azure Redis Enterprise Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redisenterprise/armredisenterprise/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redisenterprise/armredisenterprise/v2) - The `armredisenterprise` module provides operations for working with Azure Redis Enterprise. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/redisenterprise/armredisenterprise) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redisenterprise/arm ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Redis Enterprise. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Redis Enterprise. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armredisenterprise.NewClientFactory(, cre ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAccessPolicyAssignmentClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/relay/armrelay/README.md b/sdk/resourcemanager/relay/armrelay/README.md index f36508f3f537..f7397b20ee7e 100644 --- a/sdk/resourcemanager/relay/armrelay/README.md +++ b/sdk/resourcemanager/relay/armrelay/README.md @@ -1,7 +1,5 @@ # Azure Relay Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/relay/armrelay)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/relay/armrelay) - The `armrelay` module provides operations for working with Azure Relay. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/relay/armrelay) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/relay/armrelay ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Relay. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Relay. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armrelay.NewClientFactory(, cred, &option ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewNamespacesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/reservations/armreservations/README.md b/sdk/resourcemanager/reservations/armreservations/README.md index 7f2e77ea6165..6590e9719629 100644 --- a/sdk/resourcemanager/reservations/armreservations/README.md +++ b/sdk/resourcemanager/reservations/armreservations/README.md @@ -1,7 +1,5 @@ # Azure Servations Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v3)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v3) - The `armreservations` module provides operations for working with Azure Servations. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/reservations/armreservations) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armres ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Servations. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Servations. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armreservations.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewReservationClient() @@ -67,7 +65,6 @@ This allows writing tests to cover various success/error conditions without the Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes. - ## Provide Feedback If you encounter bugs or have suggestions, please @@ -90,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/resourceconnector/armresourceconnector/README.md b/sdk/resourcemanager/resourceconnector/armresourceconnector/README.md index 0f00c6e3abfb..22150f17fad2 100644 --- a/sdk/resourcemanager/resourceconnector/armresourceconnector/README.md +++ b/sdk/resourcemanager/resourceconnector/armresourceconnector/README.md @@ -1,7 +1,5 @@ # Azure Resource Connector Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourceconnector/armresourceconnector)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourceconnector/armresourceconnector) - The `armresourceconnector` module provides operations for working with Azure Resource Connector. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resourceconnector/armresourceconnector) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourceconnector/a ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Resource Connector. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Resource Connector. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armresourceconnector.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAppliancesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/resourcegraph/armresourcegraph/README.md b/sdk/resourcemanager/resourcegraph/armresourcegraph/README.md index c0e14e74097b..d3ce6e9ce952 100644 --- a/sdk/resourcemanager/resourcegraph/armresourcegraph/README.md +++ b/sdk/resourcemanager/resourcegraph/armresourcegraph/README.md @@ -1,7 +1,5 @@ # Azure Resource Graph Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcegraph/armresourcegraph)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcegraph/armresourcegraph) - The `armresourcegraph` module provides operations for working with Azure Resource Graph. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resourcegraph/armresourcegraph) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcegraph/armre ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Resource Graph. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Resource Graph. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armresourcegraph.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() diff --git a/sdk/resourcemanager/resourcehealth/armresourcehealth/README.md b/sdk/resourcemanager/resourcehealth/armresourcehealth/README.md index 2e7384c874df..2439cd28a2d9 100644 --- a/sdk/resourcemanager/resourcehealth/armresourcehealth/README.md +++ b/sdk/resourcemanager/resourcehealth/armresourcehealth/README.md @@ -1,7 +1,5 @@ # Azure Resource Health Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armresourcehealth) - The `armresourcehealth` module provides operations for working with Azure Resource Health. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resourcehealth/armresourcehealth) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcehealth/armr ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Resource Health. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Resource Health. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armresourcehealth.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAvailabilityStatusesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/resourcemover/armresourcemover/README.md b/sdk/resourcemanager/resourcemover/armresourcemover/README.md index 2d36fc8e6b10..46cc973fb6ee 100644 --- a/sdk/resourcemanager/resourcemover/armresourcemover/README.md +++ b/sdk/resourcemanager/resourcemover/armresourcemover/README.md @@ -1,7 +1,5 @@ # Azure Resource Mover Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcemover/armresourcemover)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcemover/armresourcemover) - The `armresourcemover` module provides operations for working with Azure Resource Mover. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resourcemover/armresourcemover) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcemover/armre ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Resource Mover. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Resource Mover. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armresourcemover.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewMoveCollectionsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/resources/armchanges/README.md b/sdk/resourcemanager/resources/armchanges/README.md index e511fa5dfb69..11f2784e3e4e 100644 --- a/sdk/resourcemanager/resources/armchanges/README.md +++ b/sdk/resourcemanager/resources/armchanges/README.md @@ -1,7 +1,5 @@ # Azure resources Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armchanges)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armchanges) - The `armchanges` module provides operations for working with Azure resources. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resources/armchanges) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armchange ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure resources. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure resources. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armchanges.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/README.md b/sdk/resourcemanager/resources/armdeploymentscripts/README.md index 7e0657ff9dd9..1d214b18616b 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/README.md +++ b/sdk/resourcemanager/resources/armdeploymentscripts/README.md @@ -1,7 +1,5 @@ # Azure Deployment Scripts Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentscripts/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentscripts/v2) - The `armdeploymentscripts` module provides operations for working with Azure Deployment Scripts. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resources/armdeploymentscripts) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploy ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Deployment Scripts. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Deployment Scripts. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdeploymentscripts.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/resources/armdeploymentstacks/README.md b/sdk/resourcemanager/resources/armdeploymentstacks/README.md index 1d8680835eb5..d8211bb76a8b 100644 --- a/sdk/resourcemanager/resources/armdeploymentstacks/README.md +++ b/sdk/resourcemanager/resources/armdeploymentstacks/README.md @@ -1,7 +1,5 @@ # Azure Resources Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentstacks)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploymentstacks) - The `armdeploymentstacks` module provides operations for working with Azure Resources. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resources/armdeploymentstacks) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploy ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Resources. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Resources. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armdeploymentstacks.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/resources/armfeatures/README.md b/sdk/resourcemanager/resources/armfeatures/README.md index 4c6cc6305d41..6f260fcd2d17 100644 --- a/sdk/resourcemanager/resources/armfeatures/README.md +++ b/sdk/resourcemanager/resources/armfeatures/README.md @@ -1,7 +1,5 @@ # Azure Features Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatures) - The `armfeatures` module provides operations for working with Azure Features. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resources/armfeatures) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatur ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Features. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Features. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armfeatures.NewClientFactory(, cred, &opt ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/resources/armlinks/README.md b/sdk/resourcemanager/resources/armlinks/README.md index e58c5a5a4c6f..aebc104a341a 100644 --- a/sdk/resourcemanager/resources/armlinks/README.md +++ b/sdk/resourcemanager/resources/armlinks/README.md @@ -1,7 +1,5 @@ # Azure Resource Links Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armlinks)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armlinks) - The `armlinks` module provides operations for working with Azure Resource Links. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resources/armlinks) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armlinks ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Resource Links. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Resource Links. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armlinks.NewClientFactory(, cred, &option ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewResourceLinksClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/resources/armlocks/README.md b/sdk/resourcemanager/resources/armlocks/README.md index 92d131ed88e8..904e22739ac3 100644 --- a/sdk/resourcemanager/resources/armlocks/README.md +++ b/sdk/resourcemanager/resources/armlocks/README.md @@ -1,7 +1,5 @@ # Azure Resource Lock Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armlocks)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armlocks) - The `armlocks` module provides operations for working with Azure Resource Lock. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resources/armlocks) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armlocks ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Resource Lock. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Resource Lock. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armlocks.NewClientFactory(, cred, &option ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewManagementLocksClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/resources/armmanagedapplications/README.md b/sdk/resourcemanager/resources/armmanagedapplications/README.md index 1812126f3657..e681e2a0e440 100644 --- a/sdk/resourcemanager/resources/armmanagedapplications/README.md +++ b/sdk/resourcemanager/resources/armmanagedapplications/README.md @@ -1,7 +1,5 @@ # Azure Managed Applications Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanagedapplications) - The `armmanagedapplications` module provides operations for working with Azure Managed Applications. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resources/armmanagedapplications) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armmanage ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Managed Applications. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Managed Applications. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmanagedapplications.NewClientFactory(, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewApplicationClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/resources/armpolicy/README.md b/sdk/resourcemanager/resources/armpolicy/README.md index 0a39dd6a4699..da3dc5d439cb 100644 --- a/sdk/resourcemanager/resources/armpolicy/README.md +++ b/sdk/resourcemanager/resources/armpolicy/README.md @@ -1,7 +1,5 @@ # Azure Resource Policy Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy) - The `armpolicy` module provides operations for working with Azure Resource Policy. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resources/armpolicy) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Resource Policy. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Resource Policy. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armpolicy.NewClientFactory(, cred, &optio ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDefinitionsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/resources/armresources/README.md b/sdk/resourcemanager/resources/armresources/README.md index fbe11f6c642a..efb8c87ec3e3 100644 --- a/sdk/resourcemanager/resources/armresources/README.md +++ b/sdk/resourcemanager/resources/armresources/README.md @@ -1,7 +1,5 @@ # Azure Resources Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources) - The `armresources` module provides operations for working with Azure Resources. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resources/armresources) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresour ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Resources. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Resources. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armresources.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -97,4 +95,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/resources/armsubscriptions/README.md b/sdk/resourcemanager/resources/armsubscriptions/README.md index 23edfb54ca7a..7e5debcad4e1 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/README.md +++ b/sdk/resourcemanager/resources/armsubscriptions/README.md @@ -1,7 +1,5 @@ # Azure Subscriptions Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscriptions) - The `armsubscriptions` module provides operations for working with Azure Subscriptions. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resources/armsubscriptions) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscr ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Subscriptions. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Subscriptions. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armsubscriptions.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() diff --git a/sdk/resourcemanager/resources/armtemplatespecs/README.md b/sdk/resourcemanager/resources/armtemplatespecs/README.md index fb9eb5280fcb..4e93a712e354 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/README.md +++ b/sdk/resourcemanager/resources/armtemplatespecs/README.md @@ -1,7 +1,5 @@ # Azure Template Specs Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armtemplatespecs)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armtemplatespecs) - The `armtemplatespecs` module provides operations for working with Azure Template Specs. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/resources/armtemplatespecs) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armtempla ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Template Specs. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Template Specs. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armtemplatespecs.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/saas/armsaas/README.md b/sdk/resourcemanager/saas/armsaas/README.md index 50ff9df5f9ba..914bc56efe18 100644 --- a/sdk/resourcemanager/saas/armsaas/README.md +++ b/sdk/resourcemanager/saas/armsaas/README.md @@ -1,7 +1,5 @@ # Azure SaaS Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/saas/armsaas)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/saas/armsaas) - The `armsaas` module provides operations for working with Azure SaaS. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/saas/armsaas) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/saas/armsaas ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure SaaS. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure SaaS. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armsaas.NewClientFactory(, cred, &options ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/scheduler/armscheduler/README.md b/sdk/resourcemanager/scheduler/armscheduler/README.md index 48c4afee0315..fdba1f4c1c44 100644 --- a/sdk/resourcemanager/scheduler/armscheduler/README.md +++ b/sdk/resourcemanager/scheduler/armscheduler/README.md @@ -1,7 +1,5 @@ # Azure Scheduler Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/scheduler/armscheduler)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/scheduler/armscheduler) - The `armscheduler` module provides operations for working with Azure Scheduler. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/scheduler/armscheduler) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/scheduler/armschedu ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Scheduler. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Scheduler. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armscheduler.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewJobsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/scvmm/armscvmm/README.md b/sdk/resourcemanager/scvmm/armscvmm/README.md index 8de88d0e8735..abd779c395b0 100644 --- a/sdk/resourcemanager/scvmm/armscvmm/README.md +++ b/sdk/resourcemanager/scvmm/armscvmm/README.md @@ -1,7 +1,5 @@ # Azure Scvmm Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/scvmm/armscvmm)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/scvmm/armscvmm) - The `armscvmm` module provides operations for working with Azure Scvmm. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/scvmm/armscvmm) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/scvmm/armscvmm ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Scvmm. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Scvmm. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armscvmm.NewClientFactory(, cred, &option ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAvailabilitySetsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/search/armsearch/README.md b/sdk/resourcemanager/search/armsearch/README.md index 84b8abf81b89..4a94dee1689c 100644 --- a/sdk/resourcemanager/search/armsearch/README.md +++ b/sdk/resourcemanager/search/armsearch/README.md @@ -1,7 +1,5 @@ # Azure Search Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/search/armsearch)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/search/armsearch) - The `armsearch` module provides operations for working with Azure Search. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/search/armsearch) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/search/armsearch ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Search. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Search. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armsearch.NewClientFactory(, cred, &optio ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAdminKeysClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/security/armsecurity/README.md b/sdk/resourcemanager/security/armsecurity/README.md index a10a1ad53bcb..6a8faf8b75a0 100644 --- a/sdk/resourcemanager/security/armsecurity/README.md +++ b/sdk/resourcemanager/security/armsecurity/README.md @@ -1,7 +1,5 @@ # Azure Security Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurity) - The `armsecurity` module provides operations for working with Azure Security. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/security/armsecurity) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/security/armsecurit ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Security. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Security. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armsecurity.NewClientFactory(, cred, &opt ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAPICollectionsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/securitydevops/armsecuritydevops/README.md b/sdk/resourcemanager/securitydevops/armsecuritydevops/README.md index cf7a310af08d..73e7c6cac788 100644 --- a/sdk/resourcemanager/securitydevops/armsecuritydevops/README.md +++ b/sdk/resourcemanager/securitydevops/armsecuritydevops/README.md @@ -1,7 +1,5 @@ # Azure Securitydevops Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/securitydevops/armsecuritydevops)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/securitydevops/armsecuritydevops) - The `armsecuritydevops` module provides operations for working with Azure Securitydevops. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/securitydevops/armsecuritydevops) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/securitydevops/arms ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Securitydevops. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Securitydevops. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armsecuritydevops.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAzureDevOpsConnectorStatsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/securityinsights/armsecurityinsights/README.md b/sdk/resourcemanager/securityinsights/armsecurityinsights/README.md index 652cb4339dea..b4b66c203652 100644 --- a/sdk/resourcemanager/securityinsights/armsecurityinsights/README.md +++ b/sdk/resourcemanager/securityinsights/armsecurityinsights/README.md @@ -1,7 +1,5 @@ # Azure Security Insight Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/securityinsights/armsecurityinsights/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/securityinsights/armsecurityinsights/v2) - The `armsecurityinsights` module provides operations for working with Azure Security Insight. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/securityinsights/armsecurityinsights) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/securityinsights/ar ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Security Insight. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Security Insight. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armsecurityinsights.NewClientFactory(, cr ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewActionsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/selfhelp/armselfhelp/README.md b/sdk/resourcemanager/selfhelp/armselfhelp/README.md index 3bfd6a46c2dd..98f7227e40ba 100644 --- a/sdk/resourcemanager/selfhelp/armselfhelp/README.md +++ b/sdk/resourcemanager/selfhelp/armselfhelp/README.md @@ -1,7 +1,5 @@ # Azure Selfhelp Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhelp/v2) - The `armselfhelp` module provides operations for working with Azure Selfhelp. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/selfhelp/armselfhelp) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/selfhelp/armselfhel ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Selfhelp. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Selfhelp. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armselfhelp.NewClientFactory(, cred, &opt ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDiscoverySolutionNLPSubscriptionScopeClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/serialconsole/armserialconsole/README.md b/sdk/resourcemanager/serialconsole/armserialconsole/README.md index 2ffd9b4763db..90ae3e2e8376 100644 --- a/sdk/resourcemanager/serialconsole/armserialconsole/README.md +++ b/sdk/resourcemanager/serialconsole/armserialconsole/README.md @@ -1,7 +1,5 @@ # Azure Serial Console Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/serialconsole/armserialconsole)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/serialconsole/armserialconsole) - The `armserialconsole` module provides operations for working with Azure Serial Console. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/serialconsole/armserialconsole) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/serialconsole/armse ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Serial Console. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Serial Console. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armserialconsole.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewSerialPortsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/servicebus/armservicebus/README.md b/sdk/resourcemanager/servicebus/armservicebus/README.md index 9b5293ad2109..cc9a49ecc984 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/README.md +++ b/sdk/resourcemanager/servicebus/armservicebus/README.md @@ -1,7 +1,5 @@ # Azure Service Bus Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus) - The `armservicebus` module provides operations for working with Azure Service Bus. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/servicebus/armservicebus) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservi ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Service Bus. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Service Bus. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armservicebus.NewClientFactory(, cred, &o ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewNamespacesClient() @@ -98,4 +96,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/servicefabric/armservicefabric/README.md b/sdk/resourcemanager/servicefabric/armservicefabric/README.md index aea4eb6929e6..8d9d65d5030d 100644 --- a/sdk/resourcemanager/servicefabric/armservicefabric/README.md +++ b/sdk/resourcemanager/servicefabric/armservicefabric/README.md @@ -1,7 +1,5 @@ # Azure Service Fabric Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicefabric/armservicefabric)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicefabric/armservicefabric) - The `armservicefabric` module provides operations for working with Azure Service Fabric. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/servicefabric/armservicefabric) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicefabric/armse ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Service Fabric. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Service Fabric. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armservicefabric.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewServicesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/servicefabricmanagedclusters/armservicefabricmanagedclusters/README.md b/sdk/resourcemanager/servicefabricmanagedclusters/armservicefabricmanagedclusters/README.md index 6eab5f6948dd..0a21371a9a1a 100644 --- a/sdk/resourcemanager/servicefabricmanagedclusters/armservicefabricmanagedclusters/README.md +++ b/sdk/resourcemanager/servicefabricmanagedclusters/armservicefabricmanagedclusters/README.md @@ -1,7 +1,5 @@ # Azure Servicefabricmanagedclusters Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicefabricmanagedclusters/armservicefabricmanagedclusters)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicefabricmanagedclusters/armservicefabricmanagedclusters) - The `armservicefabricmanagedclusters` module provides operations for working with Azure Servicefabricmanagedclusters. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/servicefabricmanagedclusters/armservicefabricmanagedclusters) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicefabricmanage ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Servicefabricmanagedclusters. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Servicefabricmanagedclusters. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armservicefabricmanagedclusters.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewServiceClient() @@ -84,4 +82,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/servicelinker/armservicelinker/README.md b/sdk/resourcemanager/servicelinker/armservicelinker/README.md index 3133cfd6c0fc..19687158d933 100644 --- a/sdk/resourcemanager/servicelinker/armservicelinker/README.md +++ b/sdk/resourcemanager/servicelinker/armservicelinker/README.md @@ -1,7 +1,5 @@ # Azure Service Linker Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicelinker/armservicelinker/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicelinker/armservicelinker/v2) - The `armservicelinker` module provides operations for working with Azure Service Linker. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/servicelinker/armservicelinker) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicelinker/armse ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Service Linker. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Service Linker. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armservicelinker.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewLinkerClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/servicenetworking/armservicenetworking/README.md b/sdk/resourcemanager/servicenetworking/armservicenetworking/README.md index f6c35840535a..84ad246aa1ad 100644 --- a/sdk/resourcemanager/servicenetworking/armservicenetworking/README.md +++ b/sdk/resourcemanager/servicenetworking/armservicenetworking/README.md @@ -1,7 +1,5 @@ # Azure Servicenetworking Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/armservicenetworking) - The `armservicenetworking` module provides operations for working with Azure Servicenetworking. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/servicenetworking/armservicenetworking) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicenetworking/a ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Servicenetworking. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Servicenetworking. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armservicenetworking.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAssociationsInterfaceClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/signalr/armsignalr/README.md b/sdk/resourcemanager/signalr/armsignalr/README.md index f30a63d034be..460d4d7140c8 100644 --- a/sdk/resourcemanager/signalr/armsignalr/README.md +++ b/sdk/resourcemanager/signalr/armsignalr/README.md @@ -1,7 +1,5 @@ # Azure Signalr Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/signalr/armsignalr)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/signalr/armsignalr) - The `armsignalr` module provides operations for working with Azure Signalr. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/signalr/armsignalr) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/signalr/armsignalr ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Signalr. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Signalr. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armsignalr.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/solutions/armmanagedapplications/README.md b/sdk/resourcemanager/solutions/armmanagedapplications/README.md index 035cea862c38..f4d8da2cd1a8 100644 --- a/sdk/resourcemanager/solutions/armmanagedapplications/README.md +++ b/sdk/resourcemanager/solutions/armmanagedapplications/README.md @@ -1,7 +1,5 @@ # Azure Managed Application Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/solutions/armmanagedapplications/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/solutions/armmanagedapplications/v2) - The `armmanagedapplications` module provides operations for working with Azure Managed Application. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/solutions/armmanagedapplications) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/solutions/armmanage ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Managed Application. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Managed Application. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armmanagedapplications.NewClientFactory(, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewApplicationsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/sphere/armsphere/README.md b/sdk/resourcemanager/sphere/armsphere/README.md index aec417999ad0..3bb3bc82a944 100644 --- a/sdk/resourcemanager/sphere/armsphere/README.md +++ b/sdk/resourcemanager/sphere/armsphere/README.md @@ -1,7 +1,5 @@ # Azure Sphere Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sphere/armsphere)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sphere/armsphere) - The `armsphere` module provides operations for working with Azure Sphere. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/sphere/armsphere) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sphere/armsphere ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Sphere. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Sphere. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armsphere.NewClientFactory(, cred, &optio ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewCatalogsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/springappdiscovery/armspringappdiscovery/CHANGELOG.md b/sdk/resourcemanager/springappdiscovery/armspringappdiscovery/CHANGELOG.md index cf27a3eef7bd..05b4b36a5f36 100644 --- a/sdk/resourcemanager/springappdiscovery/armspringappdiscovery/CHANGELOG.md +++ b/sdk/resourcemanager/springappdiscovery/armspringappdiscovery/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History ## 0.1.0 (2024-02-01) +### Other Changes The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html). diff --git a/sdk/resourcemanager/springappdiscovery/armspringappdiscovery/README.md b/sdk/resourcemanager/springappdiscovery/armspringappdiscovery/README.md index 6eb0a50f2d3a..1b30d5ef886a 100644 --- a/sdk/resourcemanager/springappdiscovery/armspringappdiscovery/README.md +++ b/sdk/resourcemanager/springappdiscovery/armspringappdiscovery/README.md @@ -1,7 +1,5 @@ # Azure Springappdiscovery Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/armspringappdiscovery) - The `armspringappdiscovery` module provides operations for working with Azure Springappdiscovery. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/springappdiscovery/armspringappdiscovery) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/springappdiscovery/ ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Springappdiscovery. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Springappdiscovery. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armspringappdiscovery.NewClientFactory(, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewErrorSummariesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/sql/armsql/README.md b/sdk/resourcemanager/sql/armsql/README.md index 115e87ae4281..0fa08902b9e1 100644 --- a/sdk/resourcemanager/sql/armsql/README.md +++ b/sdk/resourcemanager/sql/armsql/README.md @@ -1,7 +1,5 @@ # Azure SQL Database Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sql/armsql/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sql/armsql/v2) - The `armsql` module provides operations for working with Azure SQL Database. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/sql/armsql) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sql/armsql/v2 ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure SQL Database. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure SQL Database. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armsql.NewClientFactory(, cred, &options) ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAgentClient() @@ -99,4 +97,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/README.md b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/README.md index a202d93291eb..3dcd176dd38f 100644 --- a/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/README.md +++ b/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine/README.md @@ -1,7 +1,5 @@ # Azure SQL Server on Azure Virtual Machines Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine) - The `armsqlvirtualmachine` module provides operations for working with Azure SQL Server on Azure Virtual Machines. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/sqlvirtualmachine/armsqlvirtualmachine) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/sqlvirtualmachine/a ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure SQL Server on Azure Virtual Machines. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure SQL Server on Azure Virtual Machines. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armsqlvirtualmachine.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewSQLVirtualMachinesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/standbypool/armstandbypool/README.md b/sdk/resourcemanager/standbypool/armstandbypool/README.md index fa0daf2e4da5..2dc9a4926040 100644 --- a/sdk/resourcemanager/standbypool/armstandbypool/README.md +++ b/sdk/resourcemanager/standbypool/armstandbypool/README.md @@ -1,7 +1,5 @@ # Azure Standbypool Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/standbypool/armstandbypool)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/standbypool/armstandbypool) - The `armstandbypool` module provides operations for working with Azure Standbypool. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/standbypool/armstandbypool) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/standbypool/armstan ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Standbypool. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Standbypool. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armstandbypool.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewStandbyContainerGroupPoolRuntimeViewsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/storage/armstorage/README.md b/sdk/resourcemanager/storage/armstorage/README.md index 9f7fe2b72e37..22f7911204b7 100644 --- a/sdk/resourcemanager/storage/armstorage/README.md +++ b/sdk/resourcemanager/storage/armstorage/README.md @@ -1,7 +1,5 @@ # Azure Storage Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage) - The `armstorage` module provides operations for working with Azure Storage. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/storage/armstorage) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Storage. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Storage. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armstorage.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAccountsClient() @@ -99,4 +97,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/storageactions/armstorageactions/CHANGELOG.md b/sdk/resourcemanager/storageactions/armstorageactions/CHANGELOG.md index 78e70297904c..a9cb03a45130 100644 --- a/sdk/resourcemanager/storageactions/armstorageactions/CHANGELOG.md +++ b/sdk/resourcemanager/storageactions/armstorageactions/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History ## 0.1.0 (2024-03-08) +### Other Changes The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storageactions/armstorageactions` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html). diff --git a/sdk/resourcemanager/storageactions/armstorageactions/README.md b/sdk/resourcemanager/storageactions/armstorageactions/README.md index d0b963c78e17..e4b6b6b38e21 100644 --- a/sdk/resourcemanager/storageactions/armstorageactions/README.md +++ b/sdk/resourcemanager/storageactions/armstorageactions/README.md @@ -1,7 +1,5 @@ # Azure Storageactions Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storageactions/armstorageactions)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storageactions/armstorageactions) - The `armstorageactions` module provides operations for working with Azure Storageactions. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/storageactions/armstorageactions) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storageactions/arms ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Storageactions. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Storageactions. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armstorageactions.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewStorageTaskAssignmentClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/storagecache/armstoragecache/README.md b/sdk/resourcemanager/storagecache/armstoragecache/README.md index 7080e468ecb4..b6048e9bbfa5 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/README.md +++ b/sdk/resourcemanager/storagecache/armstoragecache/README.md @@ -1,7 +1,5 @@ # Azure Storage Caches Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v4)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v4) - The `armstoragecache` module provides operations for working with Azure Storage Caches. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/storagecache/armstoragecache) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armsto ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Storage Caches. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Storage Caches. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armstoragecache.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAmlFilesystemsClient() @@ -98,4 +96,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/storageimportexport/armstorageimportexport/README.md b/sdk/resourcemanager/storageimportexport/armstorageimportexport/README.md index ccf21241b963..9c55569e54a6 100644 --- a/sdk/resourcemanager/storageimportexport/armstorageimportexport/README.md +++ b/sdk/resourcemanager/storageimportexport/armstorageimportexport/README.md @@ -1,7 +1,5 @@ # Azure Storage Import/Export Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storageimportexport/armstorageimportexport)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storageimportexport/armstorageimportexport) - The `armstorageimportexport` module provides operations for working with Azure Storage Import/Export. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/storageimportexport/armstorageimportexport) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storageimportexport ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Storage Import/Export. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Storage Import/Export. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armstorageimportexport.NewClientFactory(, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewJobsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/storagemover/armstoragemover/README.md b/sdk/resourcemanager/storagemover/armstoragemover/README.md index c3c39fce4b66..3e43c87dbf17 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/README.md +++ b/sdk/resourcemanager/storagemover/armstoragemover/README.md @@ -1,7 +1,5 @@ # Azure Storage Mover Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover/v2) - The `armstoragemover` module provides operations for working with Azure Storage Mover. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/storagemover/armstoragemover) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armsto ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Storage Mover. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Storage Mover. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armstoragemover.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewAgentsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/storagepool/armstoragepool/README.md b/sdk/resourcemanager/storagepool/armstoragepool/README.md index d9823af788dc..93d67b1ed500 100644 --- a/sdk/resourcemanager/storagepool/armstoragepool/README.md +++ b/sdk/resourcemanager/storagepool/armstoragepool/README.md @@ -1,7 +1,5 @@ # Azure Storage Pool Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagepool/armstoragepool)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagepool/armstoragepool) - The `armstoragepool` module provides operations for working with Azure Storage Pool. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/storagepool/armstoragepool) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagepool/armstor ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Storage Pool. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Storage Pool. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armstoragepool.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewDiskPoolsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/storagesync/armstoragesync/README.md b/sdk/resourcemanager/storagesync/armstoragesync/README.md index 2433c94b47cb..1b421abf74c5 100644 --- a/sdk/resourcemanager/storagesync/armstoragesync/README.md +++ b/sdk/resourcemanager/storagesync/armstoragesync/README.md @@ -1,7 +1,5 @@ # Azure Storage Sync Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagesync/armstoragesync)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagesync/armstoragesync) - The `armstoragesync` module provides operations for working with Azure Storage Sync. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/storagesync/armstoragesync) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagesync/armstor ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Storage Sync. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Storage Sync. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armstoragesync.NewClientFactory(, cred, & ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewServicesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/storsimple1200series/armstorsimple1200series/README.md b/sdk/resourcemanager/storsimple1200series/armstorsimple1200series/README.md index e437c6e5e34f..80c7c3235cf2 100644 --- a/sdk/resourcemanager/storsimple1200series/armstorsimple1200series/README.md +++ b/sdk/resourcemanager/storsimple1200series/armstorsimple1200series/README.md @@ -1,7 +1,5 @@ # Azure Storsimple1200series Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200series/armstorsimple1200series) - The `armstorsimple1200series` module provides operations for working with Azure Storsimple1200series. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/storsimple1200series/armstorsimple1200series) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple1200serie ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Storsimple1200series. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Storsimple1200series. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armstorsimple1200series.NewClientFactory( ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewIscsiDisksClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/storsimple8000series/armstorsimple8000series/README.md b/sdk/resourcemanager/storsimple8000series/armstorsimple8000series/README.md index d9507cb48fd7..34a504cde66f 100644 --- a/sdk/resourcemanager/storsimple8000series/armstorsimple8000series/README.md +++ b/sdk/resourcemanager/storsimple8000series/armstorsimple8000series/README.md @@ -1,7 +1,5 @@ # Azure Storsimple8000series Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple8000series/armstorsimple8000series)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple8000series/armstorsimple8000series) - The `armstorsimple8000series` module provides operations for working with Azure Storsimple8000series. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/storsimple8000series/armstorsimple8000series) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storsimple8000serie ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Storsimple8000series. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Storsimple8000series. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armstorsimple8000series.NewClientFactory( ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewBackupsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/streamanalytics/armstreamanalytics/README.md b/sdk/resourcemanager/streamanalytics/armstreamanalytics/README.md index b0da7be602dc..8677e03c8c43 100644 --- a/sdk/resourcemanager/streamanalytics/armstreamanalytics/README.md +++ b/sdk/resourcemanager/streamanalytics/armstreamanalytics/README.md @@ -1,7 +1,5 @@ # Azure Stream Analytics Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/armstreamanalytics/v2) - The `armstreamanalytics` module provides operations for working with Azure Stream Analytics. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/streamanalytics/armstreamanalytics) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/streamanalytics/arm ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Stream Analytics. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Stream Analytics. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armstreamanalytics.NewClientFactory(, cre ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClustersClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/subscription/armsubscription/README.md b/sdk/resourcemanager/subscription/armsubscription/README.md index 8c4654197142..e4972755e360 100644 --- a/sdk/resourcemanager/subscription/armsubscription/README.md +++ b/sdk/resourcemanager/subscription/armsubscription/README.md @@ -1,7 +1,5 @@ # Azure Subscription Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/subscription/armsubscription)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/subscription/armsubscription) - The `armsubscription` module provides operations for working with Azure Subscription. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/subscription/armsubscription) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/subscription/armsub ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Subscription. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Subscription. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armsubscription.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/support/armsupport/README.md b/sdk/resourcemanager/support/armsupport/README.md index cf8740045815..047c9fb5b1d8 100644 --- a/sdk/resourcemanager/support/armsupport/README.md +++ b/sdk/resourcemanager/support/armsupport/README.md @@ -1,7 +1,5 @@ # Azure Support Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/support/armsupport)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/support/armsupport) - The `armsupport` module provides operations for working with Azure Support. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/support/armsupport) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/support/armsupport ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Support. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Support. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armsupport.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewChatTranscriptsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/synapse/armsynapse/README.md b/sdk/resourcemanager/synapse/armsynapse/README.md index 771e91a59da5..26e09c633c82 100644 --- a/sdk/resourcemanager/synapse/armsynapse/README.md +++ b/sdk/resourcemanager/synapse/armsynapse/README.md @@ -1,7 +1,5 @@ # Azure Synapse Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse) - The `armsynapse` module provides operations for working with Azure Synapse. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/synapse/armsynapse) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Synapse. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Synapse. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armsynapse.NewClientFactory(, cred, &opti ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewKustoPoolDataConnectionsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/testbase/armtestbase/README.md b/sdk/resourcemanager/testbase/armtestbase/README.md index fdf11089f52e..7c4b5b445b47 100644 --- a/sdk/resourcemanager/testbase/armtestbase/README.md +++ b/sdk/resourcemanager/testbase/armtestbase/README.md @@ -1,7 +1,5 @@ # Azure Test Base for M365 Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/testbase/armtestbase)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/testbase/armtestbase) - The `armtestbase` module provides operations for working with Azure Test Base for M365. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/testbase/armtestbase) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/testbase/armtestbas ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Test Base for M365. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Test Base for M365. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armtestbase.NewClientFactory(, cred, &opt ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewEmailEventsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/timeseriesinsights/armtimeseriesinsights/README.md b/sdk/resourcemanager/timeseriesinsights/armtimeseriesinsights/README.md index b812295cc21f..0b091162345e 100644 --- a/sdk/resourcemanager/timeseriesinsights/armtimeseriesinsights/README.md +++ b/sdk/resourcemanager/timeseriesinsights/armtimeseriesinsights/README.md @@ -1,7 +1,5 @@ # Azure Time Series Insights Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/timeseriesinsights/armtimeseriesinsights)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/timeseriesinsights/armtimeseriesinsights) - The `armtimeseriesinsights` module provides operations for working with Azure Time Series Insights. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/timeseriesinsights/armtimeseriesinsights) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/timeseriesinsights/ ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Time Series Insights. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Time Series Insights. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armtimeseriesinsights.NewClientFactory(, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewEventSourcesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/trafficmanager/armtrafficmanager/README.md b/sdk/resourcemanager/trafficmanager/armtrafficmanager/README.md index f4e3fe4a044d..7f6b99b34c88 100644 --- a/sdk/resourcemanager/trafficmanager/armtrafficmanager/README.md +++ b/sdk/resourcemanager/trafficmanager/armtrafficmanager/README.md @@ -1,7 +1,5 @@ # Azure Traffic Manager Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/trafficmanager/armtrafficmanager)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/trafficmanager/armtrafficmanager) - The `armtrafficmanager` module provides operations for working with Azure Traffic Manager. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/trafficmanager/armtrafficmanager) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/trafficmanager/armt ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Traffic Manager. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Traffic Manager. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armtrafficmanager.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewHeatMapClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/trustedsigning/armtrustedsigning/README.md b/sdk/resourcemanager/trustedsigning/armtrustedsigning/README.md index c49b120a564d..4d7e6f8eb3f7 100644 --- a/sdk/resourcemanager/trustedsigning/armtrustedsigning/README.md +++ b/sdk/resourcemanager/trustedsigning/armtrustedsigning/README.md @@ -1,7 +1,5 @@ # Azure Trustedsigning Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/trustedsigning/armtrustedsigning)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/trustedsigning/armtrustedsigning) - The `armtrustedsigning` module provides operations for working with Azure Trustedsigning. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/trustedsigning/armtrustedsigning) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/trustedsigning/armt ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Trustedsigning. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Trustedsigning. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armtrustedsigning.NewClientFactory(, cred ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewCertificateProfilesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/CHANGELOG.md b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/CHANGELOG.md index 8b84c0fcb687..c5cf880fa50a 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/CHANGELOG.md +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/CHANGELOG.md @@ -1,8 +1,10 @@ # Release History ## 0.4.2 (2022-05-16) -### Deprecated +### Other Changes + - We’re retiring the Azure Video Analyzer preview service; you're advised to transition your applications off of Video Analyzer by 01 December 2022. This SDK is no longer maintained and won’t work after the service is retired. To learn how to transition off, please refer to: https://github.com/MicrosoftDocs/azure-docs/blob/4ba87bedc7b17a32903c99afb3ca4163be0dcc90/articles/azure-video-analyzer/video-analyzer-docs/transition-from-video-analyzer.md. + ## 0.4.0 (2022-04-18) ### Breaking Changes diff --git a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/README.md b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/README.md index 227aeb78fdc1..b7453a27035f 100644 --- a/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/README.md +++ b/sdk/resourcemanager/videoanalyzer/armvideoanalyzer/README.md @@ -1,7 +1,5 @@ # Azure Video Analyzer Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/videoanalyzer/armvideoanalyzer)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/videoanalyzer/armvideoanalyzer) - The `armvideoanalyzer` module provides operations for working with Azure Video Analyzer. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/videoanalyzer/armvideoanalyzer) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/videoanalyzer/armvi ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Video Analyzer. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Video Analyzer. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -35,7 +33,7 @@ For more information on authentication, please see the documentation for `aziden ## Clients -Azure Video Analyzer modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. +Azure Video Analyzer modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go client, err := armvideoanalyzer.NewVideoAnalyzersClient(, cred, nil) @@ -74,4 +72,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/README.md b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/README.md index 2870acdcbbfe..2202686c842a 100644 --- a/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/README.md +++ b/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/README.md @@ -1,7 +1,5 @@ # Azure Virtual Machine Image Builder Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/v2)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder/v2) - The `armvirtualmachineimagebuilder` module provides operations for working with Azure Virtual Machine Image Builder. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/virtualmachineimagebuilder/armvirtualmachineimagebuilder) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/virtualmachineimage ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Virtual Machine Image Builder. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Virtual Machine Image Builder. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armvirtualmachineimagebuilder.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewProjectsClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/README.md b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/README.md index 255358af47d3..6ecca15bf6a2 100644 --- a/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/README.md +++ b/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple/README.md @@ -1,7 +1,5 @@ # Azure VMware Cloud Simple Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple) - The `armvmwarecloudsimple` module provides operations for working with Azure VMware Cloud Simple. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/vmwarecloudsimple/armvmwarecloudsimple) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/vmwarecloudsimple/a ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure VMware Cloud Simple. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure VMware Cloud Simple. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armvmwarecloudsimple.NewClientFactory(, c ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewVirtualMachinesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/README.md b/sdk/resourcemanager/voiceservices/armvoiceservices/README.md index 1b84f6f1633e..e6fa3eb896a4 100644 --- a/sdk/resourcemanager/voiceservices/armvoiceservices/README.md +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/README.md @@ -1,7 +1,5 @@ # Azure VoiceServices Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/voiceservices/armvoiceservices)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/voiceservices/armvoiceservices) - The `armvoiceservices` module provides operations for working with Azure VoiceServices. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/voiceservices/armvoiceservices) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/voiceservices/armvo ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure VoiceServices. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure VoiceServices. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -35,7 +33,7 @@ For more information on authentication, please see the documentation for `aziden ## Client Factory -Azure VoiceServices module consists of one or more clients. We provide a client factory which could be used to create any client in this module. +Azure VoiceServices module consists of one or more clients. We provide a client factory which could be used to create any client in this module. ```go clientFactory, err := armvoiceservices.NewClientFactory(, cred, nil) @@ -54,7 +52,7 @@ clientFactory, err := armvoiceservices.NewClientFactory(, cred, ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewTestLinesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/webpubsub/armwebpubsub/README.md b/sdk/resourcemanager/webpubsub/armwebpubsub/README.md index ff4ace40f59a..3bd45e3221ca 100644 --- a/sdk/resourcemanager/webpubsub/armwebpubsub/README.md +++ b/sdk/resourcemanager/webpubsub/armwebpubsub/README.md @@ -1,7 +1,5 @@ # Azure Web PubSub Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/webpubsub/armwebpubsub)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/webpubsub/armwebpubsub) - The `armwebpubsub` module provides operations for working with Azure Web PubSub. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/webpubsub/armwebpubsub) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/webpubsub/armwebpub ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Web PubSub. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Web PubSub. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armwebpubsub.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/windowsesu/armwindowsesu/README.md b/sdk/resourcemanager/windowsesu/armwindowsesu/README.md index 5ea802d4e76f..8fe3ba7a57a6 100644 --- a/sdk/resourcemanager/windowsesu/armwindowsesu/README.md +++ b/sdk/resourcemanager/windowsesu/armwindowsesu/README.md @@ -1,7 +1,5 @@ # Azure Windows ESU Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsesu/armwindowsesu)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsesu/armwindowsesu) - The `armwindowsesu` module provides operations for working with Azure Windows ESU. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/windowsesu/armwindowsesu) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsesu/armwindo ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Windows ESU. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Windows ESU. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armwindowsesu.NewClientFactory(, cred, &o ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewMultipleActivationKeysClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/windowsiot/armwindowsiot/README.md b/sdk/resourcemanager/windowsiot/armwindowsiot/README.md index 893085dd0854..44785a66f904 100644 --- a/sdk/resourcemanager/windowsiot/armwindowsiot/README.md +++ b/sdk/resourcemanager/windowsiot/armwindowsiot/README.md @@ -1,7 +1,5 @@ # Azure Windows IoT Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsiot/armwindowsiot)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsiot/armwindowsiot) - The `armwindowsiot` module provides operations for working with Azure Windows IoT. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/windowsiot/armwindowsiot) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/windowsiot/armwindo ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Windows IoT. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Windows IoT. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armwindowsiot.NewClientFactory(, cred, &o ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewServicesClient() @@ -89,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/CHANGELOG.md b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/CHANGELOG.md index 8495043867b6..d05688f80a90 100644 --- a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/CHANGELOG.md +++ b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History ## 0.5.1 (2022-11-23) +### Other Changes Deprecated: The service backing this library is retired on November 30th, 2022. At that point, this library will no longer work. Please migrate to Azure Monitor Log Alerts API in module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor. For more details on the Azure VM Insights Guest Health retirement, please visit: https://azure.microsoft.com/updates/transition-to-azure-monitor-log-alerts-for-vm-guest-health-by-30-november-2022 diff --git a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/README.md b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/README.md index f09c66aa01b4..03612e9d31fd 100644 --- a/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/README.md +++ b/sdk/resourcemanager/workloadmonitor/armworkloadmonitor/README.md @@ -3,8 +3,6 @@ Deprecated: The service backing this library is retired on November 30th, 2022. At that point, this library will no longer work. Please migrate to Azure Monitor Log Alerts API in module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor. For more details on the Azure VM Insights Guest Health retirement, please visit: https://azure.microsoft.com/updates/transition-to-azure-monitor-log-alerts-for-vm-guest-health-by-30-november-2022 -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloadmonitor/armworkloadmonitor)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloadmonitor/armworkloadmonitor) - The `armworkloadmonitor` module provides operations for working with Azure Workload Monitor. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/workloadmonitor/armworkloadmonitor) @@ -28,7 +26,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloadmonitor/arm ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Workload Monitor. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Workload Monitor. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -38,7 +36,7 @@ For more information on authentication, please see the documentation for `aziden ## Clients -Azure Workload Monitor modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. +Azure Workload Monitor modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. ```go client, err := armworkloadmonitor.NewHealthMonitorsClient(, cred, nil) @@ -77,4 +75,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/workloads/armworkloads/README.md b/sdk/resourcemanager/workloads/armworkloads/README.md index 7481ac64e879..357f6aab0118 100644 --- a/sdk/resourcemanager/workloads/armworkloads/README.md +++ b/sdk/resourcemanager/workloads/armworkloads/README.md @@ -1,7 +1,5 @@ # Azure Workloads Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads) - The `armworkloads` module provides operations for working with Azure Workloads. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/workloads/armworkloads) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworklo ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Workloads. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Workloads. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armworkloads.NewClientFactory(, cred, &op ## Clients -A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. +A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go client := clientFactory.NewProviderInstancesClient() @@ -67,7 +65,6 @@ This allows writing tests to cover various success/error conditions without the Please see https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/samples/fakes for details and examples on how to use fakes. - ## Provide Feedback If you encounter bugs or have suggestions, please @@ -90,4 +87,4 @@ This project has adopted the For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any -additional questions or comments. \ No newline at end of file +additional questions or comments. diff --git a/sdk/resourcemanager/workloadssapvirtualinstance/armworkloadssapvirtualinstance/CHANGELOG.md b/sdk/resourcemanager/workloadssapvirtualinstance/armworkloadssapvirtualinstance/CHANGELOG.md index 059db7cac08a..3a3e8181ab5f 100644 --- a/sdk/resourcemanager/workloadssapvirtualinstance/armworkloadssapvirtualinstance/CHANGELOG.md +++ b/sdk/resourcemanager/workloadssapvirtualinstance/armworkloadssapvirtualinstance/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History ## 0.1.0 (2024-02-23) +### Other Changes The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloadssapvirtualinstance/armworkloadssapvirtualinstance` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html). diff --git a/sdk/resourcemanager/workloadssapvirtualinstance/armworkloadssapvirtualinstance/README.md b/sdk/resourcemanager/workloadssapvirtualinstance/armworkloadssapvirtualinstance/README.md index ed2f5d20058b..07a9183d03db 100644 --- a/sdk/resourcemanager/workloadssapvirtualinstance/armworkloadssapvirtualinstance/README.md +++ b/sdk/resourcemanager/workloadssapvirtualinstance/armworkloadssapvirtualinstance/README.md @@ -1,7 +1,5 @@ # Azure Workloadssapvirtualinstance Module for Go -[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloadssapvirtualinstance/armworkloadssapvirtualinstance)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloadssapvirtualinstance/armworkloadssapvirtualinstance) - The `armworkloadssapvirtualinstance` module provides operations for working with Azure Workloadssapvirtualinstance. [Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/workloadssapvirtualinstance/armworkloadssapvirtualinstance) @@ -25,7 +23,7 @@ go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloadssapvirtual ## Authorization -When creating a client, you will need to provide a credential for authenticating with Azure Workloadssapvirtualinstance. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. +When creating a client, you will need to provide a credential for authenticating with Azure Workloadssapvirtualinstance. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. ```go cred, err := azidentity.NewDefaultAzureCredential(nil) @@ -54,7 +52,7 @@ clientFactory, err := armworkloadssapvirtualinstance.NewClientFactory( Date: Wed, 13 Nov 2024 02:19:47 +0800 Subject: [PATCH 08/33] upgrade typesspec-go (#23720) --- eng/emitter-package-lock.json | 195 ++-------------------------------- eng/emitter-package.json | 2 +- 2 files changed, 9 insertions(+), 188 deletions(-) diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index d82fff4776c4..e9885ee307e4 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-go": "0.3.0" + "@azure-tools/typespec-go": "0.3.2" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.48.0", @@ -95,7 +95,6 @@ "version": "0.48.0", "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.48.0.tgz", "integrity": "sha512-80qyqgTgBbrnCGXtz6eWAMBdEAjYVVL780L0Ye+rBEd6VoA0m3JrgzUqf5bC0Iwju6lEtBAb8o6sefKD/NGA7g==", - "dev": true, "engines": { "node": ">=18.0.0" }, @@ -145,7 +144,6 @@ "version": "0.48.0", "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.48.0.tgz", "integrity": "sha512-+fmKjapz0kP7ONPZap8dgcIKIdQw+YBSrf89csbIyhPTcLnVAk/BKljo8FoNypKXwqKHenslLm0njBKPllkopg==", - "dev": true, "dependencies": { "change-case": "~5.4.4", "pluralize": "^8.0.0" @@ -163,181 +161,28 @@ } }, "node_modules/@azure-tools/typespec-go": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-go/-/typespec-go-0.3.0.tgz", - "integrity": "sha512-zfGb6owlaZlxeLUcCu/mYx7fG9hGZC0smQrCZVBZ47j2aF8zOdyvmS40A3s9h+0TCHPzeM+CcwZavappneEtUg==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-go/-/typespec-go-0.3.2.tgz", + "integrity": "sha512-//AqxRkAbQKXLNyGvT6x0GjKNdmkjX79T3ZjnpfBtubny3yaoJDr6U5A3WZf1oFddo/l9M48IbeHbS8Tb2Xzcg==", "dependencies": { "@azure-tools/codegen": "~2.9.2", "@azure-tools/linq": "~3.1.0", - "@azure-tools/typespec-azure-core": ">=0.44.0 <1.0.0", - "@azure-tools/typespec-client-generator-core": "0.44.3", - "@typespec/compiler": "0.58.1", - "@typespec/http": "0.58.0", - "@typespec/rest": "0.58.0", - "@typespec/versioning": "0.58.0", "js-yaml": "~4.1.0", "source-map-support": "0.5.21" }, "engines": { "node": ">=12.0.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@azure-tools/typespec-azure-core": { - "version": "0.44.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.44.0.tgz", - "integrity": "sha512-d11QK2v5fOZH8YUqf42FsqHEirKCHzeKFq4Uo/51BXCXmJJahsTaFMAG2M0GoJe8tmTHeMijStnVMfzcGNqCAA==", - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/rest": "~0.58.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.44.3", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.44.3.tgz", - "integrity": "sha512-HXjxQs7ELrTuIDqOjlYhP4rM4AXb143klbiM8dkEGtqNBRCk77gVCGYVH1M3kWKAEs0dQKhzoUukscqRsfELuw==", - "dependencies": { - "change-case": "~5.4.4", - "pluralize": "^8.0.0" - }, - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.44.0", - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/openapi": "~0.58.0", - "@typespec/rest": "~0.58.0", - "@typespec/versioning": "~0.58.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@babel/code-frame": { - "version": "7.24.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.7.tgz", - "integrity": "sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA==", - "dependencies": { - "@babel/highlight": "^7.24.7", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@typespec/compiler": { - "version": "0.58.1", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.58.1.tgz", - "integrity": "sha512-bVxxM35r40OtuL4+/9W/g1EevlnWnW6i151nsZAFOJj1xWHoE2G9zkx5/Feic8OlzArjhGGLJOLH3Ez1Wrw35A==", - "dependencies": { - "@babel/code-frame": "~7.24.7", - "ajv": "~8.16.0", - "change-case": "~5.4.4", - "globby": "~14.0.2", - "mustache": "~4.2.0", - "picocolors": "~1.0.1", - "prettier": "~3.3.2", - "prompts": "~2.4.2", - "semver": "^7.6.2", - "temporal-polyfill": "^0.2.5", - "vscode-languageserver": "~9.0.1", - "vscode-languageserver-textdocument": "~1.0.11", - "yaml": "~2.4.5", - "yargs": "~17.7.2" - }, - "bin": { - "tsp": "cmd/tsp.js", - "tsp-server": "cmd/tsp-server.js" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@typespec/http": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.58.0.tgz", - "integrity": "sha512-jQpkugg9AZVrNDMkDIgZRpIoRkkU2b0LtKWqMGg33MItYj9/DYSgDtY7xb7oCBppRtFFZ/h138HyhYl3zQxZRg==", - "engines": { - "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@typespec/openapi": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.58.0.tgz", - "integrity": "sha512-gu6nXfmpfZrfq8Etpgl1dpMfsXii7EzQyhZgsPhIy7ZwV5bDmFk1/oyhTqIpWrnr4pD3r151T2BQjzJefjf15A==", - "peer": true, - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@typespec/rest": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.58.0.tgz", - "integrity": "sha512-QBxkED0/KQKG22pwzis0n7BY+uLMSZZPSoVe/ESBFika9n5/yyeQ0l58xbFFwwfxAxe4xwuZ5PNwTdEXZbzr5g==", - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/@typespec/versioning": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.58.0.tgz", - "integrity": "sha512-brnQQ3wKWh4AbgqmnVLj+8zyOaDk9VPWg4QBecdQxzz7PrSrlAzIzRfeIyr67+hwi/0SvkTAB6GNH7YYTypKGA==", - "engines": { - "node": ">=18.0.0" - }, - "peerDependencies": { - "@typespec/compiler": "~0.58.0" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/ajv": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.16.0.tgz", - "integrity": "sha512-F0twR8U1ZU67JIEtekUcLkXkoO5mMMmgGD8sK/xUFzJ805jxHQl92hImFAqqXMyMYjSPOyUPAwHYhB72g5sTXw==", - "dependencies": { - "fast-deep-equal": "^3.1.3", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.4.1" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/@azure-tools/typespec-go/node_modules/picocolors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", - "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" - }, - "node_modules/@azure-tools/typespec-go/node_modules/yaml": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.5.tgz", - "integrity": "sha512-aBx2bnqDzVOyNKfsysjA2ms5ZlnjSAW2eG3/L5G/CSujfjLJTJsEw1bGw8kCf04KodQWk1pxlGnZ56CRxiawmg==", - "bin": { - "yaml": "bin.mjs" - }, - "engines": { - "node": ">= 14" + "@azure-tools/typespec-client-generator-core": ">=0.48.0 <1.0.0", + "@typespec/compiler": ">=0.62.0 <1.0.0", + "@typespec/http": ">=0.62.0 <1.0.0" } }, "node_modules/@babel/code-frame": { "version": "7.25.9", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.9.tgz", "integrity": "sha512-z88xeGxnzehn2sqZ8UdGQEvYErF1odv2CftxInpSYJt6uHuPe9YjahKZITGs3l5LeI9d2ROG+obuDAoSlqbNfQ==", - "dev": true, "dependencies": { "@babel/highlight": "^7.25.9", "picocolors": "^1.0.0" @@ -415,7 +260,6 @@ "version": "0.62.0", "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.62.0.tgz", "integrity": "sha512-RfKJ/rF2Wjxu7dl74oJE8yEfSkeL7NopFlyJ4dW1JQXpRN2IOJYPxas12qZA6H9ZEIB8rBjyrHNxJSQbvn/UDQ==", - "dev": true, "dependencies": { "@babel/code-frame": "~7.25.7", "ajv": "~8.17.1", @@ -444,7 +288,6 @@ "version": "0.62.0", "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.62.0.tgz", "integrity": "sha512-6H9y9e32lb2s76MMy29ITCwSZNG42sa/qWthiByUvfbTEXMpu5a1fQHNj7RXg+xmDKmVIHv3gAfjGPAWfXhkaQ==", - "dev": true, "engines": { "node": ">=18.0.0" }, @@ -462,7 +305,6 @@ "version": "0.62.0", "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.62.0.tgz", "integrity": "sha512-Xtm0Nd2BuSmEfSWGtc10ok22jyomYm9L2jY+kVTy+v5J89DrVh0o6+YpipUl1QhcItM1YMBphWHIHPfwkDRbnw==", - "dev": true, "engines": { "node": ">=18.0.0" }, @@ -475,7 +317,6 @@ "version": "0.62.0", "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.62.0.tgz", "integrity": "sha512-ci5UjelEKFwsPTdpgysoUoDCcw02EnbG4GBuYJdR5mRrFCBZMxrbro+OJLgSN3g/TORSsWlW7dEOWLfbyrmlZQ==", - "dev": true, "engines": { "node": ">=18.0.0" }, @@ -488,7 +329,6 @@ "version": "0.62.0", "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.62.0.tgz", "integrity": "sha512-M5KTCVH5fBniZU8eQlw+NV13vAmPr58HyBLDIyxeOuV+SHNlx+f+qanUEDIPaJheKlaSSNTEZKsDhs83/iIMMA==", - "dev": true, "engines": { "node": ">=18.0.0" }, @@ -500,7 +340,6 @@ "version": "8.17.1", "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "dev": true, "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", @@ -640,8 +479,7 @@ "node_modules/fast-uri": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.3.tgz", - "integrity": "sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==", - "dev": true + "integrity": "sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==" }, "node_modules/fastq": { "version": "1.17.1", @@ -886,14 +724,6 @@ "node": ">=4.0.0" } }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "engines": { - "node": ">=6" - } - }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -1082,14 +912,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dependencies": { - "punycode": "^2.1.0" - } - }, "node_modules/vscode-jsonrpc": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz", @@ -1186,7 +1008,6 @@ "version": "2.5.1", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz", "integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==", - "dev": true, "bin": { "yaml": "bin.mjs" }, diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 268eabcf1900..ac4202710a37 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,7 +1,7 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-go": "0.3.0" + "@azure-tools/typespec-go": "0.3.2" }, "devDependencies": { "@azure-tools/typespec-autorest": "0.48.0", From 1e6a91bf4d4faf5d91e1d375a75b76744d10cf02 Mon Sep 17 00:00:00 2001 From: Gerardo Lecaros <10088504+glecaros@users.noreply.github.com> Date: Tue, 12 Nov 2024 10:33:45 -0800 Subject: [PATCH 09/33] [azopenai] Inference changes for 2024-10-01-preview (#23672) --- sdk/ai/azopenai/CHANGELOG.md | 6 + sdk/ai/azopenai/assets.json | 2 +- sdk/ai/azopenai/autorest.md | 20 +- sdk/ai/azopenai/build.go | 20 + sdk/ai/azopenai/client.go | 84 ++-- ...client_chat_completions_extensions_test.go | 2 +- .../azopenai/client_chat_completions_test.go | 31 +- sdk/ai/azopenai/client_extra.go | 262 ++++++++++ sdk/ai/azopenai/client_functions_test.go | 2 +- sdk/ai/azopenai/custom_client.go | 241 ++++----- sdk/ai/azopenai/custom_client_audio.go | 183 ------- sdk/ai/azopenai/custom_client_embeddings.go | 38 -- sdk/ai/azopenai/custom_client_test.go | 4 +- sdk/ai/azopenai/custom_models.go | 224 --------- sdk/ai/azopenai/custom_models_functions.go | 42 -- .../example_client_getchatcompletions_test.go | 2 +- .../example_client_getcompletions_test.go | 2 +- .../internal/check_generation_test.go | 2 +- .../azopenai/internal/transform/cmd/main.go | 55 +++ .../azopenai/internal/transform/transform.go | 326 ++++++++++++ sdk/ai/azopenai/models.go | 464 +++++++++++++++++- sdk/ai/azopenai/models_extra.go | 289 +++++++++++ sdk/ai/azopenai/models_serde.go | 191 ++++++- sdk/ai/azopenai/testdata/package-lock.json | 226 +++++---- sdk/ai/azopenai/testdata/package.json | 8 +- .../testdata/rename_custom_and_tests.ps1 | 40 ++ sdk/ai/azopenai/testdata/tsp-location.yaml | 4 +- 27 files changed, 1977 insertions(+), 793 deletions(-) create mode 100644 sdk/ai/azopenai/client_extra.go delete mode 100644 sdk/ai/azopenai/custom_client_embeddings.go delete mode 100644 sdk/ai/azopenai/custom_models_functions.go create mode 100644 sdk/ai/azopenai/internal/transform/cmd/main.go create mode 100644 sdk/ai/azopenai/internal/transform/transform.go create mode 100644 sdk/ai/azopenai/models_extra.go create mode 100644 sdk/ai/azopenai/testdata/rename_custom_and_tests.ps1 diff --git a/sdk/ai/azopenai/CHANGELOG.md b/sdk/ai/azopenai/CHANGELOG.md index 7e28b0c9ded4..1eba63768e31 100644 --- a/sdk/ai/azopenai/CHANGELOG.md +++ b/sdk/ai/azopenai/CHANGELOG.md @@ -4,9 +4,15 @@ ### Features Added +- `StreamOptions` parameter added to `ChatCompletionsOptions` and `CompletionsOptions`. +- `MaxCompletionTokens` parameter added to `ChatCompletionsOptions`. +- `ParallelToolCalls` parameter added to `ChatCompletionsOptions`. + ### Breaking Changes - `MongoDBChatExtensionParameters.Authentication`'s type has been changed to a `OnYourDataUsernameAndPasswordAuthenticationOptions`. (PR#23620) +- `GetCompletions` and `GetCompletionsStream` now receive different options (`CompletionsOptions` and `CompletionsStreamOptions` respectively) +- `GetChatCompletions` and `GetChatCompletionsStream` now receive different options (`ChatCompletionsOptions` and `ChatCompletionsStreamOptions` respectively) ### Bugs Fixed diff --git a/sdk/ai/azopenai/assets.json b/sdk/ai/azopenai/assets.json index 5938ffb9d3fa..053705df3bc7 100644 --- a/sdk/ai/azopenai/assets.json +++ b/sdk/ai/azopenai/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/ai/azopenai", - "Tag": "go/ai/azopenai_2bbe5b3db2" + "Tag": "go/ai/azopenai_cb43c9a227" } diff --git a/sdk/ai/azopenai/autorest.md b/sdk/ai/azopenai/autorest.md index d4b3b90a8f0d..ea643ebc89d1 100644 --- a/sdk/ai/azopenai/autorest.md +++ b/sdk/ai/azopenai/autorest.md @@ -297,7 +297,7 @@ directive: '.+?)runtime\.JoinPaths\\(client\\.endpoint, urlPath\\)', 'gs'); - return $.replace(re, "$1client.formatURL(urlPath, getDeployment(body))"); + return $.replace(re, "$1client.formatURL(urlPath, body.DeploymentName)"); - from: client.go where: $ transform: return $.replace(/runtime\.JoinPaths\(client\.endpoint, urlPath\)/g, "client.formatURL(urlPath, nil)"); @@ -322,14 +322,6 @@ directive: - from: swagger-document where: $.paths transform: delete $["/operations/images/{operationId}"] - - # Remove stream property from CompletionsOptions and ChatCompletionsOptions - - from: swagger-document - where: $.definitions["CompletionsOptions"] - transform: delete $.properties.stream; - - from: swagger-document - where: $.definitions["ChatCompletionsOptions"] - transform: delete $.properties.stream; ``` Changes for audio/whisper APIs. @@ -904,6 +896,16 @@ directive: transform: $["x-ms-client-name"] = "ListBatchesPage"; return $; ``` +```yaml +directive: + - from: swagger-document + where: $.definitions.ChatCompletionsOptions.properties.stream_options + transform: $["$ref"] = "#/definitions/ChatCompletionStreamOptions" + - from: swagger-document + where: $.definitions.CompletionsOptions.properties.stream_options + transform: $["$ref"] = "#/definitions/ChatCompletionStreamOptions" +``` + ## Doc updates Hoisting the description for an anonymous type. diff --git a/sdk/ai/azopenai/build.go b/sdk/ai/azopenai/build.go index 0786cc9f3e2a..0105fcaafbaa 100644 --- a/sdk/ai/azopenai/build.go +++ b/sdk/ai/azopenai/build.go @@ -9,6 +9,26 @@ //go:generate go mod tidy //go:generate goimports -w . +//go:generate pwsh ./testdata/rename_custom_and_tests.ps1 +//go:generate go run ./internal/transform/cmd -op rename-method -file client.go -name "(*Client).GetChatCompletions" -new-name getChatCompletions +//go:generate go run ./internal/transform/cmd -op rename-method -file client.go -name "(*Client).GetCompletions" -new-name getCompletions +//go:generate go run ./internal/transform/cmd -op rename-struct -file models.go -name ChatCompletionsOptions -new-name chatCompletionsOptions +//go:generate go run ./internal/transform/cmd -op rename-struct -file models.go -name CompletionsOptions -new-name completionsOptions +//go:generate go run ./internal/transform/cmd -op copy-struct -file models.go -name completionsOptions -new-name CompletionsOptions +//go:generate go run ./internal/transform/cmd -op copy-struct -file models.go -name completionsOptions -new-name CompletionsStreamOptions +//go:generate go run ./internal/transform/cmd -op remove-field -file models.go -struct CompletionsOptions -field Stream +//go:generate go run ./internal/transform/cmd -op remove-field -file models.go -struct CompletionsOptions -field StreamOptions +//go:generate go run ./internal/transform/cmd -op remove-field -file models.go -struct CompletionsStreamOptions -field Stream +//go:generate go run ./internal/transform/cmd -op copy-struct -file models.go -name chatCompletionsOptions -new-name ChatCompletionsOptions +//go:generate go run ./internal/transform/cmd -op copy-struct -file models.go -name chatCompletionsOptions -new-name ChatCompletionsStreamOptions +//go:generate go run ./internal/transform/cmd -op remove-field -file models.go -struct ChatCompletionsOptions -field Stream +//go:generate go run ./internal/transform/cmd -op remove-field -file models.go -struct ChatCompletionsOptions -field StreamOptions +//go:generate go run ./internal/transform/cmd -op remove-field -file models.go -struct ChatCompletionsStreamOptions -field Stream +//go:generate pwsh ./testdata/rename_custom_and_tests.ps1 -Reverse + +//go:generate go mod tidy +//go:generate goimports -w . + // running the tests that check that generation went the way we expected to. //go:go test -v ./internal diff --git a/sdk/ai/azopenai/client.go b/sdk/ai/azopenai/client.go index ac301d5fc159..29855e23bfba 100644 --- a/sdk/ai/azopenai/client.go +++ b/sdk/ai/azopenai/client.go @@ -35,7 +35,7 @@ type Client struct { // Upload. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - uploadID - The ID of the upload associated with this operation. // - data - The chunk of bytes for this Part. // - options - AddUploadPartOptions contains the optional parameters for the Client.AddUploadPart method. @@ -89,7 +89,7 @@ func (client *Client) addUploadPartHandleResponse(resp *http.Response) (AddUploa // CancelBatch - Gets details for a single batch specified by the given batchID. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - batchID - The identifier of the batch. // - options - CancelBatchOptions contains the optional parameters for the Client.CancelBatch method. func (client *Client) CancelBatch(ctx context.Context, batchID string, options *CancelBatchOptions) (CancelBatchResponse, error) { @@ -137,7 +137,7 @@ func (client *Client) cancelBatchHandleResponse(resp *http.Response) (CancelBatc // CancelUpload - Cancels the Upload. No Parts may be added after an Upload is cancelled. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - uploadID - The ID of the upload associated with this operation. // - options - CancelUploadOptions contains the optional parameters for the Client.CancelUpload method. func (client *Client) CancelUpload(ctx context.Context, uploadID string, options *CancelUploadOptions) (CancelUploadResponse, error) { @@ -189,7 +189,7 @@ func (client *Client) cancelUploadHandleResponse(resp *http.Response) (CancelUpl // object. No Parts may be added after an Upload is completed. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - uploadID - The ID of the upload associated with this operation. // - requestBody - The request body for the completion operation. // - options - CompleteUploadOptions contains the optional parameters for the Client.CompleteUpload method. @@ -242,7 +242,7 @@ func (client *Client) completeUploadHandleResponse(resp *http.Response) (Complet // job including job status. The ID of the result file is added to the response once complete. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - createBatchRequest - The specification of the batch to create and execute. // - options - CreateBatchOptions contains the optional parameters for the Client.CreateBatch method. func (client *Client) CreateBatch(ctx context.Context, createBatchRequest BatchCreateRequest, options *CreateBatchOptions) (CreateBatchResponse, error) { @@ -295,7 +295,7 @@ func (client *Client) createBatchHandleResponse(resp *http.Response) (CreateBatc // For guidance on the proper filename extensions for each purpose, please follow the documentation on creating a File. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - requestBody - The request body for the operation options. // - options - CreateUploadOptions contains the optional parameters for the Client.CreateUpload method. func (client *Client) CreateUpload(ctx context.Context, requestBody CreateUploadRequest, options *CreateUploadOptions) (CreateUploadResponse, error) { @@ -342,7 +342,7 @@ func (client *Client) createUploadHandleResponse(resp *http.Response) (CreateUpl // DeleteFile - Delete a previously uploaded file. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - fileID - The ID of the file to delete. // - options - DeleteFileOptions contains the optional parameters for the Client.DeleteFile method. func (client *Client) DeleteFile(ctx context.Context, fileID string, options *DeleteFileOptions) (DeleteFileResponse, error) { @@ -390,7 +390,7 @@ func (client *Client) deleteFileHandleResponse(resp *http.Response) (DeleteFileR // GenerateSpeechFromText - Generates text-to-speech audio from the input text. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - body - A representation of the request options that control the behavior of a text-to-speech operation. // - options - GenerateSpeechFromTextOptions contains the optional parameters for the Client.GenerateSpeechFromText method. func (client *Client) GenerateSpeechFromText(ctx context.Context, body SpeechGenerationOptions, options *GenerateSpeechFromTextOptions) (GenerateSpeechFromTextResponse, error) { @@ -413,12 +413,12 @@ func (client *Client) GenerateSpeechFromText(ctx context.Context, body SpeechGen // generateSpeechFromTextCreateRequest creates the GenerateSpeechFromText request. func (client *Client) generateSpeechFromTextCreateRequest(ctx context.Context, body SpeechGenerationOptions, options *GenerateSpeechFromTextOptions) (*policy.Request, error) { urlPath := "audio/speech" - req, err := runtime.NewRequest(ctx, http.MethodPost, client.formatURL(urlPath, getDeployment(body))) + req, err := runtime.NewRequest(ctx, http.MethodPost, client.formatURL(urlPath, body.DeploymentName)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-08-01-preview") + reqQP.Set("api-version", "2024-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() runtime.SkipBodyDownload(req) req.Raw().Header["Accept"] = []string{"application/octet-stream, application/json"} @@ -432,7 +432,7 @@ func (client *Client) generateSpeechFromTextCreateRequest(ctx context.Context, b // be transcribed in the written language corresponding to the language it was spoken in. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - deploymentID - Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure // OpenAI) to use for this request. // - file - The audio data to transcribe. This must be the binary content of a file in one of the supported media formats: flac, @@ -460,12 +460,12 @@ func (client *Client) getAudioTranscriptionInternal(ctx context.Context, file io // getAudioTranscriptionInternalCreateRequest creates the getAudioTranscriptionInternal request. func (client *Client) getAudioTranscriptionInternalCreateRequest(ctx context.Context, file io.ReadSeekCloser, body *getAudioTranscriptionInternalOptions) (*policy.Request, error) { urlPath := "audio/transcriptions" - req, err := runtime.NewRequest(ctx, http.MethodPost, client.formatURL(urlPath, getDeployment(body))) + req, err := runtime.NewRequest(ctx, http.MethodPost, client.formatURL(urlPath, body.DeploymentName)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-08-01-preview") + reqQP.Set("api-version", "2024-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := setMultipartFormData(req, file, *body); err != nil { @@ -487,7 +487,7 @@ func (client *Client) getAudioTranscriptionInternalHandleResponse(resp *http.Res // data. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - deploymentID - Specifies either the model deployment name (when using Azure OpenAI) or model name (when using non-Azure // OpenAI) to use for this request. // - file - The audio data to translate. This must be the binary content of a file in one of the supported media formats: flac, @@ -515,12 +515,12 @@ func (client *Client) getAudioTranslationInternal(ctx context.Context, file io.R // getAudioTranslationInternalCreateRequest creates the getAudioTranslationInternal request. func (client *Client) getAudioTranslationInternalCreateRequest(ctx context.Context, file io.ReadSeekCloser, body *getAudioTranslationInternalOptions) (*policy.Request, error) { urlPath := "audio/translations" - req, err := runtime.NewRequest(ctx, http.MethodPost, client.formatURL(urlPath, getDeployment(body))) + req, err := runtime.NewRequest(ctx, http.MethodPost, client.formatURL(urlPath, body.DeploymentName)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-08-01-preview") + reqQP.Set("api-version", "2024-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := setMultipartFormData(req, file, *body); err != nil { @@ -541,7 +541,7 @@ func (client *Client) getAudioTranslationInternalHandleResponse(resp *http.Respo // GetBatch - Gets details for a single batch specified by the given batchID. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - batchID - The identifier of the batch. // - options - GetBatchOptions contains the optional parameters for the Client.GetBatch method. func (client *Client) GetBatch(ctx context.Context, batchID string, options *GetBatchOptions) (GetBatchResponse, error) { @@ -586,15 +586,15 @@ func (client *Client) getBatchHandleResponse(resp *http.Response) (GetBatchRespo return result, nil } -// GetChatCompletions - Gets chat completions for the provided chat messages. Completions support a wide variety of tasks +// getChatCompletions - Gets chat completions for the provided chat messages. Completions support a wide variety of tasks // and generate text that continues from or "completes" provided prompt data. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - body - The configuration information for a chat completions request. Completions support a wide variety of tasks and generate // text that continues from or "completes" provided prompt data. -// - options - GetChatCompletionsOptions contains the optional parameters for the Client.GetChatCompletions method. -func (client *Client) GetChatCompletions(ctx context.Context, body ChatCompletionsOptions, options *GetChatCompletionsOptions) (GetChatCompletionsResponse, error) { +// - options - GetChatCompletionsOptions contains the optional parameters for the Client.getChatCompletions method. +func (client *Client) getChatCompletions(ctx context.Context, body chatCompletionsOptions, options *GetChatCompletionsOptions) (GetChatCompletionsResponse, error) { var err error req, err := client.getChatCompletionsCreateRequest(ctx, body, options) if err != nil { @@ -613,14 +613,14 @@ func (client *Client) GetChatCompletions(ctx context.Context, body ChatCompletio } // getChatCompletionsCreateRequest creates the GetChatCompletions request. -func (client *Client) getChatCompletionsCreateRequest(ctx context.Context, body ChatCompletionsOptions, options *GetChatCompletionsOptions) (*policy.Request, error) { +func (client *Client) getChatCompletionsCreateRequest(ctx context.Context, body chatCompletionsOptions, options *GetChatCompletionsOptions) (*policy.Request, error) { urlPath := "chat/completions" - req, err := runtime.NewRequest(ctx, http.MethodPost, client.formatURL(urlPath, getDeployment(body))) + req, err := runtime.NewRequest(ctx, http.MethodPost, client.formatURL(urlPath, body.DeploymentName)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-08-01-preview") + reqQP.Set("api-version", "2024-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, body); err != nil { @@ -638,15 +638,15 @@ func (client *Client) getChatCompletionsHandleResponse(resp *http.Response) (Get return result, nil } -// GetCompletions - Gets completions for the provided input prompts. Completions support a wide variety of tasks and generate +// getCompletions - Gets completions for the provided input prompts. Completions support a wide variety of tasks and generate // text that continues from or "completes" provided prompt data. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - body - The configuration information for a completions request. Completions support a wide variety of tasks and generate // text that continues from or "completes" provided prompt data. -// - options - GetCompletionsOptions contains the optional parameters for the Client.GetCompletions method. -func (client *Client) GetCompletions(ctx context.Context, body CompletionsOptions, options *GetCompletionsOptions) (GetCompletionsResponse, error) { +// - options - GetCompletionsOptions contains the optional parameters for the Client.getCompletions method. +func (client *Client) getCompletions(ctx context.Context, body completionsOptions, options *GetCompletionsOptions) (GetCompletionsResponse, error) { var err error req, err := client.getCompletionsCreateRequest(ctx, body, options) if err != nil { @@ -665,14 +665,14 @@ func (client *Client) GetCompletions(ctx context.Context, body CompletionsOption } // getCompletionsCreateRequest creates the GetCompletions request. -func (client *Client) getCompletionsCreateRequest(ctx context.Context, body CompletionsOptions, options *GetCompletionsOptions) (*policy.Request, error) { +func (client *Client) getCompletionsCreateRequest(ctx context.Context, body completionsOptions, options *GetCompletionsOptions) (*policy.Request, error) { urlPath := "completions" - req, err := runtime.NewRequest(ctx, http.MethodPost, client.formatURL(urlPath, getDeployment(body))) + req, err := runtime.NewRequest(ctx, http.MethodPost, client.formatURL(urlPath, body.DeploymentName)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-08-01-preview") + reqQP.Set("api-version", "2024-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, body); err != nil { @@ -693,7 +693,7 @@ func (client *Client) getCompletionsHandleResponse(resp *http.Response) (GetComp // GetEmbeddings - Return the embeddings for a given prompt. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - body - The configuration information for an embeddings request. Embeddings measure the relatedness of text strings and // are commonly used for search, clustering, recommendations, and other similar scenarios. // - options - GetEmbeddingsOptions contains the optional parameters for the Client.GetEmbeddings method. @@ -718,12 +718,12 @@ func (client *Client) GetEmbeddings(ctx context.Context, body EmbeddingsOptions, // getEmbeddingsCreateRequest creates the GetEmbeddings request. func (client *Client) getEmbeddingsCreateRequest(ctx context.Context, body EmbeddingsOptions, options *GetEmbeddingsOptions) (*policy.Request, error) { urlPath := "embeddings" - req, err := runtime.NewRequest(ctx, http.MethodPost, client.formatURL(urlPath, getDeployment(body))) + req, err := runtime.NewRequest(ctx, http.MethodPost, client.formatURL(urlPath, body.DeploymentName)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-08-01-preview") + reqQP.Set("api-version", "2024-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, body); err != nil { @@ -744,7 +744,7 @@ func (client *Client) getEmbeddingsHandleResponse(resp *http.Response) (GetEmbed // GetFile - Returns information about a specific file. Does not retrieve file content. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - fileID - The ID of the file to retrieve. // - options - GetFileOptions contains the optional parameters for the Client.GetFile method. func (client *Client) GetFile(ctx context.Context, fileID string, options *GetFileOptions) (GetFileResponse, error) { @@ -792,7 +792,7 @@ func (client *Client) getFileHandleResponse(resp *http.Response) (GetFileRespons // GetFileContent - Returns information about a specific file. Does not retrieve file content. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - fileID - The ID of the file to retrieve. // - options - GetFileContentOptions contains the optional parameters for the Client.GetFileContent method. func (client *Client) GetFileContent(ctx context.Context, fileID string, options *GetFileContentOptions) (GetFileContentResponse, error) { @@ -840,7 +840,7 @@ func (client *Client) getFileContentHandleResponse(resp *http.Response) (GetFile // GetImageGenerations - Creates an image given a prompt. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - body - Represents the request data used to generate images. // - options - GetImageGenerationsOptions contains the optional parameters for the Client.GetImageGenerations method. func (client *Client) GetImageGenerations(ctx context.Context, body ImageGenerationOptions, options *GetImageGenerationsOptions) (GetImageGenerationsResponse, error) { @@ -864,12 +864,12 @@ func (client *Client) GetImageGenerations(ctx context.Context, body ImageGenerat // getImageGenerationsCreateRequest creates the GetImageGenerations request. func (client *Client) getImageGenerationsCreateRequest(ctx context.Context, body ImageGenerationOptions, options *GetImageGenerationsOptions) (*policy.Request, error) { urlPath := "images/generations" - req, err := runtime.NewRequest(ctx, http.MethodPost, client.formatURL(urlPath, getDeployment(body))) + req, err := runtime.NewRequest(ctx, http.MethodPost, client.formatURL(urlPath, body.DeploymentName)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-08-01-preview") + reqQP.Set("api-version", "2024-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, body); err != nil { @@ -890,7 +890,7 @@ func (client *Client) getImageGenerationsHandleResponse(resp *http.Response) (Ge // listBatches - Gets a list of all batches owned by the Azure OpenAI resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - options - ListBatchesOptions contains the optional parameters for the Client.listBatches method. func (client *Client) listBatches(ctx context.Context, options *ListBatchesOptions) (ListBatchesResponse, error) { var err error @@ -941,7 +941,7 @@ func (client *Client) listBatchesHandleResponse(resp *http.Response) (ListBatche // ListFiles - Gets a list of previously uploaded files. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - options - ListFilesOptions contains the optional parameters for the Client.ListFiles method. func (client *Client) ListFiles(ctx context.Context, options *ListFilesOptions) (ListFilesResponse, error) { var err error @@ -989,7 +989,7 @@ func (client *Client) listFilesHandleResponse(resp *http.Response) (ListFilesRes // UploadFile - Uploads a file for use by other operations. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-08-01-preview +// Generated from API version 2024-10-01-preview // - file - The file data (not filename) to upload. // - purpose - The intended purpose of the file. // - options - UploadFileOptions contains the optional parameters for the Client.UploadFile method. diff --git a/sdk/ai/azopenai/client_chat_completions_extensions_test.go b/sdk/ai/azopenai/client_chat_completions_extensions_test.go index 5616d472b029..01979e2fc3c0 100644 --- a/sdk/ai/azopenai/client_chat_completions_extensions_test.go +++ b/sdk/ai/azopenai/client_chat_completions_extensions_test.go @@ -43,7 +43,7 @@ func TestChatCompletions_extensions_bringYourOwnData(t *testing.T) { func TestChatExtensionsStreaming_extensions_bringYourOwnData(t *testing.T) { client := newTestClient(t, azureOpenAI.ChatCompletionsOYD.Endpoint) - streamResp, err := client.GetChatCompletionsStream(context.Background(), azopenai.ChatCompletionsOptions{ + streamResp, err := client.GetChatCompletionsStream(context.Background(), azopenai.ChatCompletionsStreamOptions{ Messages: []azopenai.ChatRequestMessageClassification{ &azopenai.ChatRequestUserMessage{Content: azopenai.NewChatRequestUserMessageContent("What does PR complete mean?")}, }, diff --git a/sdk/ai/azopenai/client_chat_completions_test.go b/sdk/ai/azopenai/client_chat_completions_test.go index 850ed7413c13..743f884b8dbc 100644 --- a/sdk/ai/azopenai/client_chat_completions_test.go +++ b/sdk/ai/azopenai/client_chat_completions_test.go @@ -38,6 +38,19 @@ func newTestChatCompletionOptions(deployment string) azopenai.ChatCompletionsOpt } } +func newTestChatCompletionStreamOptions(deployment string) azopenai.ChatCompletionsStreamOptions { + return azopenai.ChatCompletionsStreamOptions{ + Messages: []azopenai.ChatRequestMessageClassification{ + &azopenai.ChatRequestUserMessage{ + Content: azopenai.NewChatRequestUserMessageContent("Count to 10, with a comma between each number, no newlines and a period at the end. E.g., 1, 2, 3, ..."), + }, + }, + MaxTokens: to.Ptr(int32(1024)), + Temperature: to.Ptr(float32(0.0)), + DeploymentName: &deployment, + } +} + var expectedContent = "1, 2, 3, 4, 5, 6, 7, 8, 9, 10." var expectedRole = azopenai.ChatRoleAssistant @@ -60,10 +73,22 @@ func TestClient_GetChatCompletions(t *testing.T) { CompletionTokens: to.Ptr(int32(29)), PromptTokens: to.Ptr(int32(42)), TotalTokens: to.Ptr(int32(71)), + CompletionTokensDetails: &azopenai.CompletionsUsageCompletionTokensDetails{ + ReasoningTokens: to.Ptr(int32(0)), + }, + PromptTokensDetails: &azopenai.CompletionsUsagePromptTokensDetails{ + CachedTokens: to.Ptr(int32(0)), + }, }, Model: &returnedModel, } + if checkRAI { + // There is a discrepancy in how these are returned between Azure and OpenAI. + expected.Usage.CompletionTokensDetails = nil + expected.Usage.PromptTokensDetails = nil + } + resp, err := client.GetChatCompletions(context.Background(), newTestChatCompletionOptions(deployment), nil) skipNowIfThrottled(t, err) require.NoError(t, err) @@ -208,7 +233,7 @@ func TestClient_GetChatCompletions_LogitBias(t *testing.T) { func TestClient_GetChatCompletionsStream(t *testing.T) { testFn := func(t *testing.T, client *azopenai.Client, deployment string, returnedDeployment string) { - streamResp, err := client.GetChatCompletionsStream(context.Background(), newTestChatCompletionOptions(deployment), nil) + streamResp, err := client.GetChatCompletionsStream(context.Background(), newTestChatCompletionStreamOptions(deployment), nil) if respErr := (*azcore.ResponseError)(nil); errors.As(err, &respErr) && respErr.StatusCode == http.StatusTooManyRequests { t.Skipf("OpenAI resource overloaded, skipping this test") @@ -301,14 +326,14 @@ func TestClient_GetChatCompletionsStream_Error(t *testing.T) { t.Run("AzureOpenAI", func(t *testing.T) { client := newBogusAzureOpenAIClient(t) - streamResp, err := client.GetChatCompletionsStream(context.Background(), newTestChatCompletionOptions(azureOpenAI.ChatCompletions.Model), nil) + streamResp, err := client.GetChatCompletionsStream(context.Background(), newTestChatCompletionStreamOptions(azureOpenAI.ChatCompletions.Model), nil) require.Empty(t, streamResp) assertResponseIsError(t, err) }) t.Run("OpenAI", func(t *testing.T) { client := newBogusOpenAIClient(t) - streamResp, err := client.GetChatCompletionsStream(context.Background(), newTestChatCompletionOptions(openAI.ChatCompletions.Model), nil) + streamResp, err := client.GetChatCompletionsStream(context.Background(), newTestChatCompletionStreamOptions(openAI.ChatCompletions.Model), nil) require.Empty(t, streamResp) assertResponseIsError(t, err) }) diff --git a/sdk/ai/azopenai/client_extra.go b/sdk/ai/azopenai/client_extra.go new file mode 100644 index 000000000000..f305552ede47 --- /dev/null +++ b/sdk/ai/azopenai/client_extra.go @@ -0,0 +1,262 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +package azopenai + +/** + * This file is required for the generated code to be valid. The difference between the files + * with a custom_ prefix and ones like this with an _extra suffix is that the _extra files are + * not modified by the customization scripts, so they can be run safely. Files with the custom_ + * would change if they weren't ignored, so we have to keep them separate. + */ + +import ( + "bytes" + "encoding/json" + "fmt" + "io" + "mime/multipart" + "net/http" + "net/url" + "strings" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" +) + +type clientData struct { + endpoint string + azure bool +} + +func (client *Client) newError(resp *http.Response) error { + return newContentFilterResponseError(resp) +} + +func newContentFilterResponseError(resp *http.Response) error { + //nolint this error is an azcore.ResponseError by definition. + respErr := runtime.NewResponseError(resp).(*azcore.ResponseError) + + if respErr.ErrorCode != "content_filter" { + return respErr + } + + body, err := runtime.Payload(resp) + + if err != nil { + return err + } + + var envelope *struct { + Error struct { + InnerError struct { + ContentFilterResults *ContentFilterResults `json:"content_filter_result"` + } `json:"innererror"` + } + } + + if err := json.Unmarshal(body, &envelope); err != nil { + return err + } + + return &ContentFilterResponseError{ + ResponseError: *respErr, + ContentFilterResults: envelope.Error.InnerError.ContentFilterResults, + } +} + +func (client *Client) formatURL(path string, deployment *string) string { + switch path { + // https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference#image-generation + case "/images/generations:submit": + return runtime.JoinPaths(client.endpoint, path) + default: + if client.azure { + if deployment != nil { + escapedDeplID := url.PathEscape(*deployment) + return runtime.JoinPaths(client.endpoint, "openai", "deployments", escapedDeplID, path) + } else { + return runtime.JoinPaths(client.endpoint, "openai", path) + } + } + + return runtime.JoinPaths(client.endpoint, path) + } +} + +// deserializeAudioTranscription handles deserializing the content if it's text/plain +// or a JSON object. +func deserializeAudioTranscription(resp *http.Response) (AudioTranscription, error) { + defer func() { + _ = resp.Request.Body.Close() + }() + + contentType := resp.Header.Get("Content-type") + + if strings.Contains(contentType, "text/plain") { + body, err := io.ReadAll(resp.Body) + + if err != nil { + return AudioTranscription{}, err + } + + return AudioTranscription{ + Text: to.Ptr(string(body)), + }, nil + } + + var result *AudioTranscription + if err := runtime.UnmarshalAsJSON(resp, &result); err != nil { + return AudioTranscription{}, err + } + + return *result, nil +} + +func getAudioTranscriptionInternalHandleResponse(resp *http.Response) (getAudioTranscriptionInternalResponse, error) { + at, err := deserializeAudioTranscription(resp) + + if err != nil { + return getAudioTranscriptionInternalResponse{}, err + } + + return getAudioTranscriptionInternalResponse{AudioTranscription: at}, nil +} + +// deserializeAudioTranslation handles deserializing the content if it's text/plain +// or a JSON object. +func deserializeAudioTranslation(resp *http.Response) (AudioTranslation, error) { + defer func() { + _ = resp.Request.Body.Close() + }() + + contentType := resp.Header.Get("Content-type") + + if strings.Contains(contentType, "text/plain") { + body, err := io.ReadAll(resp.Body) + + if err != nil { + return AudioTranslation{}, err + } + + return AudioTranslation{ + Text: to.Ptr(string(body)), + }, nil + } + + var result *AudioTranslation + if err := runtime.UnmarshalAsJSON(resp, &result); err != nil { + return AudioTranslation{}, err + } + + return *result, nil +} + +func getAudioTranslationInternalHandleResponse(resp *http.Response) (getAudioTranslationInternalResponse, error) { + at, err := deserializeAudioTranslation(resp) + + if err != nil { + return getAudioTranslationInternalResponse{}, err + } + + return getAudioTranslationInternalResponse{AudioTranslation: at}, nil +} + +func writeField[T interface { + string | float32 | AudioTranscriptionFormat | AudioTranslationFormat +}](writer *multipart.Writer, fieldName string, v *T) error { + if v == nil { + return nil + } + + switch v2 := any(v).(type) { + case *string: + return writer.WriteField(fieldName, *v2) + case *float32: + return writer.WriteField(fieldName, fmt.Sprintf("%f", *v2)) + case *AudioTranscriptionFormat: + return writer.WriteField(fieldName, string(*v2)) + case *AudioTranslationFormat: + return writer.WriteField(fieldName, string(*v2)) + default: + return fmt.Errorf("no handler for type %T", v) + } +} + +func setMultipartFormData[T getAudioTranscriptionInternalOptions | getAudioTranslationInternalOptions | UploadFileOptions](req *policy.Request, file io.ReadSeekCloser, options T) error { + body := bytes.Buffer{} + writer := multipart.NewWriter(&body) + + writeContent := func(fieldname, filename string, file io.ReadSeekCloser) error { + fd, err := writer.CreateFormFile(fieldname, filename) + + if err != nil { + return err + } + + if _, err := io.Copy(fd, file); err != nil { + return err + } + + return err + } + + var filename = "audio.mp3" + + switch opt := any(options).(type) { + case getAudioTranscriptionInternalOptions: + if opt.Filename != nil { + filename = *opt.Filename + } + case getAudioTranslationInternalOptions: + if opt.Filename != nil { + filename = *opt.Filename + } + } + + if err := writeContent("file", filename, file); err != nil { + return err + } + + switch v := any(options).(type) { + case getAudioTranslationInternalOptions: + if err := writeField(writer, "model", v.DeploymentName); err != nil { + return err + } + if err := writeField(writer, "prompt", v.Prompt); err != nil { + return err + } + if err := writeField(writer, "response_format", v.ResponseFormat); err != nil { + return err + } + if err := writeField(writer, "temperature", v.Temperature); err != nil { + return err + } + case getAudioTranscriptionInternalOptions: + if err := writeField(writer, "language", v.Language); err != nil { + return err + } + if err := writeField(writer, "model", v.DeploymentName); err != nil { + return err + } + if err := writeField(writer, "prompt", v.Prompt); err != nil { + return err + } + if err := writeField(writer, "response_format", v.ResponseFormat); err != nil { + return err + } + if err := writeField(writer, "temperature", v.Temperature); err != nil { + return err + } + default: + return fmt.Errorf("failed to serialize multipart for unhandled type %T", body) + } + + if err := writer.Close(); err != nil { + return err + } + + return req.SetBody(streaming.NopCloser(bytes.NewReader(body.Bytes())), writer.FormDataContentType()) +} diff --git a/sdk/ai/azopenai/client_functions_test.go b/sdk/ai/azopenai/client_functions_test.go index a8995e66c2bd..7c317cf9de41 100644 --- a/sdk/ai/azopenai/client_functions_test.go +++ b/sdk/ai/azopenai/client_functions_test.go @@ -216,7 +216,7 @@ func TestGetChatCompletions_usingFunctions_streaming(t *testing.T) { require.NoError(t, err) testFn := func(t *testing.T, epm endpointWithModel) { - body := azopenai.ChatCompletionsOptions{ + body := azopenai.ChatCompletionsStreamOptions{ DeploymentName: &epm.Model, Messages: []azopenai.ChatRequestMessageClassification{ &azopenai.ChatRequestAssistantMessage{ diff --git a/sdk/ai/azopenai/custom_client.go b/sdk/ai/azopenai/custom_client.go index 28c87273e206..3e5183c3869d 100644 --- a/sdk/ai/azopenai/custom_client.go +++ b/sdk/ai/azopenai/custom_client.go @@ -14,13 +14,12 @@ package azopenai import ( "context" - "encoding/json" "net/http" - "net/url" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" ) const ( @@ -35,7 +34,7 @@ type ClientOptions struct { azcore.ClientOptions } -const apiVersion = "2024-08-01-preview" +const apiVersion = "2024-10-01-preview" // NewClient creates a new instance of Client that connects to an Azure OpenAI endpoint. // - endpoint - Azure OpenAI service endpoint, for example: https://{your-resource-name}.openai.azure.com @@ -146,51 +145,124 @@ func (b *openAIPolicy) Do(req *policy.Request) (*http.Response, error) { return req.Next() } -// Methods that return streaming response -type streamCompletionsOptions struct { - // we strip out the 'stream' field from the options exposed to the customer so - // now we need to add it back in. - any - Stream bool `json:"stream"` +func (options *CompletionsOptions) toWireType() completionsOptions { + return completionsOptions{ + Stream: to.Ptr(false), + StreamOptions: nil, + Prompt: options.Prompt, + BestOf: options.BestOf, + MaxTokens: options.MaxTokens, + Temperature: options.Temperature, + TopP: options.TopP, + FrequencyPenalty: options.FrequencyPenalty, + PresencePenalty: options.PresencePenalty, + Stop: options.Stop, + Echo: options.Echo, + LogitBias: options.LogitBias, + LogProbs: options.LogProbs, + DeploymentName: options.DeploymentName, + N: options.N, + Seed: options.Seed, + Suffix: options.Suffix, + User: options.User, + } } -func (o streamCompletionsOptions) MarshalJSON() ([]byte, error) { - bytes, err := json.Marshal(o.any) +func (options *CompletionsStreamOptions) toWireType() completionsOptions { + return completionsOptions{ + Stream: to.Ptr(true), + StreamOptions: options.StreamOptions, + Prompt: options.Prompt, + BestOf: options.BestOf, + MaxTokens: options.MaxTokens, + Temperature: options.Temperature, + TopP: options.TopP, + FrequencyPenalty: options.FrequencyPenalty, + PresencePenalty: options.PresencePenalty, + Stop: options.Stop, + Echo: options.Echo, + LogitBias: options.LogitBias, + LogProbs: options.LogProbs, + DeploymentName: options.DeploymentName, + N: options.N, + Seed: options.Seed, + Suffix: options.Suffix, + User: options.User, + } +} - if err != nil { - return nil, err +func (options *ChatCompletionsOptions) toWireType() chatCompletionsOptions { + return chatCompletionsOptions{ + Stream: to.Ptr(false), + StreamOptions: nil, + Messages: options.Messages, + AzureExtensionsOptions: options.AzureExtensionsOptions, + Enhancements: options.Enhancements, + FrequencyPenalty: options.FrequencyPenalty, + FunctionCall: options.FunctionCall, + Functions: options.Functions, + LogitBias: options.LogitBias, + LogProbs: options.LogProbs, + MaxCompletionTokens: options.MaxCompletionTokens, + MaxTokens: options.MaxTokens, + DeploymentName: options.DeploymentName, + N: options.N, + ParallelToolCalls: options.ParallelToolCalls, + PresencePenalty: options.PresencePenalty, + ResponseFormat: options.ResponseFormat, + Seed: options.Seed, + Stop: options.Stop, + Temperature: options.Temperature, + ToolChoice: options.ToolChoice, + Tools: options.Tools, + TopLogProbs: options.TopLogProbs, + TopP: options.TopP, + User: options.User, } +} - objectMap := make(map[string]any) - err = json.Unmarshal(bytes, &objectMap) - if err != nil { - return nil, err +func (options *ChatCompletionsStreamOptions) toWireType() chatCompletionsOptions { + return chatCompletionsOptions{ + Stream: to.Ptr(true), + StreamOptions: options.StreamOptions, + Messages: options.Messages, + AzureExtensionsOptions: options.AzureExtensionsOptions, + Enhancements: options.Enhancements, + FrequencyPenalty: options.FrequencyPenalty, + FunctionCall: options.FunctionCall, + Functions: options.Functions, + LogitBias: options.LogitBias, + LogProbs: options.LogProbs, + MaxCompletionTokens: options.MaxCompletionTokens, + MaxTokens: options.MaxTokens, + DeploymentName: options.DeploymentName, + N: options.N, + ParallelToolCalls: options.ParallelToolCalls, + PresencePenalty: options.PresencePenalty, + ResponseFormat: options.ResponseFormat, + Seed: options.Seed, + Stop: options.Stop, + Temperature: options.Temperature, + ToolChoice: options.ToolChoice, + Tools: options.Tools, + TopLogProbs: options.TopLogProbs, + TopP: options.TopP, + User: options.User, } - objectMap["stream"] = o.Stream - return json.Marshal(objectMap) } // GetCompletionsStream - Return the completions for a given prompt as a sequence of events. // If the operation fails it returns an *azcore.ResponseError type. // - options - GetCompletionsOptions contains the optional parameters for the Client.GetCompletions method. -func (client *Client) GetCompletionsStream(ctx context.Context, body CompletionsOptions, options *GetCompletionsStreamOptions) (GetCompletionsStreamResponse, error) { - req, err := client.getCompletionsCreateRequest(ctx, body, &GetCompletionsOptions{}) - +func (client *Client) GetCompletionsStream(ctx context.Context, body CompletionsStreamOptions, options *GetCompletionsStreamOptions) (GetCompletionsStreamResponse, error) { + req, err := client.getCompletionsCreateRequest(ctx, body.toWireType(), &GetCompletionsOptions{}) if err != nil { return GetCompletionsStreamResponse{}, err } - if err := runtime.MarshalAsJSON(req, streamCompletionsOptions{ - any: body, - Stream: true, - }); err != nil { - return GetCompletionsStreamResponse{}, err - } - runtime.SkipBodyDownload(req) resp, err := client.internal.Pipeline().Do(req) - if err != nil { return GetCompletionsStreamResponse{}, err } @@ -205,27 +277,28 @@ func (client *Client) GetCompletionsStream(ctx context.Context, body Completions }, nil } +// GetCompletions - Gets completions for the provided input prompts. Completions support a wide variety of tasks and generate +// text that continues from or "completes" provided prompt data. +// If the operation fails it returns an *azcore.ResponseError type. +// - body - The configuration information for a completions request. Completions support a wide variety of tasks and generate +// text that continues from or "completes" provided prompt data. +// - options - GetCompletionsOptions contains the optional parameters for the Client.getCompletions method. +func (client *Client) GetCompletions(ctx context.Context, body CompletionsOptions, options *GetCompletionsOptions) (GetCompletionsResponse, error) { + return client.getCompletions(ctx, body.toWireType(), options) +} + // GetChatCompletionsStream - Return the chat completions for a given prompt as a sequence of events. // If the operation fails it returns an *azcore.ResponseError type. // - options - GetCompletionsOptions contains the optional parameters for the Client.GetCompletions method. -func (client *Client) GetChatCompletionsStream(ctx context.Context, body ChatCompletionsOptions, options *GetChatCompletionsStreamOptions) (GetChatCompletionsStreamResponse, error) { - req, err := client.getChatCompletionsCreateRequest(ctx, body, &GetChatCompletionsOptions{}) - +func (client *Client) GetChatCompletionsStream(ctx context.Context, body ChatCompletionsStreamOptions, options *GetChatCompletionsStreamOptions) (GetChatCompletionsStreamResponse, error) { + req, err := client.getChatCompletionsCreateRequest(ctx, body.toWireType(), &GetChatCompletionsOptions{}) if err != nil { return GetChatCompletionsStreamResponse{}, err } - if err := runtime.MarshalAsJSON(req, streamCompletionsOptions{ - any: body, - Stream: true, - }); err != nil { - return GetChatCompletionsStreamResponse{}, err - } - runtime.SkipBodyDownload(req) resp, err := client.internal.Pipeline().Do(req) - if err != nil { return GetChatCompletionsStreamResponse{}, err } @@ -240,84 +313,14 @@ func (client *Client) GetChatCompletionsStream(ctx context.Context, body ChatCom }, nil } -func (client *Client) formatURL(path string, deployment *string) string { - switch path { - // https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference#image-generation - case "/images/generations:submit": - return runtime.JoinPaths(client.endpoint, path) - default: - if client.azure { - if deployment != nil { - escapedDeplID := url.PathEscape(*deployment) - return runtime.JoinPaths(client.endpoint, "openai", "deployments", escapedDeplID, path) - } else { - return runtime.JoinPaths(client.endpoint, "openai", path) - } - } - - return runtime.JoinPaths(client.endpoint, path) - } -} - -func (client *Client) newError(resp *http.Response) error { - return newContentFilterResponseError(resp) -} - -type clientData struct { - endpoint string - azure bool -} - -func getDeployment[T SpeechGenerationOptions | AudioTranscriptionOptions | AudioTranslationOptions | ChatCompletionsOptions | CompletionsOptions | EmbeddingsOptions | *getAudioTranscriptionInternalOptions | *getAudioTranslationInternalOptions | ImageGenerationOptions](v T) *string { - switch a := any(v).(type) { - case AudioTranscriptionOptions: - return a.DeploymentName - case AudioTranslationOptions: - return a.DeploymentName - case ChatCompletionsOptions: - return a.DeploymentName - case CompletionsOptions: - return a.DeploymentName - case EmbeddingsOptions: - return a.DeploymentName - case *getAudioTranscriptionInternalOptions: - return a.DeploymentName - case *getAudioTranslationInternalOptions: - return a.DeploymentName - case ImageGenerationOptions: - return a.DeploymentName - } - - return nil -} - -// ChatRequestUserMessageContent contains the user prompt - either as a single string -// or as a []ChatCompletionRequestMessageContentPart, enabling images and text as input. -// -// NOTE: This should be created using [azopenai.NewChatRequestUserMessageContent] -type ChatRequestUserMessageContent struct { - value any -} - -// NewChatRequestUserMessageContent creates a [azopenai.ChatRequestUserMessageContent]. -func NewChatRequestUserMessageContent[T string | []ChatCompletionRequestMessageContentPartClassification](v T) *ChatRequestUserMessageContent { - switch actualV := any(v).(type) { - case string: - return &ChatRequestUserMessageContent{value: &actualV} - case []ChatCompletionRequestMessageContentPartClassification: - return &ChatRequestUserMessageContent{value: actualV} - } - return &ChatRequestUserMessageContent{} -} - -// MarshalJSON implements the json.Marshaller interface for type Error. -func (c ChatRequestUserMessageContent) MarshalJSON() ([]byte, error) { - return json.Marshal(c.value) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ChatRequestUserMessageContent. -func (c *ChatRequestUserMessageContent) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &c.value) +// GetChatCompletions - Gets chat completions for the provided chat messages. Completions support a wide variety of tasks +// and generate text that continues from or "completes" provided prompt data. +// If the operation fails it returns an *azcore.ResponseError type. +// - body - The configuration information for a chat completions request. Completions support a wide variety of tasks and generate +// text that continues from or "completes" provided prompt data. +// - options - GetChatCompletionsOptions contains the optional parameters for the Client.getChatCompletions method. +func (client *Client) GetChatCompletions(ctx context.Context, body ChatCompletionsOptions, options *GetChatCompletionsOptions) (GetChatCompletionsResponse, error) { + return client.getChatCompletions(ctx, body.toWireType(), options) } func allowInsecure(options *ClientOptions) bool { diff --git a/sdk/ai/azopenai/custom_client_audio.go b/sdk/ai/azopenai/custom_client_audio.go index 59d93ee8876b..5e747872209f 100644 --- a/sdk/ai/azopenai/custom_client_audio.go +++ b/sdk/ai/azopenai/custom_client_audio.go @@ -9,16 +9,8 @@ package azopenai import ( "bytes" "context" - "fmt" - "io" - "mime/multipart" - "net/http" - "strings" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" ) // GetAudioTranscriptionOptions contains the optional parameters for the [Client.GetAudioTranscription] method. @@ -89,178 +81,3 @@ func (client *Client) GetAudioTranslation(ctx context.Context, body AudioTransla return GetAudioTranslationResponse(resp), nil } - -func setMultipartFormData[T getAudioTranscriptionInternalOptions | getAudioTranslationInternalOptions | UploadFileOptions](req *policy.Request, file io.ReadSeekCloser, options T) error { - body := bytes.Buffer{} - writer := multipart.NewWriter(&body) - - writeContent := func(fieldname, filename string, file io.ReadSeekCloser) error { - fd, err := writer.CreateFormFile(fieldname, filename) - - if err != nil { - return err - } - - if _, err := io.Copy(fd, file); err != nil { - return err - } - - return err - } - - var filename = "audio.mp3" - - switch opt := any(options).(type) { - case getAudioTranscriptionInternalOptions: - if opt.Filename != nil { - filename = *opt.Filename - } - case getAudioTranslationInternalOptions: - if opt.Filename != nil { - filename = *opt.Filename - } - } - - if err := writeContent("file", filename, file); err != nil { - return err - } - - switch v := any(options).(type) { - case getAudioTranslationInternalOptions: - if err := writeField(writer, "model", v.DeploymentName); err != nil { - return err - } - if err := writeField(writer, "prompt", v.Prompt); err != nil { - return err - } - if err := writeField(writer, "response_format", v.ResponseFormat); err != nil { - return err - } - if err := writeField(writer, "temperature", v.Temperature); err != nil { - return err - } - case getAudioTranscriptionInternalOptions: - if err := writeField(writer, "language", v.Language); err != nil { - return err - } - if err := writeField(writer, "model", v.DeploymentName); err != nil { - return err - } - if err := writeField(writer, "prompt", v.Prompt); err != nil { - return err - } - if err := writeField(writer, "response_format", v.ResponseFormat); err != nil { - return err - } - if err := writeField(writer, "temperature", v.Temperature); err != nil { - return err - } - default: - return fmt.Errorf("failed to serialize multipart for unhandled type %T", body) - } - - if err := writer.Close(); err != nil { - return err - } - - return req.SetBody(streaming.NopCloser(bytes.NewReader(body.Bytes())), writer.FormDataContentType()) -} - -func getAudioTranscriptionInternalHandleResponse(resp *http.Response) (getAudioTranscriptionInternalResponse, error) { - at, err := deserializeAudioTranscription(resp) - - if err != nil { - return getAudioTranscriptionInternalResponse{}, err - } - - return getAudioTranscriptionInternalResponse{AudioTranscription: at}, nil -} - -func getAudioTranslationInternalHandleResponse(resp *http.Response) (getAudioTranslationInternalResponse, error) { - at, err := deserializeAudioTranslation(resp) - - if err != nil { - return getAudioTranslationInternalResponse{}, err - } - - return getAudioTranslationInternalResponse{AudioTranslation: at}, nil -} - -// deserializeAudioTranscription handles deserializing the content if it's text/plain -// or a JSON object. -func deserializeAudioTranscription(resp *http.Response) (AudioTranscription, error) { - defer func() { - _ = resp.Request.Body.Close() - }() - - contentType := resp.Header.Get("Content-type") - - if strings.Contains(contentType, "text/plain") { - body, err := io.ReadAll(resp.Body) - - if err != nil { - return AudioTranscription{}, err - } - - return AudioTranscription{ - Text: to.Ptr(string(body)), - }, nil - } - - var result *AudioTranscription - if err := runtime.UnmarshalAsJSON(resp, &result); err != nil { - return AudioTranscription{}, err - } - - return *result, nil -} - -// deserializeAudioTranslation handles deserializing the content if it's text/plain -// or a JSON object. -func deserializeAudioTranslation(resp *http.Response) (AudioTranslation, error) { - defer func() { - _ = resp.Request.Body.Close() - }() - - contentType := resp.Header.Get("Content-type") - - if strings.Contains(contentType, "text/plain") { - body, err := io.ReadAll(resp.Body) - - if err != nil { - return AudioTranslation{}, err - } - - return AudioTranslation{ - Text: to.Ptr(string(body)), - }, nil - } - - var result *AudioTranslation - if err := runtime.UnmarshalAsJSON(resp, &result); err != nil { - return AudioTranslation{}, err - } - - return *result, nil -} - -func writeField[T interface { - string | float32 | AudioTranscriptionFormat | AudioTranslationFormat -}](writer *multipart.Writer, fieldName string, v *T) error { - if v == nil { - return nil - } - - switch v2 := any(v).(type) { - case *string: - return writer.WriteField(fieldName, *v2) - case *float32: - return writer.WriteField(fieldName, fmt.Sprintf("%f", *v2)) - case *AudioTranscriptionFormat: - return writer.WriteField(fieldName, string(*v2)) - case *AudioTranslationFormat: - return writer.WriteField(fieldName, string(*v2)) - default: - return fmt.Errorf("no handler for type %T", v) - } -} diff --git a/sdk/ai/azopenai/custom_client_embeddings.go b/sdk/ai/azopenai/custom_client_embeddings.go deleted file mode 100644 index 1c8dff76489d..000000000000 --- a/sdk/ai/azopenai/custom_client_embeddings.go +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. - -package azopenai - -import ( - "encoding/json" -) - -// EmbeddingItem - Representation of a single embeddings relatedness comparison. -type EmbeddingItem struct { - // List of embeddings value for the input prompt. These represent a measurement of the vector-based relatedness - // of the provided input when when [EmbeddingEncodingFormatFloat] is specified. - Embedding []float32 - - // EmbeddingBase64 represents the Embeddings when [EmbeddingEncodingFormatBase64] is specified. - EmbeddingBase64 string - - // REQUIRED; Index of the prompt to which the EmbeddingItem corresponds. - Index *int32 - - // The object type which is always 'embedding'. - Object string -} - -func deserializeEmbeddingsArray(msg json.RawMessage, embeddingItem *EmbeddingItem) error { - if len(msg) == 0 { - return nil - } - - if msg[0] == '"' && len(msg) > 2 && msg[len(msg)-1] == '"' { - var s = string(msg) - embeddingItem.EmbeddingBase64 = s[1 : len(s)-1] - return nil - } - - return json.Unmarshal(msg, &embeddingItem.Embedding) -} diff --git a/sdk/ai/azopenai/custom_client_test.go b/sdk/ai/azopenai/custom_client_test.go index cbdd861c1f6c..e31d70658d31 100644 --- a/sdk/ai/azopenai/custom_client_test.go +++ b/sdk/ai/azopenai/custom_client_test.go @@ -21,7 +21,7 @@ import ( func TestGetCompletionsStream(t *testing.T) { testFn := func(t *testing.T, epm endpointWithModel) { - body := azopenai.CompletionsOptions{ + body := azopenai.CompletionsStreamOptions{ Prompt: []string{"What is Azure OpenAI?"}, MaxTokens: to.Ptr(int32(2048)), Temperature: to.Ptr(float32(0.0)), @@ -96,7 +96,7 @@ func TestClient_GetCompletions_Error(t *testing.T) { doTest := func(t *testing.T, model string) { client := newBogusAzureOpenAIClient(t) - streamResp, err := client.GetCompletionsStream(context.Background(), azopenai.CompletionsOptions{ + streamResp, err := client.GetCompletionsStream(context.Background(), azopenai.CompletionsStreamOptions{ Prompt: []string{"What is Azure OpenAI?"}, MaxTokens: to.Ptr(int32(2048 - 127)), Temperature: to.Ptr(float32(0.0)), diff --git a/sdk/ai/azopenai/custom_models.go b/sdk/ai/azopenai/custom_models.go index 29f81ae1fa15..f3f190f73ad8 100644 --- a/sdk/ai/azopenai/custom_models.go +++ b/sdk/ai/azopenai/custom_models.go @@ -6,15 +6,6 @@ package azopenai -import ( - "encoding/json" - "fmt" - "net/http" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" -) - // Models for methods that return streaming response // GetCompletionsStreamOptions contains the optional parameters for the [Client.GetCompletionsStream] method. @@ -53,72 +44,6 @@ type ImageGenerationsDataItem struct { URL *string `json:"url"` } -// ContentFilterResponseError is an error as a result of a request being filtered. -type ContentFilterResponseError struct { - azcore.ResponseError - - // ContentFilterResults contains Information about the content filtering category, if it has been detected. - ContentFilterResults *ContentFilterResults -} - -// ContentFilterResults are the content filtering results for a [ContentFilterResponseError]. -type ContentFilterResults struct { - // Describes language attacks or uses that include pejorative or discriminatory language with reference to a person or identity - // group on the basis of certain differentiating attributes of these groups - // including but not limited to race, ethnicity, nationality, gender identity and expression, sexual orientation, religion, - // immigration status, ability status, personal appearance, and body size. - Hate *ContentFilterResult `json:"hate"` - - // Describes language related to physical actions intended to purposely hurt, injure, or damage one’s body, or kill oneself. - SelfHarm *ContentFilterResult `json:"self_harm"` - - // Describes language related to anatomical organs and genitals, romantic relationships, acts portrayed in erotic or affectionate - // terms, physical sexual acts, including those portrayed as an assault or a - // forced sexual violent act against one’s will, prostitution, pornography, and abuse. - Sexual *ContentFilterResult `json:"sexual"` - - // Describes language related to physical actions intended to hurt, injure, damage, or kill someone or something; describes - // weapons, etc. - Violence *ContentFilterResult `json:"violence"` -} - -// Unwrap returns the inner error for this error. -func (e *ContentFilterResponseError) Unwrap() error { - return &e.ResponseError -} - -func newContentFilterResponseError(resp *http.Response) error { - //nolint this error is an azcore.ResponseError by definition. - respErr := runtime.NewResponseError(resp).(*azcore.ResponseError) - - if respErr.ErrorCode != "content_filter" { - return respErr - } - - body, err := runtime.Payload(resp) - - if err != nil { - return err - } - - var envelope *struct { - Error struct { - InnerError struct { - ContentFilterResults *ContentFilterResults `json:"content_filter_result"` - } `json:"innererror"` - } - } - - if err := json.Unmarshal(body, &envelope); err != nil { - return err - } - - return &ContentFilterResponseError{ - ResponseError: *respErr, - ContentFilterResults: envelope.Error.InnerError.ContentFilterResults, - } -} - // AzureChatExtensionOptions provides Azure specific options to extend ChatCompletions. type AzureChatExtensionOptions struct { // Extensions is a slice of extensions to the chat completions endpoint, like Azure Cognitive Search. @@ -134,152 +59,3 @@ func (e *Error) Error() string { return *e.message } - -// ChatCompletionsToolChoice controls which tool is used for this ChatCompletions call. -// You can choose between: -// - [ChatCompletionsToolChoiceAuto] means the model can pick between generating a message or calling a function. -// - [ChatCompletionsToolChoiceNone] means the model will not call a function and instead generates a message -// - Use the [NewChatCompletionsToolChoice] function to specify a specific tool. -type ChatCompletionsToolChoice struct { - value any -} - -var ( - // ChatCompletionsToolChoiceAuto means the model can pick between generating a message or calling a function. - ChatCompletionsToolChoiceAuto *ChatCompletionsToolChoice = &ChatCompletionsToolChoice{value: "auto"} - - // ChatCompletionsToolChoiceNone means the model will not call a function and instead generates a message. - ChatCompletionsToolChoiceNone *ChatCompletionsToolChoice = &ChatCompletionsToolChoice{value: "none"} -) - -// NewChatCompletionsToolChoice creates a ChatCompletionsToolChoice for a specific tool. -func NewChatCompletionsToolChoice[T ChatCompletionsToolChoiceFunction](v T) *ChatCompletionsToolChoice { - return &ChatCompletionsToolChoice{value: v} -} - -// ChatCompletionsToolChoiceFunction can be used to force the model to call a particular function. -type ChatCompletionsToolChoiceFunction struct { - // Name is the name of the function to call. - Name string -} - -// MarshalJSON implements the json.Marshaller interface for type ChatCompletionsToolChoiceFunction. -func (tf ChatCompletionsToolChoiceFunction) MarshalJSON() ([]byte, error) { - type jsonInnerFunc struct { - Name string `json:"name"` - } - - type jsonFormat struct { - Type string `json:"type"` - Function jsonInnerFunc `json:"function"` - } - - return json.Marshal(jsonFormat{ - Type: "function", - Function: jsonInnerFunc(tf), - }) -} - -// MarshalJSON implements the json.Marshaller interface for type ChatCompletionsToolChoice. -func (tc ChatCompletionsToolChoice) MarshalJSON() ([]byte, error) { - return json.Marshal(tc.value) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ChatCompletionsToolChoice. -func (tc *ChatCompletionsToolChoice) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &tc.value) -} - -// ChatRequestAssistantMessageContent represents the content for a [azopenai.ChatRequestAssistantMessage]. -// NOTE: This should be created using [azopenai.NewChatRequestAssistantMessageContent] -type ChatRequestAssistantMessageContent struct { - value any -} - -// NewChatRequestAssistantMessageContent creates a [azopenai.ChatRequestAssistantMessageContent]. -func NewChatRequestAssistantMessageContent[T []ChatMessageRefusalContentItem | []ChatMessageTextContentItem | string](value T) *ChatRequestAssistantMessageContent { - switch any(value).(type) { - case []ChatMessageRefusalContentItem: - return &ChatRequestAssistantMessageContent{value: value} - case []ChatMessageTextContentItem: - return &ChatRequestAssistantMessageContent{value: value} - case string: - return &ChatRequestAssistantMessageContent{value: value} - default: - panic(fmt.Sprintf("Invalid type %T for ChatRequestAssistantMessageContent", value)) - } -} - -// MarshalJSON implements the json.Marshaller interface for type ChatRequestAssistantMessageContent. -func (c ChatRequestAssistantMessageContent) MarshalJSON() ([]byte, error) { - return json.Marshal(c.value) -} - -// ChatRequestSystemMessageContent contains the content for a [ChatRequestSystemMessage]. -// NOTE: This should be created using [azopenai.NewChatRequestSystemMessageContent] -type ChatRequestSystemMessageContent struct { - value any -} - -// MarshalJSON implements the json.Marshaller interface for type ChatRequestSystemMessageContent. -func (c ChatRequestSystemMessageContent) MarshalJSON() ([]byte, error) { - return json.Marshal(c.value) -} - -// NewChatRequestSystemMessageContent creates a [azopenai.ChatRequestSystemMessageContent]. -func NewChatRequestSystemMessageContent[T []ChatMessageTextContentItem | string](value T) *ChatRequestSystemMessageContent { - switch any(value).(type) { - case []ChatMessageTextContentItem: - return &ChatRequestSystemMessageContent{value: value} - case string: - return &ChatRequestSystemMessageContent{value: value} - default: - panic(fmt.Sprintf("Invalid type %T for ChatRequestSystemMessageContent", value)) - } -} - -// ChatRequestToolMessageContent contains the content for a [ChatRequestToolMessage]. -// NOTE: This should be created using [azopenai.NewChatRequestToolMessageContent] -type ChatRequestToolMessageContent struct { - value any -} - -// MarshalJSON implements the json.Marshaller interface for type ChatRequestToolMessageContent. -func (c ChatRequestToolMessageContent) MarshalJSON() ([]byte, error) { - return json.Marshal(c.value) -} - -// NewChatRequestToolMessageContent creates a [azopenai.ChatRequestToolMessageContent]. -func NewChatRequestToolMessageContent[T []ChatMessageTextContentItem | string](value T) *ChatRequestToolMessageContent { - switch any(value).(type) { - case []ChatMessageTextContentItem: - return &ChatRequestToolMessageContent{value: value} - case string: - return &ChatRequestToolMessageContent{value: value} - default: - panic(fmt.Sprintf("Invalid type %T for ChatRequestToolMessageContent", value)) - } -} - -// MongoDBChatExtensionParametersEmbeddingDependency contains the embedding dependency for the [MongoDBChatExtensionParameters]. -// NOTE: This should be created using [azopenai.NewMongoDBChatExtensionParametersEmbeddingDependency] -type MongoDBChatExtensionParametersEmbeddingDependency struct { - value any -} - -// NewMongoDBChatExtensionParametersEmbeddingDependency creates a [azopenai.MongoDBChatExtensionParametersEmbeddingDependency]. -func NewMongoDBChatExtensionParametersEmbeddingDependency[T OnYourDataDeploymentNameVectorizationSource | OnYourDataEndpointVectorizationSource](value T) *MongoDBChatExtensionParametersEmbeddingDependency { - switch any(value).(type) { - case OnYourDataDeploymentNameVectorizationSource: - return &MongoDBChatExtensionParametersEmbeddingDependency{value: value} - case OnYourDataEndpointVectorizationSource: - return &MongoDBChatExtensionParametersEmbeddingDependency{value: value} - default: - panic(fmt.Sprintf("Invalid type %T for MongoDBChatExtensionParametersEmbeddingDependency", value)) - } -} - -// MarshalJSON implements the json.Marshaller interface for type MongoDBChatExtensionParametersEmbeddingDependency. -func (c MongoDBChatExtensionParametersEmbeddingDependency) MarshalJSON() ([]byte, error) { - return json.Marshal(c.value) -} diff --git a/sdk/ai/azopenai/custom_models_functions.go b/sdk/ai/azopenai/custom_models_functions.go deleted file mode 100644 index 95ee1a9b58bd..000000000000 --- a/sdk/ai/azopenai/custom_models_functions.go +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. - -package azopenai - -import ( - "encoding/json" - "errors" -) - -// These models and their code are used for the old style of function calling. They were auto-generated -// in the past (and won't change since they're an evolutionary dead-end at this point) but some older -// and supported models can only use this variant. - -// ChatCompletionsOptionsFunctionCall - Controls how the model responds to function calls. "none" means the model does not -// call a function, and responds to the end-user. "auto" means the model can pick between an end-user or calling a -// function. Specifying a particular function via {"name": "my_function"} forces the model to call that function. "none" is -// the default when no functions are present. "auto" is the default if functions -// are present. -type ChatCompletionsOptionsFunctionCall struct { - // IsFunction is true if Value refers to a function name. - IsFunction bool - - // Value is one of: - // - "auto", meaning the model can pick between an end-user or calling a function - // - "none", meaning the model does not call a function, - // - name of a function, in which case [IsFunction] should be set to true. - Value *string -} - -// MarshalJSON implements the json.Marshaller interface for type ChatCompletionsOptionsFunctionCall. -func (c ChatCompletionsOptionsFunctionCall) MarshalJSON() ([]byte, error) { - if c.IsFunction { - if c.Value == nil { - return nil, errors.New("the Value should be the function name to call, not nil") - } - - return json.Marshal(map[string]string{"name": *c.Value}) - } - - return json.Marshal(c.Value) -} diff --git a/sdk/ai/azopenai/example_client_getchatcompletions_test.go b/sdk/ai/azopenai/example_client_getchatcompletions_test.go index d0bc2df8ec35..cb73e664af05 100644 --- a/sdk/ai/azopenai/example_client_getchatcompletions_test.go +++ b/sdk/ai/azopenai/example_client_getchatcompletions_test.go @@ -344,7 +344,7 @@ func ExampleClient_GetChatCompletionsStream() { // from here you'd keep iterating, sending responses back from ChatGPT } - resp, err := client.GetChatCompletionsStream(context.TODO(), azopenai.ChatCompletionsOptions{ + resp, err := client.GetChatCompletionsStream(context.TODO(), azopenai.ChatCompletionsStreamOptions{ // This is a conversation in progress. // NOTE: all messages count against token usage for this API. Messages: messages, diff --git a/sdk/ai/azopenai/example_client_getcompletions_test.go b/sdk/ai/azopenai/example_client_getcompletions_test.go index 46390ccde979..80070d186a66 100644 --- a/sdk/ai/azopenai/example_client_getcompletions_test.go +++ b/sdk/ai/azopenai/example_client_getcompletions_test.go @@ -84,7 +84,7 @@ func ExampleClient_GetCompletionsStream() { return } - resp, err := client.GetCompletionsStream(context.TODO(), azopenai.CompletionsOptions{ + resp, err := client.GetCompletionsStream(context.TODO(), azopenai.CompletionsStreamOptions{ Prompt: []string{"What is Azure OpenAI, in 20 words or less?"}, MaxTokens: to.Ptr(int32(2048)), Temperature: to.Ptr(float32(0.0)), diff --git a/sdk/ai/azopenai/internal/check_generation_test.go b/sdk/ai/azopenai/internal/check_generation_test.go index df86236f824c..862ab4d187f0 100644 --- a/sdk/ai/azopenai/internal/check_generation_test.go +++ b/sdk/ai/azopenai/internal/check_generation_test.go @@ -26,7 +26,7 @@ const typeSpecDir = "../testdata/TempTypeSpecFiles/OpenAI.Inference" const modelsGoFile = "../models.go" -var goModelsFiles = []string{modelsGoFile, "../custom_models.go", "../custom_client_embeddings.go"} +var goModelsFiles = []string{modelsGoFile, "../custom_models.go", "../models_extra.go"} var typeSpecModelRE = regexp.MustCompile(`(?m)^model\s+([^\s]+)`) var goModelRE = regexp.MustCompile(`(?m)^type\s+([^\s]+)\s+struct`) diff --git a/sdk/ai/azopenai/internal/transform/cmd/main.go b/sdk/ai/azopenai/internal/transform/cmd/main.go new file mode 100644 index 000000000000..6b05fdc17dca --- /dev/null +++ b/sdk/ai/azopenai/internal/transform/cmd/main.go @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +package main + +import ( + "flag" + "log" + "os" + + "github.com/Azure/azure-sdk-for-go/sdk/ai/azopenai/internal/transform" +) + +func main() { + var ( + operation = flag.String("op", "", "Operation to perform (rename-struct, rename-method, copy-struct)") + filename = flag.String("file", "", "File containing to modify") + name = flag.String("name", "", "Symbol name") + newName = flag.String("new-name", "", "New symbol name (for rename)") + structName = flag.String("struct", "", "Struct name (for remove-field)") + field = flag.String("field", "", "Field name (for remove-field)") + ) + + flag.Parse() + + wd, err := os.Getwd() + if err != nil { + log.Fatalf("Failed to get working directory: %v", err) + } + + transformer, err := transform.New(wd) + if err != nil { + log.Fatalf("Failed to initialize transformer: %v", err) + } + + switch *operation { + case "rename-struct": + if err := transformer.RenameStruct(*filename, *name, *newName); err != nil { + log.Fatalf("Failed to rename struct: %v", err) + } + case "rename-method": + if err := transformer.RenameMethod(*filename, *name, *newName); err != nil { + log.Fatalf("Failed to rename method: %v", err) + } + case "copy-struct": + if err := transformer.CopyStruct(*filename, *name, *newName); err != nil { + log.Fatalf("Failed to copy struct: %v", err) + } + case "remove-field": + if err := transformer.RemoveField(*filename, *structName, *field); err != nil { + log.Fatalf("Failed to remove field: %v", err) + } + default: + log.Fatalf("Unknown operation: %s", *operation) + } +} diff --git a/sdk/ai/azopenai/internal/transform/transform.go b/sdk/ai/azopenai/internal/transform/transform.go new file mode 100644 index 000000000000..709d07695256 --- /dev/null +++ b/sdk/ai/azopenai/internal/transform/transform.go @@ -0,0 +1,326 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +package transform + +import ( + "bufio" + "bytes" + "fmt" + "os" + "os/exec" + "path/filepath" + "strconv" + "strings" +) + +type Transformer struct { + workingDir string +} + +func New(workingDir string) (*Transformer, error) { + if _, err := exec.LookPath("gopls"); err != nil { + return nil, fmt.Errorf("gopls not found in PATH: %v", err) + } + + return &Transformer{ + workingDir: workingDir, + }, nil +} + +func (t *Transformer) executeGopls(args ...string) (*bytes.Buffer, error) { + cmd := exec.Command("gopls", args...) + cmd.Dir = t.workingDir + + var stdout, stderr bytes.Buffer + cmd.Stdout = &stdout + cmd.Stderr = &stderr + + if err := cmd.Run(); err != nil { + return nil, fmt.Errorf("gopls error: %v\nstderr: %s", err, stderr.String()) + } + + return &stdout, nil +} + +func (t *Transformer) findSymbolPosition(filename, symbolName string, symbolKind string, start *int, end *int) (*position, error) { + stdout, err := t.executeGopls("symbols", filepath.Clean(filename)) + if err != nil { + return nil, err + } + + scanner := bufio.NewScanner(stdout) + + for scanner.Scan() { + line := scanner.Text() + + parts := strings.Fields(strings.TrimSpace(line)) + if len(parts) < 3 { + continue + } + + symbol := parts[0] + kind := parts[1] + position := parts[2] + + if symbol == symbolName && kind == symbolKind { + absPath, err := filepath.Abs(filename) + if err != nil { + return nil, fmt.Errorf("failed to get absolute path: %v", err) + } + pos, err := newPosition(absPath, position) + if err != nil { + return nil, err + } + if start != nil && pos.Line < *start { + continue + } + if end != nil && pos.Line >= *end { + break + } + return pos, nil + } + } + + if err := scanner.Err(); err != nil { + return nil, fmt.Errorf("error reading gopls output: %v", err) + } + + return nil, fmt.Errorf("symbol %s not found in %s", symbolName, filename) + +} + +func (t *Transformer) RenameStruct(filename string, oldName string, newName string) error { + pos, err := t.findSymbolPosition(filename, oldName, "Struct", nil, nil) + if err != nil { + return fmt.Errorf("failed to find struct position: %v", err) + } + + _, err = t.executeGopls("rename", + "-w", + pos.String(), + newName) + + return err +} + +func (t *Transformer) RenameMethod(filename string, methodName string, newName string) error { + pos, err := t.findSymbolPosition(filename, methodName, "Method", nil, nil) + if err != nil { + return fmt.Errorf("failed to find method position: %v", err) + } + + _, err = t.executeGopls("rename", + "-w", + pos.String(), + newName) + + return err +} + +type position struct { + FileName string + Line int + ColumnStart int + ColumnEnd int +} + +func newPosition(fileName string, pos string) (*position, error) { + start, end, found := strings.Cut(pos, "-") + if !found { + return nil, fmt.Errorf("unexpected position format: %s", pos) + } + line, columnStart, found := strings.Cut(start, ":") + if !found { + return nil, fmt.Errorf("unexpected position format: %s", pos) + } + _, columnEnd, found := strings.Cut(end, ":") + if !found { + return nil, fmt.Errorf("unexpected position format: %s", pos) + } + + lineNumber, err := strconv.Atoi(line) + if err != nil { + return nil, fmt.Errorf("failed to parse line number: %v", err) + } + columnStartNumber, err := strconv.Atoi(columnStart) + if err != nil { + return nil, fmt.Errorf("failed to parse start column: %v", err) + } + columnEndNumber, err := strconv.Atoi(columnEnd) + if err != nil { + return nil, fmt.Errorf("failed to parse end column: %v", err) + } + + return &position{ + FileName: fileName, + Line: lineNumber, + ColumnStart: columnStartNumber, + ColumnEnd: columnEndNumber, + }, nil +} + +func (p *position) String() string { + return fmt.Sprintf("%s:%d:%d-%d:%d", p.FileName, p.Line, p.ColumnStart, p.Line, p.ColumnEnd) +} + +func (t *Transformer) findStructRange(filename string, structName string) (start int, end int, err error) { + pos, err := t.findSymbolPosition(filename, structName, "Struct", nil, nil) + if err != nil { + return 0, 0, err + } + + stdout, err := t.executeGopls("folding_ranges", + filename) + + if err != nil { + return 0, 0, fmt.Errorf("failed to get folding ranges: %v", err) + } + + scanner := bufio.NewScanner(stdout) + for scanner.Scan() { + line := scanner.Text() + + if strings.HasPrefix(line, fmt.Sprint(pos.Line)) { + + start, end, _ := strings.Cut(line, "-") + start, _, _ = strings.Cut(start, ":") + end, _, _ = strings.Cut(end, ":") + + startInt, err := strconv.Atoi(start) + if err != nil { + return 0, 0, fmt.Errorf("failed to parse start line: %v", err) + } + + endInt, err := strconv.Atoi(end) + if err != nil { + return 0, 0, fmt.Errorf("failed to parse end line: %v", err) + } + + return startInt, endInt, nil + } + } + + if err := scanner.Err(); err != nil { + return 0, 0, fmt.Errorf("error reading gopls output: %v", err) + } + + return 0, 0, fmt.Errorf("struct %s not found in %s", structName, filename) +} + +func (t *Transformer) readRange(filename string, start, end *int, includeDocs bool) ([]string, error) { + if (start == nil || end == nil) && includeDocs { + return nil, fmt.Errorf("start and end must be provided when includeDocs is true") + } + file, err := os.Open(filename) + if err != nil { + return nil, fmt.Errorf("failed to open file: %v", err) + } + defer file.Close() + + scanner := bufio.NewScanner(file) + var comments []string + var lines []string + lineNumber := 0 + for scanner.Scan() { + lineNumber++ + line := scanner.Text() + if includeDocs && lineNumber < *start { + if strings.HasPrefix(strings.TrimSpace(line), "//") { + comments = append(comments, line) + continue + } else { + comments = nil + } + } + + if start != nil && lineNumber < *start { + continue + } + if end != nil && lineNumber > *end { + break + } + lines = append(lines, line) + } + + if err := scanner.Err(); err != nil { + return nil, fmt.Errorf("error reading file: %v", err) + } + + if comments != nil { + lines = append(comments, lines...) + } + return lines, nil +} + +func (t *Transformer) CopyStruct(filename string, structName string, newStructName string) error { + start, end, err := t.findStructRange(filename, structName) + if err != nil { + return err + } + + lines, err := t.readRange(filename, &start, &end, true) + if err != nil { + return err + } + + for i, line := range lines { + if strings.HasPrefix(strings.TrimSpace(line), fmt.Sprintf("// %s", structName)) { + lines[i] = strings.Replace(line, structName, newStructName, 1) + } else if strings.HasPrefix(strings.TrimSpace(line), fmt.Sprintf("type %s struct", structName)) { + lines[i] = strings.Replace(line, structName, newStructName, 1) + } + } + + file, err := os.OpenFile(filename, os.O_APPEND|os.O_WRONLY, 0644) + if err != nil { + return fmt.Errorf("failed to open file: %v", err) + } + defer file.Close() + + allLines := strings.Join(lines, "\n") + + if _, err := fmt.Fprintf(file, "\n%s\n", allLines); err != nil { + return fmt.Errorf("failed to write to file: %v", err) + } + + return nil +} + +func (t *Transformer) RemoveField(filename string, structName string, fieldName string) error { + start, end, err := t.findStructRange(filename, structName) + if err != nil { + return err + } + + pos, err := t.findSymbolPosition(filename, fieldName, "Field", &start, &end) + if err != nil { + return err + } + + lines, err := t.readRange(filename, nil, nil, false) + if err != nil { + return err + } + + // Remove the field line + removeFrom := pos.Line - 1 + if pos.Line-2 >= 0 && strings.HasPrefix(strings.TrimSpace(lines[pos.Line-2]), "//") { + removeFrom = pos.Line - 2 + } + + lines = append(lines[:removeFrom], lines[pos.Line:]...) + + file, err := os.OpenFile(filename, os.O_TRUNC|os.O_WRONLY, 0644) + if err != nil { + return fmt.Errorf("failed to open file: %v", err) + } + defer file.Close() + + allLines := strings.Join(lines, "\n") + + if _, err := fmt.Fprintf(file, "\n%s\n", allLines); err != nil { + return fmt.Errorf("failed to write to file: %v", err) + } + + return nil +} diff --git a/sdk/ai/azopenai/models.go b/sdk/ai/azopenai/models.go index f5c0c907a7dc..f9b6eca17411 100644 --- a/sdk/ai/azopenai/models.go +++ b/sdk/ai/azopenai/models.go @@ -836,6 +836,14 @@ func (c *ChatCompletionRequestMessageContentPartText) GetChatCompletionRequestMe } } +// ChatCompletionStreamOptions - Options for streaming response. Only set this when you set stream: true. +type ChatCompletionStreamOptions struct { + // If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token + // usage statistics for the entire request, and the choices field will always + // be an empty array. All other chunks will also include a usage field, but with a null value. + IncludeUsage *bool +} + // ChatCompletions - Representation of the response data from a chat completions request. Completions support a wide variety // of tasks and generate text that continues from or "completes" provided prompt data. type ChatCompletions struct { @@ -1035,9 +1043,9 @@ func (c *ChatCompletionsNamedToolSelection) GetChatCompletionsNamedToolSelection return c } -// ChatCompletionsOptions - The configuration information for a chat completions request. Completions support a wide variety +// chatCompletionsOptions - The configuration information for a chat completions request. Completions support a wide variety // of tasks and generate text that continues from or "completes" provided prompt data. -type ChatCompletionsOptions struct { +type chatCompletionsOptions struct { // REQUIRED; The collection of context messages associated with this chat completions request. Typical usage begins with a // chat message for the System role that provides instructions for the behavior of the // assistant, followed by alternating messages between the User and Assistant roles. @@ -1077,7 +1085,13 @@ type ChatCompletionsOptions struct { // on the gpt-4-vision-preview model. LogProbs *bool - // The maximum number of tokens to generate. + // An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning + // tokens. + MaxCompletionTokens *int32 + + // The maximum number of tokens allowed for the generated answer. By default, the number of tokens the model can return will + // be (4096 - prompt tokens). + // This value is now deprecated in favor of max_completion_tokens, and is not compatible with o1 series models. MaxTokens *int32 // The model name to provide as part of this completions request. Not applicable to Azure OpenAI, where deployment information @@ -1089,6 +1103,9 @@ type ChatCompletionsOptions struct { // carefully and ensure reasonable settings for max_tokens and stop. N *int32 + // Whether to enable parallel function calling during tool use. + ParallelToolCalls *bool + // A value that influences the probability of generated tokens appearing based on their existing presence in generated text. // Positive values will make tokens less likely to appear when they already exist // and increase the model's likelihood to output new topics. @@ -1105,6 +1122,12 @@ type ChatCompletionsOptions struct { // A collection of textual sequences that will end completions generation. Stop []string + // A value indicating whether chat completions should be streamed for this request. + Stream *bool + + // Options for streaming response. Only set this when you set stream: true. + StreamOptions *ChatCompletionStreamOptions + // The sampling temperature to use that controls the apparent creativity of generated completions. Higher values will make // output more random while lower values will make results more focused and // deterministic. It is not recommended to modify temperature and top_p for the same completions request as the interaction @@ -1521,9 +1544,9 @@ type CompletionsLogProbabilityModel struct { TopLogProbs []map[string]*float32 } -// CompletionsOptions - The configuration information for a completions request. Completions support a wide variety of tasks +// completionsOptions - The configuration information for a completions request. Completions support a wide variety of tasks // and generate text that continues from or "completes" provided prompt data. -type CompletionsOptions struct { +type completionsOptions struct { // REQUIRED; The prompts to generate completions from. Prompt []string @@ -1578,6 +1601,12 @@ type CompletionsOptions struct { // A collection of textual sequences that will end completions generation. Stop []string + // A value indicating whether chat completions should be streamed for this request. + Stream *bool + + // Options for streaming response. Only set this when you set stream: true. + StreamOptions *ChatCompletionStreamOptions + // The suffix that comes after a completion of inserted text Suffix *string @@ -1609,6 +1638,24 @@ type CompletionsUsage struct { // REQUIRED; The total number of tokens processed for the completions request and response. TotalTokens *int32 + + // Breakdown of tokens used in a completion. + CompletionTokensDetails *CompletionsUsageCompletionTokensDetails + + // Details of the prompt tokens. + PromptTokensDetails *CompletionsUsagePromptTokensDetails +} + +// CompletionsUsageCompletionTokensDetails - Breakdown of tokens used in a completion. +type CompletionsUsageCompletionTokensDetails struct { + // Tokens generated by the model for reasoning. + ReasoningTokens *int32 +} + +// CompletionsUsagePromptTokensDetails - Details of the prompt tokens. +type CompletionsUsagePromptTokensDetails struct { + // The number of cached prompt tokens. + CachedTokens *int32 } // ContentFilterBlocklistIDResult - Represents the outcome of an evaluation against a custom blocklist as performed by content @@ -1637,13 +1684,37 @@ type ContentFilterCitedDetectionResult struct { URL *string } -// ContentFilterDetailedResults - Represents a structured collection of result details for content filtering. -type ContentFilterDetailedResults struct { +// ContentFilterCompletionTextSpan - Describes a span within generated completion text. Offset 0 is the first UTF32 code point +// of the completion text. +type ContentFilterCompletionTextSpan struct { + // REQUIRED; Offset of the first UTF32 code point which is excluded from the span. This field is always equal to completionstartoffset + // for empty spans. This field is always larger than completionstartoffset for + // non-empty spans. + CompletionEndOffset *int32 + + // REQUIRED; Offset of the UTF32 code point which begins the span. + CompletionStartOffset *int32 +} + +// ContentFilterCompletionTextSpanResult - Describes a span within generated completion text. +type ContentFilterCompletionTextSpanResult struct { + // REQUIRED; The collection of completion text spans. + Details []ContentFilterCompletionTextSpan + + // REQUIRED; A value indicating whether detection occurred, irrespective of severity or whether the content was filtered. + Detected *bool + // REQUIRED; A value indicating whether or not the content has been filtered. Filtered *bool +} - // The collection of detailed blocklist result information. +// ContentFilterDetailedResults - Represents a structured collection of result details for content filtering. +type ContentFilterDetailedResults struct { + // REQUIRED; The collection of detailed blocklist result information. Details []ContentFilterBlocklistIDResult + + // REQUIRED; A value indicating whether or not the content has been filtered. + Filtered *bool } // ContentFilterDetectionResult - Represents the outcome of a detection operation performed by content filtering. @@ -1702,6 +1773,9 @@ type ContentFilterResultDetailsForPrompt struct { // ContentFilterResultsForChoice - Information about content filtering evaluated against generated model output. type ContentFilterResultsForChoice struct { + // REQUIRED; Information about detection of ungrounded material. + UngroundedMaterial *ContentFilterCompletionTextSpanResult + // Describes detection results against configured custom blocklists. CustomBlockLists *ContentFilterDetailedResults @@ -2707,3 +2781,377 @@ type UploadPart struct { // Azure only field. AzureBlockID *string } + +// CompletionsOptions - The configuration information for a completions request. Completions support a wide variety of tasks +// and generate text that continues from or "completes" provided prompt data. +type CompletionsOptions struct { + // REQUIRED; The prompts to generate completions from. + Prompt []string + + // A value that controls how many completions will be internally generated prior to response formulation. When used together + // with n, bestof controls the number of candidate completions and must be + // greater than n. Because this setting can generate many completions, it may quickly consume your token quota. Use carefully + // and ensure reasonable settings for maxtokens and stop. + BestOf *int32 + + // A value specifying whether completions responses should include input prompts as prefixes to their generated output. + Echo *bool + + // A value that influences the probability of generated tokens appearing based on their cumulative frequency in generated + // text. Positive values will make tokens less likely to appear as their frequency + // increases and decrease the likelihood of the model repeating the same statements verbatim. + FrequencyPenalty *float32 + + // A map between GPT token IDs and bias scores that influences the probability of specific tokens appearing in a completions + // response. Token IDs are computed via external tokenizer tools, while bias + // scores reside in the range of -100 to 100 with minimum and maximum values corresponding to a full ban or exclusive selection + // of a token, respectively. The exact behavior of a given bias score varies + // by model. + LogitBias map[string]*int32 + + // A value that controls the emission of log probabilities for the provided number of most likely tokens within a completions + // response. + LogProbs *int32 + + // The maximum number of tokens to generate. + MaxTokens *int32 + + // The model name to provide as part of this completions request. Not applicable to Azure OpenAI, where deployment information + // should be included in the Azure resource URI that's connected to. + DeploymentName *string + + // The number of completions choices that should be generated per provided prompt as part of an overall completions response. + // Because this setting can generate many completions, it may quickly consume + // your token quota. Use carefully and ensure reasonable settings for max_tokens and stop. + N *int32 + + // A value that influences the probability of generated tokens appearing based on their existing presence in generated text. + // Positive values will make tokens less likely to appear when they already exist + // and increase the model's likelihood to output new topics. + PresencePenalty *float32 + + // If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same + // seed and parameters should return the same result. + // Determinism is not guaranteed, and you should refer to the system_fingerprint response parameter to monitor changes in + // the backend. + Seed *int32 + + // A collection of textual sequences that will end completions generation. + Stop []string + + // The suffix that comes after a completion of inserted text + Suffix *string + + // The sampling temperature to use that controls the apparent creativity of generated completions. Higher values will make + // output more random while lower values will make results more focused and + // deterministic. It is not recommended to modify temperature and top_p for the same completions request as the interaction + // of these two settings is difficult to predict. + Temperature *float32 + + // An alternative to sampling with temperature called nucleus sampling. This value causes the model to consider the results + // of tokens with the provided probability mass. As an example, a value of 0.15 + // will cause only the tokens comprising the top 15% of probability mass to be considered. It is not recommended to modify + // temperature and top_p for the same completions request as the interaction of + // these two settings is difficult to predict. + TopP *float32 + + // An identifier for the caller or end user of the operation. This may be used for tracking or rate-limiting purposes. + User *string +} + +// CompletionsStreamOptions - The configuration information for a completions request. Completions support a wide variety of tasks +// and generate text that continues from or "completes" provided prompt data. +type CompletionsStreamOptions struct { + // REQUIRED; The prompts to generate completions from. + Prompt []string + + // A value that controls how many completions will be internally generated prior to response formulation. When used together + // with n, bestof controls the number of candidate completions and must be + // greater than n. Because this setting can generate many completions, it may quickly consume your token quota. Use carefully + // and ensure reasonable settings for maxtokens and stop. + BestOf *int32 + + // A value specifying whether completions responses should include input prompts as prefixes to their generated output. + Echo *bool + + // A value that influences the probability of generated tokens appearing based on their cumulative frequency in generated + // text. Positive values will make tokens less likely to appear as their frequency + // increases and decrease the likelihood of the model repeating the same statements verbatim. + FrequencyPenalty *float32 + + // A map between GPT token IDs and bias scores that influences the probability of specific tokens appearing in a completions + // response. Token IDs are computed via external tokenizer tools, while bias + // scores reside in the range of -100 to 100 with minimum and maximum values corresponding to a full ban or exclusive selection + // of a token, respectively. The exact behavior of a given bias score varies + // by model. + LogitBias map[string]*int32 + + // A value that controls the emission of log probabilities for the provided number of most likely tokens within a completions + // response. + LogProbs *int32 + + // The maximum number of tokens to generate. + MaxTokens *int32 + + // The model name to provide as part of this completions request. Not applicable to Azure OpenAI, where deployment information + // should be included in the Azure resource URI that's connected to. + DeploymentName *string + + // The number of completions choices that should be generated per provided prompt as part of an overall completions response. + // Because this setting can generate many completions, it may quickly consume + // your token quota. Use carefully and ensure reasonable settings for max_tokens and stop. + N *int32 + + // A value that influences the probability of generated tokens appearing based on their existing presence in generated text. + // Positive values will make tokens less likely to appear when they already exist + // and increase the model's likelihood to output new topics. + PresencePenalty *float32 + + // If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same + // seed and parameters should return the same result. + // Determinism is not guaranteed, and you should refer to the system_fingerprint response parameter to monitor changes in + // the backend. + Seed *int32 + + // A collection of textual sequences that will end completions generation. + Stop []string + + // Options for streaming response. Only set this when you set stream: true. + StreamOptions *ChatCompletionStreamOptions + + // The suffix that comes after a completion of inserted text + Suffix *string + + // The sampling temperature to use that controls the apparent creativity of generated completions. Higher values will make + // output more random while lower values will make results more focused and + // deterministic. It is not recommended to modify temperature and top_p for the same completions request as the interaction + // of these two settings is difficult to predict. + Temperature *float32 + + // An alternative to sampling with temperature called nucleus sampling. This value causes the model to consider the results + // of tokens with the provided probability mass. As an example, a value of 0.15 + // will cause only the tokens comprising the top 15% of probability mass to be considered. It is not recommended to modify + // temperature and top_p for the same completions request as the interaction of + // these two settings is difficult to predict. + TopP *float32 + + // An identifier for the caller or end user of the operation. This may be used for tracking or rate-limiting purposes. + User *string +} + +// ChatCompletionsOptions - The configuration information for a chat completions request. Completions support a wide variety +// of tasks and generate text that continues from or "completes" provided prompt data. +type ChatCompletionsOptions struct { + // REQUIRED; The collection of context messages associated with this chat completions request. Typical usage begins with a + // chat message for the System role that provides instructions for the behavior of the + // assistant, followed by alternating messages between the User and Assistant roles. + Messages []ChatRequestMessageClassification + + // The configuration entries for Azure OpenAI chat extensions that use them. This additional specification is only compatible + // with Azure OpenAI. + AzureExtensionsOptions []AzureChatExtensionConfigurationClassification + + // If provided, the configuration options for available Azure OpenAI chat enhancements. + Enhancements *AzureChatEnhancementConfiguration + + // A value that influences the probability of generated tokens appearing based on their cumulative frequency in generated + // text. Positive values will make tokens less likely to appear as their frequency + // increases and decrease the likelihood of the model repeating the same statements verbatim. + FrequencyPenalty *float32 + + // Controls how the model responds to function calls. "none" means the model does not call a function, and responds to the + // end-user. "auto" means the model can pick between an end-user or calling a + // function. Specifying a particular function via {"name": "my_function"} forces the model to call that function. "none" is + // the default when no functions are present. "auto" is the default if functions + // are present. + FunctionCall *ChatCompletionsOptionsFunctionCall + + // A list of functions the model may generate JSON inputs for. + Functions []FunctionDefinition + + // A map between GPT token IDs and bias scores that influences the probability of specific tokens appearing in a completions + // response. Token IDs are computed via external tokenizer tools, while bias + // scores reside in the range of -100 to 100 with minimum and maximum values corresponding to a full ban or exclusive selection + // of a token, respectively. The exact behavior of a given bias score varies + // by model. + LogitBias map[string]*int32 + + // Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output + // token returned in the content of message. This option is currently not available + // on the gpt-4-vision-preview model. + LogProbs *bool + + // An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning + // tokens. + MaxCompletionTokens *int32 + + // The maximum number of tokens allowed for the generated answer. By default, the number of tokens the model can return will + // be (4096 - prompt tokens). + // This value is now deprecated in favor of max_completion_tokens, and is not compatible with o1 series models. + MaxTokens *int32 + + // The model name to provide as part of this completions request. Not applicable to Azure OpenAI, where deployment information + // should be included in the Azure resource URI that's connected to. + DeploymentName *string + + // The number of chat completions choices that should be generated for a chat completions response. Because this setting can + // generate many completions, it may quickly consume your token quota. Use + // carefully and ensure reasonable settings for max_tokens and stop. + N *int32 + + // Whether to enable parallel function calling during tool use. + ParallelToolCalls *bool + + // A value that influences the probability of generated tokens appearing based on their existing presence in generated text. + // Positive values will make tokens less likely to appear when they already exist + // and increase the model's likelihood to output new topics. + PresencePenalty *float32 + + // An object specifying the format that the model must output. Used to enable JSON mode. + ResponseFormat ChatCompletionsResponseFormatClassification + + // If specified, the system will make a best effort to sample deterministically such that repeated requests with the same + // seed and parameters should return the same result. Determinism is not guaranteed, + // and you should refer to the system_fingerprint response parameter to monitor changes in the backend." + Seed *int64 + + // A collection of textual sequences that will end completions generation. + Stop []string + + // The sampling temperature to use that controls the apparent creativity of generated completions. Higher values will make + // output more random while lower values will make results more focused and + // deterministic. It is not recommended to modify temperature and top_p for the same completions request as the interaction + // of these two settings is difficult to predict. + Temperature *float32 + + // If specified, the model will configure which of the provided tools it can use for the chat completions response. + ToolChoice *ChatCompletionsToolChoice + + // The available tool definitions that the chat completions request can use, including caller-defined functions. + Tools []ChatCompletionsToolDefinitionClassification + + // An integer between 0 and 5 specifying the number of most likely tokens to return at each token position, each with an associated + // log probability. logprobs must be set to true if this parameter is + // used. + TopLogProbs *int32 + + // An alternative to sampling with temperature called nucleus sampling. This value causes the model to consider the results + // of tokens with the provided probability mass. As an example, a value of 0.15 + // will cause only the tokens comprising the top 15% of probability mass to be considered. It is not recommended to modify + // temperature and top_p for the same completions request as the interaction of + // these two settings is difficult to predict. + TopP *float32 + + // An identifier for the caller or end user of the operation. This may be used for tracking or rate-limiting purposes. + User *string +} + +// ChatCompletionsStreamOptions - The configuration information for a chat completions request. Completions support a wide variety +// of tasks and generate text that continues from or "completes" provided prompt data. +type ChatCompletionsStreamOptions struct { + // REQUIRED; The collection of context messages associated with this chat completions request. Typical usage begins with a + // chat message for the System role that provides instructions for the behavior of the + // assistant, followed by alternating messages between the User and Assistant roles. + Messages []ChatRequestMessageClassification + + // The configuration entries for Azure OpenAI chat extensions that use them. This additional specification is only compatible + // with Azure OpenAI. + AzureExtensionsOptions []AzureChatExtensionConfigurationClassification + + // If provided, the configuration options for available Azure OpenAI chat enhancements. + Enhancements *AzureChatEnhancementConfiguration + + // A value that influences the probability of generated tokens appearing based on their cumulative frequency in generated + // text. Positive values will make tokens less likely to appear as their frequency + // increases and decrease the likelihood of the model repeating the same statements verbatim. + FrequencyPenalty *float32 + + // Controls how the model responds to function calls. "none" means the model does not call a function, and responds to the + // end-user. "auto" means the model can pick between an end-user or calling a + // function. Specifying a particular function via {"name": "my_function"} forces the model to call that function. "none" is + // the default when no functions are present. "auto" is the default if functions + // are present. + FunctionCall *ChatCompletionsOptionsFunctionCall + + // A list of functions the model may generate JSON inputs for. + Functions []FunctionDefinition + + // A map between GPT token IDs and bias scores that influences the probability of specific tokens appearing in a completions + // response. Token IDs are computed via external tokenizer tools, while bias + // scores reside in the range of -100 to 100 with minimum and maximum values corresponding to a full ban or exclusive selection + // of a token, respectively. The exact behavior of a given bias score varies + // by model. + LogitBias map[string]*int32 + + // Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output + // token returned in the content of message. This option is currently not available + // on the gpt-4-vision-preview model. + LogProbs *bool + + // An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning + // tokens. + MaxCompletionTokens *int32 + + // The maximum number of tokens allowed for the generated answer. By default, the number of tokens the model can return will + // be (4096 - prompt tokens). + // This value is now deprecated in favor of max_completion_tokens, and is not compatible with o1 series models. + MaxTokens *int32 + + // The model name to provide as part of this completions request. Not applicable to Azure OpenAI, where deployment information + // should be included in the Azure resource URI that's connected to. + DeploymentName *string + + // The number of chat completions choices that should be generated for a chat completions response. Because this setting can + // generate many completions, it may quickly consume your token quota. Use + // carefully and ensure reasonable settings for max_tokens and stop. + N *int32 + + // Whether to enable parallel function calling during tool use. + ParallelToolCalls *bool + + // A value that influences the probability of generated tokens appearing based on their existing presence in generated text. + // Positive values will make tokens less likely to appear when they already exist + // and increase the model's likelihood to output new topics. + PresencePenalty *float32 + + // An object specifying the format that the model must output. Used to enable JSON mode. + ResponseFormat ChatCompletionsResponseFormatClassification + + // If specified, the system will make a best effort to sample deterministically such that repeated requests with the same + // seed and parameters should return the same result. Determinism is not guaranteed, + // and you should refer to the system_fingerprint response parameter to monitor changes in the backend." + Seed *int64 + + // A collection of textual sequences that will end completions generation. + Stop []string + + // Options for streaming response. Only set this when you set stream: true. + StreamOptions *ChatCompletionStreamOptions + + // The sampling temperature to use that controls the apparent creativity of generated completions. Higher values will make + // output more random while lower values will make results more focused and + // deterministic. It is not recommended to modify temperature and top_p for the same completions request as the interaction + // of these two settings is difficult to predict. + Temperature *float32 + + // If specified, the model will configure which of the provided tools it can use for the chat completions response. + ToolChoice *ChatCompletionsToolChoice + + // The available tool definitions that the chat completions request can use, including caller-defined functions. + Tools []ChatCompletionsToolDefinitionClassification + + // An integer between 0 and 5 specifying the number of most likely tokens to return at each token position, each with an associated + // log probability. logprobs must be set to true if this parameter is + // used. + TopLogProbs *int32 + + // An alternative to sampling with temperature called nucleus sampling. This value causes the model to consider the results + // of tokens with the provided probability mass. As an example, a value of 0.15 + // will cause only the tokens comprising the top 15% of probability mass to be considered. It is not recommended to modify + // temperature and top_p for the same completions request as the interaction of + // these two settings is difficult to predict. + TopP *float32 + + // An identifier for the caller or end user of the operation. This may be used for tracking or rate-limiting purposes. + User *string +} diff --git a/sdk/ai/azopenai/models_extra.go b/sdk/ai/azopenai/models_extra.go new file mode 100644 index 000000000000..dfd4d97badcd --- /dev/null +++ b/sdk/ai/azopenai/models_extra.go @@ -0,0 +1,289 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +package azopenai + +/** + * This file is required for the generated code to be valid. The difference between the files + * with a custom_ prefix and ones like this with an _extra suffix is that the _extra files are + * not modified by the customization scripts, so they can be run safely. Files with the custom_ + * would change if they weren't ignored, so we have to keep them separate. + */ + +import ( + "encoding/json" + "errors" + "fmt" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" +) + +// ChatCompletionsOptionsFunctionCall - Controls how the model responds to function calls. "none" means the model does not +// call a function, and responds to the end-user. "auto" means the model can pick between an end-user or calling a +// function. Specifying a particular function via {"name": "my_function"} forces the model to call that function. "none" is +// the default when no functions are present. "auto" is the default if functions +// are present. +type ChatCompletionsOptionsFunctionCall struct { + // IsFunction is true if Value refers to a function name. + IsFunction bool + + // Value is one of: + // - "auto", meaning the model can pick between an end-user or calling a function + // - "none", meaning the model does not call a function, + // - name of a function, in which case [IsFunction] should be set to true. + Value *string +} + +// MarshalJSON implements the json.Marshaller interface for type ChatCompletionsOptionsFunctionCall. +func (c ChatCompletionsOptionsFunctionCall) MarshalJSON() ([]byte, error) { + if c.IsFunction { + if c.Value == nil { + return nil, errors.New("the Value should be the function name to call, not nil") + } + + return json.Marshal(map[string]string{"name": *c.Value}) + } + + return json.Marshal(c.Value) +} + +// ChatCompletionsToolChoice controls which tool is used for this ChatCompletions call. +// You can choose between: +// - [ChatCompletionsToolChoiceAuto] means the model can pick between generating a message or calling a function. +// - [ChatCompletionsToolChoiceNone] means the model will not call a function and instead generates a message +// - Use the [NewChatCompletionsToolChoice] function to specify a specific tool. +type ChatCompletionsToolChoice struct { + value any +} + +var ( + // ChatCompletionsToolChoiceAuto means the model can pick between generating a message or calling a function. + ChatCompletionsToolChoiceAuto *ChatCompletionsToolChoice = &ChatCompletionsToolChoice{value: "auto"} + + // ChatCompletionsToolChoiceNone means the model will not call a function and instead generates a message. + ChatCompletionsToolChoiceNone *ChatCompletionsToolChoice = &ChatCompletionsToolChoice{value: "none"} +) + +// NewChatCompletionsToolChoice creates a ChatCompletionsToolChoice for a specific tool. +func NewChatCompletionsToolChoice[T ChatCompletionsToolChoiceFunction](v T) *ChatCompletionsToolChoice { + return &ChatCompletionsToolChoice{value: v} +} + +// ChatCompletionsToolChoiceFunction can be used to force the model to call a particular function. +type ChatCompletionsToolChoiceFunction struct { + // Name is the name of the function to call. + Name string +} + +// MarshalJSON implements the json.Marshaller interface for type ChatCompletionsToolChoiceFunction. +func (tf ChatCompletionsToolChoiceFunction) MarshalJSON() ([]byte, error) { + type jsonInnerFunc struct { + Name string `json:"name"` + } + + type jsonFormat struct { + Type string `json:"type"` + Function jsonInnerFunc `json:"function"` + } + + return json.Marshal(jsonFormat{ + Type: "function", + Function: jsonInnerFunc(tf), + }) +} + +// MarshalJSON implements the json.Marshaller interface for type ChatCompletionsToolChoice. +func (tc ChatCompletionsToolChoice) MarshalJSON() ([]byte, error) { + return json.Marshal(tc.value) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ChatCompletionsToolChoice. +func (tc *ChatCompletionsToolChoice) UnmarshalJSON(data []byte) error { + return json.Unmarshal(data, &tc.value) +} + +// ChatRequestAssistantMessageContent represents the content for a [azopenai.ChatRequestAssistantMessage]. +// NOTE: This should be created using [azopenai.NewChatRequestAssistantMessageContent] +type ChatRequestAssistantMessageContent struct { + value any +} + +// NewChatRequestAssistantMessageContent creates a [azopenai.ChatRequestAssistantMessageContent]. +func NewChatRequestAssistantMessageContent[T []ChatMessageRefusalContentItem | []ChatMessageTextContentItem | string](value T) *ChatRequestAssistantMessageContent { + switch any(value).(type) { + case []ChatMessageRefusalContentItem: + return &ChatRequestAssistantMessageContent{value: value} + case []ChatMessageTextContentItem: + return &ChatRequestAssistantMessageContent{value: value} + case string: + return &ChatRequestAssistantMessageContent{value: value} + default: + panic(fmt.Sprintf("Invalid type %T for ChatRequestAssistantMessageContent", value)) + } +} + +// MarshalJSON implements the json.Marshaller interface for type ChatRequestAssistantMessageContent. +func (c ChatRequestAssistantMessageContent) MarshalJSON() ([]byte, error) { + return json.Marshal(c.value) +} + +// ChatRequestSystemMessageContent contains the content for a [ChatRequestSystemMessage]. +// NOTE: This should be created using [azopenai.NewChatRequestSystemMessageContent] +type ChatRequestSystemMessageContent struct { + value any +} + +// MarshalJSON implements the json.Marshaller interface for type ChatRequestSystemMessageContent. +func (c ChatRequestSystemMessageContent) MarshalJSON() ([]byte, error) { + return json.Marshal(c.value) +} + +// NewChatRequestSystemMessageContent creates a [azopenai.ChatRequestSystemMessageContent]. +func NewChatRequestSystemMessageContent[T []ChatMessageTextContentItem | string](value T) *ChatRequestSystemMessageContent { + switch any(value).(type) { + case []ChatMessageTextContentItem: + return &ChatRequestSystemMessageContent{value: value} + case string: + return &ChatRequestSystemMessageContent{value: value} + default: + panic(fmt.Sprintf("Invalid type %T for ChatRequestSystemMessageContent", value)) + } +} + +// ChatRequestToolMessageContent contains the content for a [ChatRequestToolMessage]. +// NOTE: This should be created using [azopenai.NewChatRequestToolMessageContent] +type ChatRequestToolMessageContent struct { + value any +} + +// MarshalJSON implements the json.Marshaller interface for type ChatRequestToolMessageContent. +func (c ChatRequestToolMessageContent) MarshalJSON() ([]byte, error) { + return json.Marshal(c.value) +} + +// NewChatRequestToolMessageContent creates a [azopenai.ChatRequestToolMessageContent]. +func NewChatRequestToolMessageContent[T []ChatMessageTextContentItem | string](value T) *ChatRequestToolMessageContent { + switch any(value).(type) { + case []ChatMessageTextContentItem: + return &ChatRequestToolMessageContent{value: value} + case string: + return &ChatRequestToolMessageContent{value: value} + default: + panic(fmt.Sprintf("Invalid type %T for ChatRequestToolMessageContent", value)) + } +} + +// ChatRequestUserMessageContent contains the user prompt - either as a single string +// or as a []ChatCompletionRequestMessageContentPart, enabling images and text as input. +// +// NOTE: This should be created using [azopenai.NewChatRequestUserMessageContent] +type ChatRequestUserMessageContent struct { + value any +} + +// NewChatRequestUserMessageContent creates a [azopenai.ChatRequestUserMessageContent]. +func NewChatRequestUserMessageContent[T string | []ChatCompletionRequestMessageContentPartClassification](v T) *ChatRequestUserMessageContent { + switch actualV := any(v).(type) { + case string: + return &ChatRequestUserMessageContent{value: &actualV} + case []ChatCompletionRequestMessageContentPartClassification: + return &ChatRequestUserMessageContent{value: actualV} + } + return &ChatRequestUserMessageContent{} +} + +// MarshalJSON implements the json.Marshaller interface for type Error. +func (c ChatRequestUserMessageContent) MarshalJSON() ([]byte, error) { + return json.Marshal(c.value) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ChatRequestUserMessageContent. +func (c *ChatRequestUserMessageContent) UnmarshalJSON(data []byte) error { + return json.Unmarshal(data, &c.value) +} + +// EmbeddingItem - Representation of a single embeddings relatedness comparison. +type EmbeddingItem struct { + // List of embeddings value for the input prompt. These represent a measurement of the vector-based relatedness + // of the provided input when when [EmbeddingEncodingFormatFloat] is specified. + Embedding []float32 + + // EmbeddingBase64 represents the Embeddings when [EmbeddingEncodingFormatBase64] is specified. + EmbeddingBase64 string + + // REQUIRED; Index of the prompt to which the EmbeddingItem corresponds. + Index *int32 + + // The object type which is always 'embedding'. + Object string +} + +func deserializeEmbeddingsArray(msg json.RawMessage, embeddingItem *EmbeddingItem) error { + if len(msg) == 0 { + return nil + } + + if msg[0] == '"' && len(msg) > 2 && msg[len(msg)-1] == '"' { + var s = string(msg) + embeddingItem.EmbeddingBase64 = s[1 : len(s)-1] + return nil + } + + return json.Unmarshal(msg, &embeddingItem.Embedding) +} + +// MongoDBChatExtensionParametersEmbeddingDependency contains the embedding dependency for the [MongoDBChatExtensionParameters]. +// NOTE: This should be created using [azopenai.NewMongoDBChatExtensionParametersEmbeddingDependency] +type MongoDBChatExtensionParametersEmbeddingDependency struct { + value any +} + +// NewMongoDBChatExtensionParametersEmbeddingDependency creates a [azopenai.MongoDBChatExtensionParametersEmbeddingDependency]. +func NewMongoDBChatExtensionParametersEmbeddingDependency[T OnYourDataDeploymentNameVectorizationSource | OnYourDataEndpointVectorizationSource](value T) *MongoDBChatExtensionParametersEmbeddingDependency { + switch any(value).(type) { + case OnYourDataDeploymentNameVectorizationSource: + return &MongoDBChatExtensionParametersEmbeddingDependency{value: value} + case OnYourDataEndpointVectorizationSource: + return &MongoDBChatExtensionParametersEmbeddingDependency{value: value} + default: + panic(fmt.Sprintf("Invalid type %T for MongoDBChatExtensionParametersEmbeddingDependency", value)) + } +} + +// MarshalJSON implements the json.Marshaller interface for type MongoDBChatExtensionParametersEmbeddingDependency. +func (c MongoDBChatExtensionParametersEmbeddingDependency) MarshalJSON() ([]byte, error) { + return json.Marshal(c.value) +} + +// ContentFilterResponseError is an error as a result of a request being filtered. +type ContentFilterResponseError struct { + azcore.ResponseError + + // ContentFilterResults contains Information about the content filtering category, if it has been detected. + ContentFilterResults *ContentFilterResults +} + +// ContentFilterResults are the content filtering results for a [ContentFilterResponseError]. +type ContentFilterResults struct { + // Describes language attacks or uses that include pejorative or discriminatory language with reference to a person or identity + // group on the basis of certain differentiating attributes of these groups + // including but not limited to race, ethnicity, nationality, gender identity and expression, sexual orientation, religion, + // immigration status, ability status, personal appearance, and body size. + Hate *ContentFilterResult `json:"hate"` + + // Describes language related to physical actions intended to purposely hurt, injure, or damage one’s body, or kill oneself. + SelfHarm *ContentFilterResult `json:"self_harm"` + + // Describes language related to anatomical organs and genitals, romantic relationships, acts portrayed in erotic or affectionate + // terms, physical sexual acts, including those portrayed as an assault or a + // forced sexual violent act against one’s will, prostitution, pornography, and abuse. + Sexual *ContentFilterResult `json:"sexual"` + + // Describes language related to physical actions intended to hurt, injure, damage, or kill someone or something; describes + // weapons, etc. + Violence *ContentFilterResult `json:"violence"` +} + +// Unwrap returns the inner error for this error. +func (e *ContentFilterResponseError) Unwrap() error { + return &e.ResponseError +} diff --git a/sdk/ai/azopenai/models_serde.go b/sdk/ai/azopenai/models_serde.go index d70b6ec35053..388e23fae654 100644 --- a/sdk/ai/azopenai/models_serde.go +++ b/sdk/ai/azopenai/models_serde.go @@ -1786,6 +1786,33 @@ func (c *ChatCompletionRequestMessageContentPartText) UnmarshalJSON(data []byte) return nil } +// MarshalJSON implements the json.Marshaller interface for type ChatCompletionStreamOptions. +func (c ChatCompletionStreamOptions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "include_usage", c.IncludeUsage) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ChatCompletionStreamOptions. +func (c *ChatCompletionStreamOptions) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "include_usage": + err = unpopulate(val, "IncludeUsage", &c.IncludeUsage) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ChatCompletions. func (c ChatCompletions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -2131,7 +2158,7 @@ func (c *ChatCompletionsNamedToolSelection) UnmarshalJSON(data []byte) error { } // MarshalJSON implements the json.Marshaller interface for type ChatCompletionsOptions. -func (c ChatCompletionsOptions) MarshalJSON() ([]byte, error) { +func (c chatCompletionsOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "data_sources", c.AzureExtensionsOptions) populate(objectMap, "enhancements", c.Enhancements) @@ -2140,14 +2167,18 @@ func (c ChatCompletionsOptions) MarshalJSON() ([]byte, error) { populate(objectMap, "functions", c.Functions) populate(objectMap, "logit_bias", c.LogitBias) populate(objectMap, "logprobs", c.LogProbs) + populate(objectMap, "max_completion_tokens", c.MaxCompletionTokens) populate(objectMap, "max_tokens", c.MaxTokens) populate(objectMap, "messages", c.Messages) populate(objectMap, "model", c.DeploymentName) populate(objectMap, "n", c.N) + populate(objectMap, "parallel_tool_calls", c.ParallelToolCalls) populate(objectMap, "presence_penalty", c.PresencePenalty) populate(objectMap, "response_format", c.ResponseFormat) populate(objectMap, "seed", c.Seed) populate(objectMap, "stop", c.Stop) + populate(objectMap, "stream", c.Stream) + populate(objectMap, "stream_options", c.StreamOptions) populate(objectMap, "temperature", c.Temperature) populate(objectMap, "tool_choice", c.ToolChoice) populate(objectMap, "tools", c.Tools) @@ -2158,7 +2189,7 @@ func (c ChatCompletionsOptions) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the json.Unmarshaller interface for type ChatCompletionsOptions. -func (c *ChatCompletionsOptions) UnmarshalJSON(data []byte) error { +func (c *chatCompletionsOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", c, err) @@ -2187,6 +2218,9 @@ func (c *ChatCompletionsOptions) UnmarshalJSON(data []byte) error { case "logprobs": err = unpopulate(val, "LogProbs", &c.LogProbs) delete(rawMsg, key) + case "max_completion_tokens": + err = unpopulate(val, "MaxCompletionTokens", &c.MaxCompletionTokens) + delete(rawMsg, key) case "max_tokens": err = unpopulate(val, "MaxTokens", &c.MaxTokens) delete(rawMsg, key) @@ -2199,6 +2233,9 @@ func (c *ChatCompletionsOptions) UnmarshalJSON(data []byte) error { case "n": err = unpopulate(val, "N", &c.N) delete(rawMsg, key) + case "parallel_tool_calls": + err = unpopulate(val, "ParallelToolCalls", &c.ParallelToolCalls) + delete(rawMsg, key) case "presence_penalty": err = unpopulate(val, "PresencePenalty", &c.PresencePenalty) delete(rawMsg, key) @@ -2211,6 +2248,12 @@ func (c *ChatCompletionsOptions) UnmarshalJSON(data []byte) error { case "stop": err = unpopulate(val, "Stop", &c.Stop) delete(rawMsg, key) + case "stream": + err = unpopulate(val, "Stream", &c.Stream) + delete(rawMsg, key) + case "stream_options": + err = unpopulate(val, "StreamOptions", &c.StreamOptions) + delete(rawMsg, key) case "temperature": err = unpopulate(val, "Temperature", &c.Temperature) delete(rawMsg, key) @@ -3064,7 +3107,7 @@ func (c *CompletionsLogProbabilityModel) UnmarshalJSON(data []byte) error { } // MarshalJSON implements the json.Marshaller interface for type CompletionsOptions. -func (c CompletionsOptions) MarshalJSON() ([]byte, error) { +func (c completionsOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "best_of", c.BestOf) populate(objectMap, "echo", c.Echo) @@ -3078,6 +3121,8 @@ func (c CompletionsOptions) MarshalJSON() ([]byte, error) { populate(objectMap, "prompt", c.Prompt) populate(objectMap, "seed", c.Seed) populate(objectMap, "stop", c.Stop) + populate(objectMap, "stream", c.Stream) + populate(objectMap, "stream_options", c.StreamOptions) populate(objectMap, "suffix", c.Suffix) populate(objectMap, "temperature", c.Temperature) populate(objectMap, "top_p", c.TopP) @@ -3086,7 +3131,7 @@ func (c CompletionsOptions) MarshalJSON() ([]byte, error) { } // UnmarshalJSON implements the json.Unmarshaller interface for type CompletionsOptions. -func (c *CompletionsOptions) UnmarshalJSON(data []byte) error { +func (c *completionsOptions) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", c, err) @@ -3130,6 +3175,12 @@ func (c *CompletionsOptions) UnmarshalJSON(data []byte) error { case "stop": err = unpopulate(val, "Stop", &c.Stop) delete(rawMsg, key) + case "stream": + err = unpopulate(val, "Stream", &c.Stream) + delete(rawMsg, key) + case "stream_options": + err = unpopulate(val, "StreamOptions", &c.StreamOptions) + delete(rawMsg, key) case "suffix": err = unpopulate(val, "Suffix", &c.Suffix) delete(rawMsg, key) @@ -3154,7 +3205,9 @@ func (c *CompletionsOptions) UnmarshalJSON(data []byte) error { func (c CompletionsUsage) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "completion_tokens", c.CompletionTokens) + populate(objectMap, "completion_tokens_details", c.CompletionTokensDetails) populate(objectMap, "prompt_tokens", c.PromptTokens) + populate(objectMap, "prompt_tokens_details", c.PromptTokensDetails) populate(objectMap, "total_tokens", c.TotalTokens) return json.Marshal(objectMap) } @@ -3171,9 +3224,15 @@ func (c *CompletionsUsage) UnmarshalJSON(data []byte) error { case "completion_tokens": err = unpopulate(val, "CompletionTokens", &c.CompletionTokens) delete(rawMsg, key) + case "completion_tokens_details": + err = unpopulate(val, "CompletionTokensDetails", &c.CompletionTokensDetails) + delete(rawMsg, key) case "prompt_tokens": err = unpopulate(val, "PromptTokens", &c.PromptTokens) delete(rawMsg, key) + case "prompt_tokens_details": + err = unpopulate(val, "PromptTokensDetails", &c.PromptTokensDetails) + delete(rawMsg, key) case "total_tokens": err = unpopulate(val, "TotalTokens", &c.TotalTokens) delete(rawMsg, key) @@ -3185,6 +3244,60 @@ func (c *CompletionsUsage) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CompletionsUsageCompletionTokensDetails. +func (c CompletionsUsageCompletionTokensDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "reasoning_tokens", c.ReasoningTokens) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CompletionsUsageCompletionTokensDetails. +func (c *CompletionsUsageCompletionTokensDetails) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "reasoning_tokens": + err = unpopulate(val, "ReasoningTokens", &c.ReasoningTokens) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type CompletionsUsagePromptTokensDetails. +func (c CompletionsUsagePromptTokensDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "cached_tokens", c.CachedTokens) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CompletionsUsagePromptTokensDetails. +func (c *CompletionsUsagePromptTokensDetails) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "cached_tokens": + err = unpopulate(val, "CachedTokens", &c.CachedTokens) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ContentFilterBlocklistIDResult. func (c ContentFilterBlocklistIDResult) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -3255,6 +3368,72 @@ func (c *ContentFilterCitedDetectionResult) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ContentFilterCompletionTextSpan. +func (c ContentFilterCompletionTextSpan) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "completion_end_offset", c.CompletionEndOffset) + populate(objectMap, "completion_start_offset", c.CompletionStartOffset) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContentFilterCompletionTextSpan. +func (c *ContentFilterCompletionTextSpan) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "completion_end_offset": + err = unpopulate(val, "CompletionEndOffset", &c.CompletionEndOffset) + delete(rawMsg, key) + case "completion_start_offset": + err = unpopulate(val, "CompletionStartOffset", &c.CompletionStartOffset) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ContentFilterCompletionTextSpanResult. +func (c ContentFilterCompletionTextSpanResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "details", c.Details) + populate(objectMap, "detected", c.Detected) + populate(objectMap, "filtered", c.Filtered) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContentFilterCompletionTextSpanResult. +func (c *ContentFilterCompletionTextSpanResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "details": + err = unpopulate(val, "Details", &c.Details) + delete(rawMsg, key) + case "detected": + err = unpopulate(val, "Detected", &c.Detected) + delete(rawMsg, key) + case "filtered": + err = unpopulate(val, "Filtered", &c.Filtered) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ContentFilterDetailedResults. func (c ContentFilterDetailedResults) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -3418,6 +3597,7 @@ func (c ContentFilterResultsForChoice) MarshalJSON() ([]byte, error) { populate(objectMap, "protected_material_text", c.ProtectedMaterialText) populate(objectMap, "self_harm", c.SelfHarm) populate(objectMap, "sexual", c.Sexual) + populate(objectMap, "ungrounded_material", c.UngroundedMaterial) populate(objectMap, "violence", c.Violence) return json.Marshal(objectMap) } @@ -3455,6 +3635,9 @@ func (c *ContentFilterResultsForChoice) UnmarshalJSON(data []byte) error { case "sexual": err = unpopulate(val, "Sexual", &c.Sexual) delete(rawMsg, key) + case "ungrounded_material": + err = unpopulate(val, "UngroundedMaterial", &c.UngroundedMaterial) + delete(rawMsg, key) case "violence": err = unpopulate(val, "Violence", &c.Violence) delete(rawMsg, key) diff --git a/sdk/ai/azopenai/testdata/package-lock.json b/sdk/ai/azopenai/testdata/package-lock.json index a8bce4edfcf8..811d965915c4 100644 --- a/sdk/ai/azopenai/testdata/package-lock.json +++ b/sdk/ai/azopenai/testdata/package-lock.json @@ -8,10 +8,10 @@ "name": "testdata", "version": "0.1.0", "dependencies": { - "@azure-tools/typespec-autorest": "^0.44.1", - "@azure-tools/typespec-azure-core": "~0.44.0", - "@typespec/compiler": "^0.58.1", - "@typespec/openapi3": "~0.58.0" + "@azure-tools/typespec-autorest": "~0.47.0", + "@azure-tools/typespec-azure-core": "~0.47.0", + "@typespec/compiler": "^0.61.2", + "@typespec/openapi3": "~0.61.0" } }, "node_modules/@apidevtools/swagger-methods": { @@ -20,40 +20,43 @@ "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg==" }, "node_modules/@azure-tools/typespec-autorest": { - "version": "0.44.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.44.1.tgz", - "integrity": "sha512-lw/iM659GuFgckDeRFFu0vx6wGBy814n+mjzbpi0Qwjvj8/hYULSjpty9P4WBDE30rYCUde1pWX5nK6TnwhOkQ==", + "version": "0.47.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.47.0.tgz", + "integrity": "sha512-uYkk8mnzekSMhJKU3RS0cXvKPH0vbkonthYoPe7/vxZ7tWv4xJLSglV2v3m3QElFgvNebNVoBOEWSY8Kz/ip2Q==", + "license": "MIT", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.44.0", - "@azure-tools/typespec-azure-resource-manager": "~0.44.0", - "@azure-tools/typespec-client-generator-core": "~0.44.2", - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/openapi": "~0.58.0", - "@typespec/rest": "~0.58.0", - "@typespec/versioning": "~0.58.0" + "@azure-tools/typespec-azure-core": "~0.47.0", + "@azure-tools/typespec-azure-resource-manager": "~0.47.0", + "@azure-tools/typespec-client-generator-core": "~0.47.0", + "@typespec/compiler": "~0.61.0", + "@typespec/http": "~0.61.0", + "@typespec/openapi": "~0.61.0", + "@typespec/rest": "~0.61.0", + "@typespec/versioning": "~0.61.0" } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.44.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.44.0.tgz", - "integrity": "sha512-d11QK2v5fOZH8YUqf42FsqHEirKCHzeKFq4Uo/51BXCXmJJahsTaFMAG2M0GoJe8tmTHeMijStnVMfzcGNqCAA==", + "version": "0.47.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.47.0.tgz", + "integrity": "sha512-RcBC5+dE1BVXTrUkkKULTImGxzM/ea3P3IL2kr9pk7r1uqF7D4CGqEKHFTg5L6QUtqc1f+zgTgQTNn6t4gI92w==", + "license": "MIT", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/rest": "~0.58.0" + "@typespec/compiler": "~0.61.0", + "@typespec/http": "~0.61.0", + "@typespec/rest": "~0.61.0" } }, "node_modules/@azure-tools/typespec-azure-resource-manager": { - "version": "0.44.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.44.0.tgz", - "integrity": "sha512-m4dG41at6En1swbxlvCDl1v4Mvrfp17acDnRxEcd4SdKP2R9eVS2mBy1tSuFtMcJlOnoBZ5CxQgk+Osg/Q9nmA==", + "version": "0.47.1", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-resource-manager/-/typespec-azure-resource-manager-0.47.1.tgz", + "integrity": "sha512-ZTrnHwPsc6aMVu6QghF7tPcKPVkt/ErHiEGP+vPXtb9iQh8YKMkkAl6jpvfnqMUqa1h3JkvOBCZM9w5FA84a6Q==", + "license": "MIT", "peer": true, "dependencies": { "change-case": "~5.4.4", @@ -63,18 +66,19 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.44.0", - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/openapi": "~0.58.0", - "@typespec/rest": "~0.58.0", - "@typespec/versioning": "~0.58.0" + "@azure-tools/typespec-azure-core": "~0.47.0", + "@typespec/compiler": "~0.61.0", + "@typespec/http": "~0.61.0", + "@typespec/openapi": "~0.61.0", + "@typespec/rest": "~0.61.0", + "@typespec/versioning": "~0.61.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.44.3", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.44.3.tgz", - "integrity": "sha512-HXjxQs7ELrTuIDqOjlYhP4rM4AXb143klbiM8dkEGtqNBRCk77gVCGYVH1M3kWKAEs0dQKhzoUukscqRsfELuw==", + "version": "0.47.3", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.47.3.tgz", + "integrity": "sha512-13knZRDFBlVTw61vbhAnvQzttnqPRwHK0+YI/3QbYRN77j/Kv3zXFPeCcromz31exg3Y/Q8qD24mJ1Oikab2mA==", + "license": "MIT", "peer": true, "dependencies": { "change-case": "~5.4.4", @@ -84,12 +88,12 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.44.0", - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/openapi": "~0.58.0", - "@typespec/rest": "~0.58.0", - "@typespec/versioning": "~0.58.0" + "@azure-tools/typespec-azure-core": "~0.47.0", + "@typespec/compiler": "~0.61.0", + "@typespec/http": "~0.61.0", + "@typespec/openapi": "~0.61.0", + "@typespec/rest": "~0.61.0", + "@typespec/versioning": "~0.61.0" } }, "node_modules/@babel/code-frame": { @@ -323,23 +327,24 @@ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==" }, "node_modules/@typespec/compiler": { - "version": "0.58.1", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.58.1.tgz", - "integrity": "sha512-bVxxM35r40OtuL4+/9W/g1EevlnWnW6i151nsZAFOJj1xWHoE2G9zkx5/Feic8OlzArjhGGLJOLH3Ez1Wrw35A==", + "version": "0.61.2", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.61.2.tgz", + "integrity": "sha512-6QxYJd09VWssd/BvY+8eBxTVv085s1UNK63FdPrgT2lgI+j8VMMcpNR9m5l1zWlgGDM7sniA/Or8VCdVA6jerg==", + "license": "MIT", "dependencies": { "@babel/code-frame": "~7.24.7", - "ajv": "~8.16.0", + "ajv": "~8.17.1", "change-case": "~5.4.4", "globby": "~14.0.2", "mustache": "~4.2.0", - "picocolors": "~1.0.1", - "prettier": "~3.3.2", + "picocolors": "~1.1.0", + "prettier": "~3.3.3", "prompts": "~2.4.2", - "semver": "^7.6.2", + "semver": "^7.6.3", "temporal-polyfill": "^0.2.5", "vscode-languageserver": "~9.0.1", - "vscode-languageserver-textdocument": "~1.0.11", - "yaml": "~2.4.5", + "vscode-languageserver-textdocument": "~1.0.12", + "yaml": "~2.5.1", "yargs": "~17.7.2" }, "bin": { @@ -351,37 +356,46 @@ } }, "node_modules/@typespec/http": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.58.0.tgz", - "integrity": "sha512-jQpkugg9AZVrNDMkDIgZRpIoRkkU2b0LtKWqMGg33MItYj9/DYSgDtY7xb7oCBppRtFFZ/h138HyhYl3zQxZRg==", + "version": "0.61.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.61.0.tgz", + "integrity": "sha512-7+AYHkzkc+p652GY9BcEbXY4OZa1fTr03MVmZeafvmbQbXfyzUU9eJld13M3v6NaUWqXWZ7nBNMISyKiXp/kSw==", + "license": "MIT", "peer": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0" + "@typespec/compiler": "~0.61.0", + "@typespec/streams": "~0.61.0" + }, + "peerDependenciesMeta": { + "@typespec/streams": { + "optional": true + } } }, "node_modules/@typespec/openapi": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.58.0.tgz", - "integrity": "sha512-gu6nXfmpfZrfq8Etpgl1dpMfsXii7EzQyhZgsPhIy7ZwV5bDmFk1/oyhTqIpWrnr4pD3r151T2BQjzJefjf15A==", + "version": "0.61.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.61.0.tgz", + "integrity": "sha512-3AF319Ae4yGVOscsCLQeedXUJJcL/NdGOR2/e/nFiL/AOVdgLfIRnpR0Ad9Zj9XAESh1fq9XSu4Mi7N1k4V7rw==", + "license": "MIT", "peer": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0" + "@typespec/compiler": "~0.61.0", + "@typespec/http": "~0.61.0" } }, "node_modules/@typespec/openapi3": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi3/-/openapi3-0.58.0.tgz", - "integrity": "sha512-G9t9CWT9cN6ip39dLZaE6JdEDxGsFyOUxA2s6a087rweoTH85XzsFiQL7uiUD8vHhXyEo6tF6sy3LMZVN0BsoQ==", + "version": "0.61.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi3/-/openapi3-0.61.0.tgz", + "integrity": "sha512-ALLsTkK1UiJBzvygV1Zk/yZaym+lOWroGeEUhQNXYShsq+/GLZkK0rl8sd76Gigq+TVXKMOEwUUvgfws/LMUJw==", + "license": "MIT", "dependencies": { "@readme/openapi-parser": "~2.6.0", - "yaml": "~2.4.5" + "yaml": "~2.5.1" }, "bin": { "tsp-openapi3": "cmd/tsp-openapi3.js" @@ -390,46 +404,49 @@ "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0", - "@typespec/openapi": "~0.58.0", - "@typespec/versioning": "~0.58.0" + "@typespec/compiler": "~0.61.0", + "@typespec/http": "~0.61.0", + "@typespec/openapi": "~0.61.0", + "@typespec/versioning": "~0.61.0" } }, "node_modules/@typespec/rest": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.58.0.tgz", - "integrity": "sha512-QBxkED0/KQKG22pwzis0n7BY+uLMSZZPSoVe/ESBFika9n5/yyeQ0l58xbFFwwfxAxe4xwuZ5PNwTdEXZbzr5g==", + "version": "0.61.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.61.0.tgz", + "integrity": "sha512-L9Oyor+l42p6S8GE+UvaZTi+dcu6WubGZKmaBRpX8mCZGsa69EgIK8DQoyxrfMcxAO4I5U0sfkzCKwCVFtRr9g==", + "license": "MIT", "peer": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0", - "@typespec/http": "~0.58.0" + "@typespec/compiler": "~0.61.0", + "@typespec/http": "~0.61.0" } }, "node_modules/@typespec/versioning": { - "version": "0.58.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.58.0.tgz", - "integrity": "sha512-brnQQ3wKWh4AbgqmnVLj+8zyOaDk9VPWg4QBecdQxzz7PrSrlAzIzRfeIyr67+hwi/0SvkTAB6GNH7YYTypKGA==", + "version": "0.61.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.61.0.tgz", + "integrity": "sha512-PIIug6eg3zc7E+BBHyNHHQD+OBq3FU465nhKrLEp35iVji/sYFuPc1ywnELDuwJVRWm6nvqNL1vtnc+4lEk+oA==", + "license": "MIT", "peer": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.58.0" + "@typespec/compiler": "~0.61.0" } }, "node_modules/ajv": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.16.0.tgz", - "integrity": "sha512-F0twR8U1ZU67JIEtekUcLkXkoO5mMMmgGD8sK/xUFzJ805jxHQl92hImFAqqXMyMYjSPOyUPAwHYhB72g5sTXw==", + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2", - "uri-js": "^4.4.1" + "require-from-string": "^2.0.2" }, "funding": { "type": "github", @@ -582,6 +599,12 @@ "node": ">=8.6.0" } }, + "node_modules/fast-uri": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.0.3.tgz", + "integrity": "sha512-aLrHthzCjH5He4Z2H9YZ+v6Ujb9ocRuW6ZzkJQOrTxleEijANq4v1TsaPaVG1PZcuurEzrLcWRyYBYXD5cEiaw==", + "license": "BSD-3-Clause" + }, "node_modules/fastq": { "version": "1.17.1", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", @@ -798,9 +821,10 @@ } }, "node_modules/picocolors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", - "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", @@ -817,6 +841,7 @@ "version": "8.0.0", "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", + "license": "MIT", "peer": true, "engines": { "node": ">=4" @@ -848,14 +873,6 @@ "node": ">= 6" } }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "engines": { - "node": ">=6" - } - }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -928,9 +945,10 @@ } }, "node_modules/semver": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", - "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -1024,14 +1042,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dependencies": { - "punycode": "^2.1.0" - } - }, "node_modules/vscode-jsonrpc": { "version": "8.2.0", "resolved": "https://registry.npmjs.org/vscode-jsonrpc/-/vscode-jsonrpc-8.2.0.tgz", @@ -1061,9 +1071,10 @@ } }, "node_modules/vscode-languageserver-textdocument": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.11.tgz", - "integrity": "sha512-X+8T3GoiwTVlJbicx/sIAF+yuJAqz8VvwJyoMVhwEMoEKE/fkDmrqUgDMyBECcM2A2frVZIUj5HI/ErRXCfOeA==" + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz", + "integrity": "sha512-cxWNPesCnQCcMPeenjKKsOCKQZ/L6Tv19DTRIGuLWe32lyzWhihGVJ/rcckZXJxfdKCFvRLS3fpBIsV/ZGX4zA==", + "license": "MIT" }, "node_modules/vscode-languageserver-types": { "version": "3.17.5", @@ -1125,9 +1136,10 @@ } }, "node_modules/yaml": { - "version": "2.4.5", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.5.tgz", - "integrity": "sha512-aBx2bnqDzVOyNKfsysjA2ms5ZlnjSAW2eG3/L5G/CSujfjLJTJsEw1bGw8kCf04KodQWk1pxlGnZ56CRxiawmg==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.5.1.tgz", + "integrity": "sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==", + "license": "ISC", "bin": { "yaml": "bin.mjs" }, diff --git a/sdk/ai/azopenai/testdata/package.json b/sdk/ai/azopenai/testdata/package.json index ee6b5d74d070..22333c773104 100644 --- a/sdk/ai/azopenai/testdata/package.json +++ b/sdk/ai/azopenai/testdata/package.json @@ -7,10 +7,10 @@ "build": "tsp compile ./TempTypeSpecFiles/OpenAI.Inference" }, "dependencies": { - "@azure-tools/typespec-autorest": "^0.44.1", - "@azure-tools/typespec-azure-core": "~0.44.0", - "@typespec/compiler": "^0.58.1", - "@typespec/openapi3": "~0.58.0" + "@azure-tools/typespec-autorest": "~0.47.0", + "@azure-tools/typespec-azure-core": "~0.47.0", + "@typespec/compiler": "^0.61.2", + "@typespec/openapi3": "~0.61.0" }, "private": true } diff --git a/sdk/ai/azopenai/testdata/rename_custom_and_tests.ps1 b/sdk/ai/azopenai/testdata/rename_custom_and_tests.ps1 new file mode 100644 index 000000000000..c0c13aa44104 --- /dev/null +++ b/sdk/ai/azopenai/testdata/rename_custom_and_tests.ps1 @@ -0,0 +1,40 @@ +param ( + [switch]$Reverse +) + +# Function to rename files +function Rename-GoFiles { + param ( + [string]$Directory, + [switch]$Reverse + ) + + $files = if ($Reverse) { + Get-ChildItem -Path $Directory -Filter "*.go" | Where-Object { + $_.Name -match "^_(custom.*\.go|.*_test\.go)$" + } + } else { + Get-ChildItem -Path $Directory -Filter "*.go" | Where-Object { + $_.Name -match "^(custom.*\.go|[^_].*_test\.go)$" + } + } + + foreach ($file in $files) { + $newName = if ($Reverse) { + # Remove the leading underscore if reversing + $file.Name -replace "^_", "" + } else { + # Add a leading underscore to ignore the file + "_" + $file.Name + } + + # Rename the file + Rename-Item -Path $file.FullName -NewName $newName + } +} + +# Get the current directory +$directory = Get-Location + +# Call the function to rename files +Rename-GoFiles -Directory $directory -Reverse:$Reverse \ No newline at end of file diff --git a/sdk/ai/azopenai/testdata/tsp-location.yaml b/sdk/ai/azopenai/testdata/tsp-location.yaml index 7de2b5694bc5..ae5adde714e0 100644 --- a/sdk/ai/azopenai/testdata/tsp-location.yaml +++ b/sdk/ai/azopenai/testdata/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/cognitiveservices/OpenAI.Inference -# official release commit for 2024-08-01-preview -commit: de278c0e1b5bcfe706e5adb5b082e5a6fc9e4318 +# official release commit for 2024-10-01-preview +commit: d1ae99fabc48ee2ee818a4ea96be5cdc332adc2a repo: Azure/azure-rest-api-specs From e0a090ac7cff1e4481e909e6c79bad31448dac0d Mon Sep 17 00:00:00 2001 From: Ashley Stanton-Nurse Date: Tue, 12 Nov 2024 11:06:20 -0800 Subject: [PATCH 10/33] update for 1.2.0 release (#23728) --- sdk/data/azcosmos/CHANGELOG.md | 6 +----- sdk/data/azcosmos/version.go | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sdk/data/azcosmos/CHANGELOG.md b/sdk/data/azcosmos/CHANGELOG.md index 6e57cc226045..f3d4cc02b4f6 100644 --- a/sdk/data/azcosmos/CHANGELOG.md +++ b/sdk/data/azcosmos/CHANGELOG.md @@ -1,19 +1,15 @@ # Release History -## 1.1.1 (Unreleased) +## 1.2.0 (2024-11-12) ### Features Added * Added API for creating Hierarchical PartitionKeys. See [PR 23577](https://github.com/Azure/azure-sdk-for-go/pull/23577) * Set all Telemetry spans to have the Kind of SpanKindClient. See [PR 23618](https://github.com/Azure/azure-sdk-for-go/pull/23618) * Set request_charge and status_code on all trace spans. See [PR 23652](https://github.com/Azure/azure-sdk-for-go/pull/23652) -### Breaking Changes - ### Bugs Fixed * Pager Telemetry spans are now more consistent with the rest of the spans. See [PR 23658](https://github.com/Azure/azure-sdk-for-go/pull/23658) -### Other Changes - ## 1.1.0 (2024-09-10) ### Features Added diff --git a/sdk/data/azcosmos/version.go b/sdk/data/azcosmos/version.go index 46dcd6652b77..f87eea87be55 100644 --- a/sdk/data/azcosmos/version.go +++ b/sdk/data/azcosmos/version.go @@ -7,5 +7,5 @@ const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos" // serviceLibVersion is the semantic version (see http://semver.org) of this module. - serviceLibVersion = "v1.1.1" + serviceLibVersion = "v1.2.0" ) From 0396de6c6b6edc214af692d2f704bc00c8e20486 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 12 Nov 2024 14:55:07 -0800 Subject: [PATCH 11/33] Sync eng/common directory with azure-sdk-tools for PR 9328 (#23692) * ensure that ChangedServices value within the generated pr diff is always properly an array of strings * upload the changed services as an attachment named AdditionalTags in save-package-properties.yml, to allow PipelineWitness to tag public builds during log processing --------- Co-authored-by: Scott Beddall Co-authored-by: Scott Beddall <45376673+scbedd@users.noreply.github.com> Co-authored-by: Patrick Hallisey --- .../templates/steps/save-package-properties.yml | 13 +++++++++++++ eng/common/scripts/Generate-PR-Diff.ps1 | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/eng/common/pipelines/templates/steps/save-package-properties.yml b/eng/common/pipelines/templates/steps/save-package-properties.yml index 3714c0264388..172191c272dc 100644 --- a/eng/common/pipelines/templates/steps/save-package-properties.yml +++ b/eng/common/pipelines/templates/steps/save-package-properties.yml @@ -32,6 +32,19 @@ steps: -ArtifactPath '${{ parameters.DiffDirectory }}' pwsh: true + # When running in PR mode, we want the detected changed services to be attached to the build as tags. + # However, the public identity does not have the permissions to attach tags to the build. + # Instead, we will save the changed services to a file, attach it as an attachment for PiplineWitness to pick up and utilize. + - pwsh: | + $changedServices = (Get-Content -Path '${{ parameters.DiffDirectory }}/diff.json' -Raw | ConvertFrom-Json).ChangedServices + + if ($changedServices) { + Write-Host "Attaching changed service names to the build for additional tag generation." + $changedServices | ConvertTo-Json -AsArray | Out-File -FilePath $(System.DefaultWorkingDirectory)/tags.json -Encoding utf8 + Write-Host '##vso[task.addattachment type=AdditionalTags;name=AdditionalTags;]$(System.DefaultWorkingDirectory)/tags.json' + } + displayName: Upload tags.json with changed services + - task: Powershell@2 displayName: Save package properties filtered for PR inputs: diff --git a/eng/common/scripts/Generate-PR-Diff.ps1 b/eng/common/scripts/Generate-PR-Diff.ps1 index 5c3d764009fe..355ef612540f 100644 --- a/eng/common/scripts/Generate-PR-Diff.ps1 +++ b/eng/common/scripts/Generate-PR-Diff.ps1 @@ -28,9 +28,9 @@ function Get-ChangedServices [string[]] $ChangedFiles ) - $changedServices = $ChangedFiles | Foreach-Object { if ($_ -match "sdk/([^/]+)") { $matches[1] } } | Sort-Object -Unique + [string[]] $changedServices = $ChangedFiles | Foreach-Object { if ($_ -match "sdk/([^/]+)") { $matches[1] } } | Sort-Object -Unique - return $changedServices + return , $changedServices } if (!(Test-Path $ArtifactPath)) From 94d1c880572781484f9e2ee2a2838d1a3cd426c7 Mon Sep 17 00:00:00 2001 From: Chenjie Shi Date: Wed, 13 Nov 2024 11:24:48 +0800 Subject: [PATCH 12/33] refine typespec release tool (#23735) --- eng/tools/generator/cmd/v2/common/cmdProcessor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/tools/generator/cmd/v2/common/cmdProcessor.go b/eng/tools/generator/cmd/v2/common/cmdProcessor.go index b7018d48d623..e76e36bd1478 100644 --- a/eng/tools/generator/cmd/v2/common/cmdProcessor.go +++ b/eng/tools/generator/cmd/v2/common/cmdProcessor.go @@ -243,7 +243,7 @@ func ExecuteTspClient(path string, args ...string) error { // filter diagnostic errors if len(newErrMsgs) >= 1 && - newErrMsgs[0] == "Diagnostics were reported during compilation. Use the `--debug` flag to see if there is warning diagnostic output." { + strings.HasPrefix(newErrMsgs[0], "Diagnostics were reported during compilation.") { newErrMsgs = newErrMsgs[1:] errDiags := getErrorDiagnostics(strings.Split(stdoutBuffer.String(), "\n")) From 2cb3d25e549639a634891bd9b6c39f13ff282c66 Mon Sep 17 00:00:00 2001 From: ashruti-msft <137055338+ashruti-msft@users.noreply.github.com> Date: Wed, 13 Nov 2024 13:01:57 +0530 Subject: [PATCH 13/33] Added permissions & resourcetype parameters in listblob response (#23687) * one * Add permissions in ListBlobsIncludeItems * Add permissions in ListBlobsIncludeItems * Appending the value to swagger * Added Owner,Group,Permissions,Acl,ResourceType in ListBlob Response --- .../azblob/internal/generated/autorest.md | 24 +++++++++++++++++++ .../azblob/internal/generated/zz_models.go | 5 ++++ 2 files changed, 29 insertions(+) diff --git a/sdk/storage/azblob/internal/generated/autorest.md b/sdk/storage/azblob/internal/generated/autorest.md index ebf5ff9c7ea9..afc96b4d74ff 100644 --- a/sdk/storage/azblob/internal/generated/autorest.md +++ b/sdk/storage/azblob/internal/generated/autorest.md @@ -22,6 +22,30 @@ export-clients: true use: "@autorest/go@4.0.0-preview.65" ``` +### Add Owner,Group,Permissions,Acl,ResourceType in ListBlob Response +``` yaml +directive: +- from: swagger-document + where: $.definitions + transform: > + $.BlobPropertiesInternal.properties["Owner"] = { + "type" : "string", + }; + $.BlobPropertiesInternal.properties["Group"] = { + "type" : "string", + }; + $.BlobPropertiesInternal.properties["Permissions"] = { + "type" : "string", + }; + $.BlobPropertiesInternal.properties["Acl"] = { + "type" : "string", + }; + $.BlobPropertiesInternal.properties["ResourceType"] = { + "type" : "string", + }; + +``` + ### Add permissions in ListBlobsInclude ``` yaml directive: diff --git a/sdk/storage/azblob/internal/generated/zz_models.go b/sdk/storage/azblob/internal/generated/zz_models.go index 72e2ab2d8ae0..753071838967 100644 --- a/sdk/storage/azblob/internal/generated/zz_models.go +++ b/sdk/storage/azblob/internal/generated/zz_models.go @@ -95,6 +95,7 @@ type BlobProperties struct { // REQUIRED LastModified *time.Time `xml:"Last-Modified"` + ACL *string `xml:"Acl"` AccessTier *AccessTier `xml:"AccessTier"` AccessTierChangeTime *time.Time `xml:"AccessTierChangeTime"` AccessTierInferred *bool `xml:"AccessTierInferred"` @@ -124,6 +125,7 @@ type BlobProperties struct { // The name of the encryption scope under which the blob is encrypted. EncryptionScope *string `xml:"EncryptionScope"` ExpiresOn *time.Time `xml:"Expiry-Time"` + Group *string `xml:"Group"` ImmutabilityPolicyExpiresOn *time.Time `xml:"ImmutabilityPolicyUntilDate"` ImmutabilityPolicyMode *ImmutabilityPolicyMode `xml:"ImmutabilityPolicyMode"` IncrementalCopy *bool `xml:"IncrementalCopy"` @@ -133,11 +135,14 @@ type BlobProperties struct { LeaseState *LeaseStateType `xml:"LeaseState"` LeaseStatus *LeaseStatusType `xml:"LeaseStatus"` LegalHold *bool `xml:"LegalHold"` + Owner *string `xml:"Owner"` + Permissions *string `xml:"Permissions"` // If an object is in rehydrate pending state then this header is returned with priority of rehydrate. Valid values are High // and Standard. RehydratePriority *RehydratePriority `xml:"RehydratePriority"` RemainingRetentionDays *int32 `xml:"RemainingRetentionDays"` + ResourceType *string `xml:"ResourceType"` ServerEncrypted *bool `xml:"ServerEncrypted"` TagCount *int32 `xml:"TagCount"` } From 494164b8db615b21543f14423495c8c3890fd414 Mon Sep 17 00:00:00 2001 From: tanyasethi-msft <124860586+tanyasethi-msft@users.noreply.github.com> Date: Wed, 13 Nov 2024 22:00:52 +0530 Subject: [PATCH 14/33] [Storage] Prep for stg 95 GA release (#23742) * Prep for stg 95 GA release * Update CHANGELOG.md format for changelog --- sdk/storage/azblob/CHANGELOG.md | 10 +++------- sdk/storage/azblob/internal/exported/version.go | 2 +- sdk/storage/azdatalake/CHANGELOG.md | 5 +++++ sdk/storage/azdatalake/internal/exported/version.go | 2 +- sdk/storage/azfile/CHANGELOG.md | 9 ++------- sdk/storage/azfile/internal/exported/version.go | 2 +- 6 files changed, 13 insertions(+), 17 deletions(-) diff --git a/sdk/storage/azblob/CHANGELOG.md b/sdk/storage/azblob/CHANGELOG.md index c53205b5de28..07be3af2b83b 100644 --- a/sdk/storage/azblob/CHANGELOG.md +++ b/sdk/storage/azblob/CHANGELOG.md @@ -1,14 +1,10 @@ # Release History -## 1.5.0-beta.2 (Unreleased) +## 1.5.0 (2024-11-13) ### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +* Fix compareHeaders custom sorting algorithm for String To Sign. +* Added permissions & resourcetype parameters in listblob response. ## 1.5.0-beta.1 (2024-10-22) diff --git a/sdk/storage/azblob/internal/exported/version.go b/sdk/storage/azblob/internal/exported/version.go index f59f69fd7aba..3e95fff69a9d 100644 --- a/sdk/storage/azblob/internal/exported/version.go +++ b/sdk/storage/azblob/internal/exported/version.go @@ -8,5 +8,5 @@ package exported const ( ModuleName = "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob" - ModuleVersion = "v1.5.0-beta.2" + ModuleVersion = "v1.5.0" ) diff --git a/sdk/storage/azdatalake/CHANGELOG.md b/sdk/storage/azdatalake/CHANGELOG.md index ea971bc1376c..3a697d9a16db 100644 --- a/sdk/storage/azdatalake/CHANGELOG.md +++ b/sdk/storage/azdatalake/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History +## 1.3.0 (2024-11-13) + +### Features Added +* Fix compareHeaders custom sorting algorithm for String To Sign. + ## 1.3.0-beta.1 (2024-10-23) ### Other Changes diff --git a/sdk/storage/azdatalake/internal/exported/version.go b/sdk/storage/azdatalake/internal/exported/version.go index 40019219f818..79308e13eec8 100644 --- a/sdk/storage/azdatalake/internal/exported/version.go +++ b/sdk/storage/azdatalake/internal/exported/version.go @@ -8,5 +8,5 @@ package exported const ( ModuleName = "github.com/Azure/azure-sdk-for-go/sdk/storage/azdatalake" - ModuleVersion = "v1.3.0-beta.1" + ModuleVersion = "v1.3.0" ) diff --git a/sdk/storage/azfile/CHANGELOG.md b/sdk/storage/azfile/CHANGELOG.md index 5cbc05155859..70ae5cc17da0 100644 --- a/sdk/storage/azfile/CHANGELOG.md +++ b/sdk/storage/azfile/CHANGELOG.md @@ -1,14 +1,9 @@ # Release History -## 1.4.0-beta.2 (Unreleased) +## 1.4.0 (2024-11-13) ### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +* Fix compareHeaders custom sorting algorithm for String To Sign. ## 1.4.0-beta.1 (2024-10-22) diff --git a/sdk/storage/azfile/internal/exported/version.go b/sdk/storage/azfile/internal/exported/version.go index 343c190051b1..ca239b40e7ea 100644 --- a/sdk/storage/azfile/internal/exported/version.go +++ b/sdk/storage/azfile/internal/exported/version.go @@ -8,5 +8,5 @@ package exported const ( ModuleName = "github.com/Azure/azure-sdk-for-go/sdk/storage/azfile" - ModuleVersion = "v1.4.0-beta.2" + ModuleVersion = "v1.4.0" ) From f34ee7a77f813520888b93176e916a3a58a60779 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 13 Nov 2024 10:56:39 -0800 Subject: [PATCH 15/33] Add SparseCheckoutPaths to archetype-typespec-emitter.yml (#23740) Co-authored-by: Wei Hu --- .../templates/archetype-typespec-emitter.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/eng/common/pipelines/templates/archetype-typespec-emitter.yml b/eng/common/pipelines/templates/archetype-typespec-emitter.yml index 5192ea22900d..fd725b3bc7d5 100644 --- a/eng/common/pipelines/templates/archetype-typespec-emitter.yml +++ b/eng/common/pipelines/templates/archetype-typespec-emitter.yml @@ -62,6 +62,11 @@ parameters: type: boolean default: false +# Paths to sparse checkout +- name: SparseCheckoutPaths + type: object + default: [] + extends: template: /eng/pipelines/templates/stages/1es-redirect.yml parameters: @@ -79,6 +84,8 @@ extends: - job: Build steps: - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml + parameters: + Paths: ${{ parameters.SparseCheckoutPaths }} - ${{ parameters.InitializationSteps }} @@ -411,7 +418,9 @@ extends: buildArtifactsPath: $(Pipeline.Workspace)/build_artifacts steps: - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml - + parameters: + Paths: ${{ parameters.SparseCheckoutPaths }} + - download: current artifact: build_artifacts displayName: Download build artifacts From 51b1b9345dd1dabdade52af88ce6c666fd3aa3f5 Mon Sep 17 00:00:00 2001 From: Gerardo Lecaros <10088504+glecaros@users.noreply.github.com> Date: Wed, 13 Nov 2024 12:01:10 -0800 Subject: [PATCH 16/33] [azopenai] Update azopenai changelog. (#23732) --- sdk/ai/azopenai/CHANGELOG.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sdk/ai/azopenai/CHANGELOG.md b/sdk/ai/azopenai/CHANGELOG.md index 1eba63768e31..0dfa51b80845 100644 --- a/sdk/ai/azopenai/CHANGELOG.md +++ b/sdk/ai/azopenai/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 0.7.1 (Unreleased) +## 0.7.1 (2024-11-13) ### Features Added @@ -14,10 +14,6 @@ - `GetCompletions` and `GetCompletionsStream` now receive different options (`CompletionsOptions` and `CompletionsStreamOptions` respectively) - `GetChatCompletions` and `GetChatCompletionsStream` now receive different options (`ChatCompletionsOptions` and `ChatCompletionsStreamOptions` respectively) -### Bugs Fixed - -### Other Changes - ## 0.7.0 (2024-10-14) ### Features Added From e6cc39e4b7ff747af08e1aec7f8e3c3bdddb5307 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 13 Nov 2024 12:04:45 -0800 Subject: [PATCH 17/33] Fix missing stress matrix display name filter (#23726) Co-authored-by: Ben Broderick Phillips --- .../scripts/stress-testing/stress-test-deployment-lib.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 index 7cf55c758487..48bab2c49ebe 100644 --- a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 +++ b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 @@ -155,8 +155,9 @@ function DeployStressTests( -filters $filters ` -CI:$CI ` -namespaceOverride $Namespace ` - -MatrixSelection $MatrixSelection ` -MatrixFileName $MatrixFileName ` + -MatrixSelection $MatrixSelection ` + -MatrixDisplayNameFilter $MatrixDisplayNameFilter ` -MatrixFilters $MatrixFilters ` -MatrixReplace $MatrixReplace ` -MatrixNonSparseParameters $MatrixNonSparseParameters) From 73defdb1c9b917cef806da77d1a1900528d4d78f Mon Sep 17 00:00:00 2001 From: Grace Wilcox <43627800+gracewilcox@users.noreply.github.com> Date: Wed, 13 Nov 2024 13:09:52 -0800 Subject: [PATCH 18/33] update date (#23746) --- sdk/security/keyvault/azadmin/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/security/keyvault/azadmin/CHANGELOG.md b/sdk/security/keyvault/azadmin/CHANGELOG.md index 95e910daf178..d519cf4a3600 100644 --- a/sdk/security/keyvault/azadmin/CHANGELOG.md +++ b/sdk/security/keyvault/azadmin/CHANGELOG.md @@ -1,6 +1,6 @@ ## Release History -### 1.3.0 (2024-11-07) +### 1.3.0 (2024-11-13) #### Features Added * Added API Version support. Users can now change the default API Version by setting ClientOptions.APIVersion From 8cfb8a728bce221812d5c4655eacd64b62024133 Mon Sep 17 00:00:00 2001 From: Richard Park <51494936+richardpark-msft@users.noreply.github.com> Date: Wed, 13 Nov 2024 14:46:46 -0800 Subject: [PATCH 19/33] [azopenai] non-existing deployments fail in a different way now. (#23747) --- .../azopenai/client_chat_completions_test.go | 19 ------------------- sdk/ai/azopenai/client_embeddings_test.go | 13 ------------- 2 files changed, 32 deletions(-) diff --git a/sdk/ai/azopenai/client_chat_completions_test.go b/sdk/ai/azopenai/client_chat_completions_test.go index 743f884b8dbc..2fafb15b691f 100644 --- a/sdk/ai/azopenai/client_chat_completions_test.go +++ b/sdk/ai/azopenai/client_chat_completions_test.go @@ -300,25 +300,6 @@ func TestClient_GetChatCompletionsStream(t *testing.T) { }) } -func TestClient_GetChatCompletions_InvalidModel(t *testing.T) { - client := newTestClient(t, azureOpenAI.ChatCompletions.Endpoint) - - _, err := client.GetChatCompletions(context.Background(), azopenai.ChatCompletionsOptions{ - Messages: []azopenai.ChatRequestMessageClassification{ - &azopenai.ChatRequestUserMessage{ - Content: azopenai.NewChatRequestUserMessageContent("Count to 100, with a comma between each number and no newlines. E.g., 1, 2, 3, ..."), - }, - }, - MaxTokens: to.Ptr(int32(1024)), - Temperature: to.Ptr(float32(0.0)), - DeploymentName: to.Ptr("invalid model name"), - }, nil) - - var respErr *azcore.ResponseError - require.ErrorAs(t, err, &respErr) - require.Equal(t, "DeploymentNotFound", respErr.ErrorCode) -} - func TestClient_GetChatCompletionsStream_Error(t *testing.T) { if recording.GetRecordMode() == recording.PlaybackMode { t.Skip() diff --git a/sdk/ai/azopenai/client_embeddings_test.go b/sdk/ai/azopenai/client_embeddings_test.go index aae58c156b1f..e3de190150f2 100644 --- a/sdk/ai/azopenai/client_embeddings_test.go +++ b/sdk/ai/azopenai/client_embeddings_test.go @@ -12,23 +12,10 @@ import ( "testing" "github.com/Azure/azure-sdk-for-go/sdk/ai/azopenai" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/stretchr/testify/require" ) -func TestClient_GetEmbeddings_InvalidModel(t *testing.T) { - client := newTestClient(t, azureOpenAI.Embeddings.Endpoint) - - _, err := client.GetEmbeddings(context.Background(), azopenai.EmbeddingsOptions{ - DeploymentName: to.Ptr("thisdoesntexist"), - }, nil) - - var respErr *azcore.ResponseError - require.ErrorAs(t, err, &respErr) - require.Equal(t, "DeploymentNotFound", respErr.ErrorCode) -} - func TestClient_GetEmbeddings(t *testing.T) { testFn := func(t *testing.T, epm endpointWithModel) { client := newTestClient(t, epm.Endpoint) From 58eae26adb7bc70bc6c5fa9aa478e3f77d0a82af Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 13 Nov 2024 15:59:11 -0800 Subject: [PATCH 20/33] Increment package version after release of ai/azopenai (#23750) --- sdk/ai/azopenai/CHANGELOG.md | 10 ++++++++++ sdk/ai/azopenai/version.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/ai/azopenai/CHANGELOG.md b/sdk/ai/azopenai/CHANGELOG.md index 0dfa51b80845..9a568c091f5f 100644 --- a/sdk/ai/azopenai/CHANGELOG.md +++ b/sdk/ai/azopenai/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 0.7.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 0.7.1 (2024-11-13) ### Features Added diff --git a/sdk/ai/azopenai/version.go b/sdk/ai/azopenai/version.go index a958efc44c9c..e9ee74d391e0 100644 --- a/sdk/ai/azopenai/version.go +++ b/sdk/ai/azopenai/version.go @@ -7,5 +7,5 @@ package azopenai const ( - version = "v0.7.1" + version = "v0.7.2" ) From 5beffa75f904a74044f09774d06a9b581b73315d Mon Sep 17 00:00:00 2001 From: Judy Liu Date: Thu, 14 Nov 2024 17:02:48 +0800 Subject: [PATCH 21/33] [Release] sdk/resourcemanager/hybridcompute/armhybridcompute/2.1.0-beta.1 generation from spec commit: 63d530d0def1c624f5d42d39170ff4ac196522e2 (#23753) --- .../armhybridcompute/CHANGELOG.md | 50 + .../armhybridcompute/autorest.md | 8 +- .../armhybridcompute/client_factory.go | 24 + .../armhybridcompute/constants.go | 60 +- .../extensionmetadata_client.go | 8 +- .../extensionmetadata_client_example_test.go | 4 +- .../armhybridcompute/fake/gateways_server.go | 340 +++++++ .../fake/machineruncommands_server.go | 284 ++++++ .../armhybridcompute/fake/server_factory.go | 17 + .../armhybridcompute/fake/settings_server.go | 222 +++++ .../armhybridcompute/gateways_client.go | 446 +++++++++ .../gateways_client_example_test.go | 242 +++++ .../licenseprofiles_client.go | 26 +- .../licenseprofiles_client_example_test.go | 10 +- .../armhybridcompute/licenses_client.go | 36 +- .../licenses_client_example_test.go | 14 +- .../machineextensions_client.go | 30 +- .../machineextensions_client_example_test.go | 10 +- .../machineruncommands_client.go | 349 +++++++ .../machineruncommands_client_example_test.go | 262 ++++++ .../armhybridcompute/machines_client.go | 36 +- .../machines_client_example_test.go | 80 +- .../armhybridcompute/management_client.go | 6 +- .../management_client_example_test.go | 2 +- .../hybridcompute/armhybridcompute/models.go | 355 ++++++- .../armhybridcompute/models_serde.go | 881 +++++++++++++++++- .../armhybridcompute/networkprofile_client.go | 4 +- .../networkprofile_client_example_test.go | 8 +- ...ksecurityperimeterconfigurations_client.go | 14 +- ...meterconfigurations_client_example_test.go | 6 +- .../armhybridcompute/operations_client.go | 4 +- .../operations_client_example_test.go | 2 +- .../hybridcompute/armhybridcompute/options.go | 74 ++ .../privateendpointconnections_client.go | 20 +- ...endpointconnections_client_example_test.go | 8 +- .../privatelinkresources_client.go | 8 +- ...rivatelinkresources_client_example_test.go | 4 +- .../privatelinkscopes_client.go | 34 +- .../privatelinkscopes_client_example_test.go | 18 +- .../armhybridcompute/responses.go | 73 ++ .../armhybridcompute/settings_client.go | 289 ++++++ .../settings_client_example_test.go | 124 +++ 42 files changed, 4302 insertions(+), 190 deletions(-) create mode 100644 sdk/resourcemanager/hybridcompute/armhybridcompute/fake/gateways_server.go create mode 100644 sdk/resourcemanager/hybridcompute/armhybridcompute/fake/machineruncommands_server.go create mode 100644 sdk/resourcemanager/hybridcompute/armhybridcompute/fake/settings_server.go create mode 100644 sdk/resourcemanager/hybridcompute/armhybridcompute/gateways_client.go create mode 100644 sdk/resourcemanager/hybridcompute/armhybridcompute/gateways_client_example_test.go create mode 100644 sdk/resourcemanager/hybridcompute/armhybridcompute/machineruncommands_client.go create mode 100644 sdk/resourcemanager/hybridcompute/armhybridcompute/machineruncommands_client_example_test.go create mode 100644 sdk/resourcemanager/hybridcompute/armhybridcompute/settings_client.go create mode 100644 sdk/resourcemanager/hybridcompute/armhybridcompute/settings_client_example_test.go diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/CHANGELOG.md b/sdk/resourcemanager/hybridcompute/armhybridcompute/CHANGELOG.md index b73e0e029cf0..5199b45d7181 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/CHANGELOG.md +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/CHANGELOG.md @@ -1,5 +1,55 @@ # Release History +## 2.1.0-beta.1 (2024-11-14) +### Features Added + +- New enum type `ExecutionState` with values `ExecutionStateCanceled`, `ExecutionStateFailed`, `ExecutionStatePending`, `ExecutionStateRunning`, `ExecutionStateSucceeded`, `ExecutionStateTimedOut`, `ExecutionStateUnknown` +- New enum type `ExtensionsStatusLevelTypes` with values `ExtensionsStatusLevelTypesError`, `ExtensionsStatusLevelTypesInfo`, `ExtensionsStatusLevelTypesWarning` +- New enum type `GatewayType` with values `GatewayTypePublic` +- New function `*ClientFactory.NewGatewaysClient() *GatewaysClient` +- New function `*ClientFactory.NewMachineRunCommandsClient() *MachineRunCommandsClient` +- New function `*ClientFactory.NewSettingsClient() *SettingsClient` +- New function `NewGatewaysClient(string, azcore.TokenCredential, *arm.ClientOptions) (*GatewaysClient, error)` +- New function `*GatewaysClient.BeginCreateOrUpdate(context.Context, string, string, Gateway, *GatewaysClientBeginCreateOrUpdateOptions) (*runtime.Poller[GatewaysClientCreateOrUpdateResponse], error)` +- New function `*GatewaysClient.BeginDelete(context.Context, string, string, *GatewaysClientBeginDeleteOptions) (*runtime.Poller[GatewaysClientDeleteResponse], error)` +- New function `*GatewaysClient.Get(context.Context, string, string, *GatewaysClientGetOptions) (GatewaysClientGetResponse, error)` +- New function `*GatewaysClient.NewListByResourceGroupPager(string, *GatewaysClientListByResourceGroupOptions) *runtime.Pager[GatewaysClientListByResourceGroupResponse]` +- New function `*GatewaysClient.NewListBySubscriptionPager(*GatewaysClientListBySubscriptionOptions) *runtime.Pager[GatewaysClientListBySubscriptionResponse]` +- New function `*GatewaysClient.Update(context.Context, string, string, GatewayUpdate, *GatewaysClientUpdateOptions) (GatewaysClientUpdateResponse, error)` +- New function `NewMachineRunCommandsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*MachineRunCommandsClient, error)` +- New function `*MachineRunCommandsClient.BeginCreateOrUpdate(context.Context, string, string, string, MachineRunCommand, *MachineRunCommandsClientBeginCreateOrUpdateOptions) (*runtime.Poller[MachineRunCommandsClientCreateOrUpdateResponse], error)` +- New function `*MachineRunCommandsClient.BeginDelete(context.Context, string, string, string, *MachineRunCommandsClientBeginDeleteOptions) (*runtime.Poller[MachineRunCommandsClientDeleteResponse], error)` +- New function `*MachineRunCommandsClient.Get(context.Context, string, string, string, *MachineRunCommandsClientGetOptions) (MachineRunCommandsClientGetResponse, error)` +- New function `*MachineRunCommandsClient.NewListPager(string, string, *MachineRunCommandsClientListOptions) *runtime.Pager[MachineRunCommandsClientListResponse]` +- New function `NewSettingsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*SettingsClient, error)` +- New function `*SettingsClient.Get(context.Context, string, string, string, string, string, *SettingsClientGetOptions) (SettingsClientGetResponse, error)` +- New function `*SettingsClient.Patch(context.Context, string, string, string, string, string, Settings, *SettingsClientPatchOptions) (SettingsClientPatchResponse, error)` +- New function `*SettingsClient.Update(context.Context, string, string, string, string, string, Settings, *SettingsClientUpdateOptions) (SettingsClientUpdateResponse, error)` +- New struct `Disk` +- New struct `ExtensionsResourceStatus` +- New struct `FirmwareProfile` +- New struct `Gateway` +- New struct `GatewayProperties` +- New struct `GatewayUpdate` +- New struct `GatewayUpdateProperties` +- New struct `GatewaysListResult` +- New struct `HardwareProfile` +- New struct `MachineRunCommand` +- New struct `MachineRunCommandInstanceView` +- New struct `MachineRunCommandProperties` +- New struct `MachineRunCommandScriptSource` +- New struct `MachineRunCommandsListResult` +- New struct `Processor` +- New struct `RunCommandInputParameter` +- New struct `RunCommandManagedIdentity` +- New struct `Settings` +- New struct `SettingsGatewayProperties` +- New struct `SettingsProperties` +- New struct `StorageProfile` +- New field `FirmwareProfile`, `HardwareProfile`, `StorageProfile` in struct `MachineProperties` +- New field `ID`, `MacAddress`, `Name` in struct `NetworkInterface` + + ## 2.0.0 (2024-10-11) ### Breaking Changes diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/autorest.md b/sdk/resourcemanager/hybridcompute/armhybridcompute/autorest.md index 64e82c3cbb3a..098335df1873 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/autorest.md +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 2.0.0 -tag: package-2024-07 +module-version: 2.1.0-beta.1 +tag: package-preview-2024-07 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/client_factory.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/client_factory.go index 8794103489dc..1e73d5c66153 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/client_factory.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/client_factory.go @@ -44,6 +44,14 @@ func (c *ClientFactory) NewExtensionMetadataClient() *ExtensionMetadataClient { } } +// NewGatewaysClient creates a new instance of GatewaysClient. +func (c *ClientFactory) NewGatewaysClient() *GatewaysClient { + return &GatewaysClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + // NewLicenseProfilesClient creates a new instance of LicenseProfilesClient. func (c *ClientFactory) NewLicenseProfilesClient() *LicenseProfilesClient { return &LicenseProfilesClient{ @@ -68,6 +76,14 @@ func (c *ClientFactory) NewMachineExtensionsClient() *MachineExtensionsClient { } } +// NewMachineRunCommandsClient creates a new instance of MachineRunCommandsClient. +func (c *ClientFactory) NewMachineRunCommandsClient() *MachineRunCommandsClient { + return &MachineRunCommandsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + // NewMachinesClient creates a new instance of MachinesClient. func (c *ClientFactory) NewMachinesClient() *MachinesClient { return &MachinesClient{ @@ -130,3 +146,11 @@ func (c *ClientFactory) NewPrivateLinkScopesClient() *PrivateLinkScopesClient { internal: c.internal, } } + +// NewSettingsClient creates a new instance of SettingsClient. +func (c *ClientFactory) NewSettingsClient() *SettingsClient { + return &SettingsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/constants.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/constants.go index afd5f90578f2..555bfd97c470 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/constants.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/constants.go @@ -10,7 +10,7 @@ package armhybridcompute const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute" - moduleVersion = "v2.0.0" + moduleVersion = "v2.1.0-beta.1" ) // AccessMode - Property that impacts a resource's logging behavior and its connectivity with other resources and public networks. @@ -181,6 +181,64 @@ func PossibleEsuServerTypeValues() []EsuServerType { } } +// ExecutionState - Script execution status. +type ExecutionState string + +const ( + ExecutionStateCanceled ExecutionState = "Canceled" + ExecutionStateFailed ExecutionState = "Failed" + ExecutionStatePending ExecutionState = "Pending" + ExecutionStateRunning ExecutionState = "Running" + ExecutionStateSucceeded ExecutionState = "Succeeded" + ExecutionStateTimedOut ExecutionState = "TimedOut" + ExecutionStateUnknown ExecutionState = "Unknown" +) + +// PossibleExecutionStateValues returns the possible values for the ExecutionState const type. +func PossibleExecutionStateValues() []ExecutionState { + return []ExecutionState{ + ExecutionStateCanceled, + ExecutionStateFailed, + ExecutionStatePending, + ExecutionStateRunning, + ExecutionStateSucceeded, + ExecutionStateTimedOut, + ExecutionStateUnknown, + } +} + +// ExtensionsStatusLevelTypes - The level code. +type ExtensionsStatusLevelTypes string + +const ( + ExtensionsStatusLevelTypesError ExtensionsStatusLevelTypes = "Error" + ExtensionsStatusLevelTypesInfo ExtensionsStatusLevelTypes = "Info" + ExtensionsStatusLevelTypesWarning ExtensionsStatusLevelTypes = "Warning" +) + +// PossibleExtensionsStatusLevelTypesValues returns the possible values for the ExtensionsStatusLevelTypes const type. +func PossibleExtensionsStatusLevelTypesValues() []ExtensionsStatusLevelTypes { + return []ExtensionsStatusLevelTypes{ + ExtensionsStatusLevelTypesError, + ExtensionsStatusLevelTypesInfo, + ExtensionsStatusLevelTypesWarning, + } +} + +// GatewayType - The type of the Gateway resource. +type GatewayType string + +const ( + GatewayTypePublic GatewayType = "Public" +) + +// PossibleGatewayTypeValues returns the possible values for the GatewayType const type. +func PossibleGatewayTypeValues() []GatewayType { + return []GatewayType{ + GatewayTypePublic, + } +} + // HotpatchEnablementStatus - Status of hotpatch enablement or disablement. type HotpatchEnablementStatus string diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/extensionmetadata_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/extensionmetadata_client.go index 33a87a26e063..340b7efe2ba4 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/extensionmetadata_client.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/extensionmetadata_client.go @@ -46,7 +46,7 @@ func NewExtensionMetadataClient(subscriptionID string, credential azcore.TokenCr // Get - Gets an Extension Metadata based on location, publisher, extensionType and version // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - location - The location of the Extension being received. // - publisher - The publisher of the Extension being received. // - extensionType - The extensionType of the Extension being received. @@ -102,7 +102,7 @@ func (client *ExtensionMetadataClient) getCreateRequest(ctx context.Context, loc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -119,7 +119,7 @@ func (client *ExtensionMetadataClient) getHandleResponse(resp *http.Response) (E // NewListPager - Gets all Extension versions based on location, publisher, extensionType // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - location - The location of the Extension being received. // - publisher - The publisher of the Extension being received. // - extensionType - The extensionType of the Extension being received. @@ -173,7 +173,7 @@ func (client *ExtensionMetadataClient) listCreateRequest(ctx context.Context, lo return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/extensionmetadata_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/extensionmetadata_client_example_test.go index 1949a4f60f41..3095c599a657 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/extensionmetadata_client_example_test.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/extensionmetadata_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_Get.json func ExampleExtensionMetadataClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -45,7 +45,7 @@ func ExampleExtensionMetadataClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/ExtensionMetadata_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/ExtensionMetadata_List.json func ExampleExtensionMetadataClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/fake/gateways_server.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/fake/gateways_server.go new file mode 100644 index 000000000000..423c819d8753 --- /dev/null +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/fake/gateways_server.go @@ -0,0 +1,340 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package fake + +import ( + "context" + "errors" + "fmt" + azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" + "net/http" + "net/url" + "regexp" +) + +// GatewaysServer is a fake server for instances of the armhybridcompute.GatewaysClient type. +type GatewaysServer struct { + // BeginCreateOrUpdate is the fake for method GatewaysClient.BeginCreateOrUpdate + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated + BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, gatewayName string, parameters armhybridcompute.Gateway, options *armhybridcompute.GatewaysClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armhybridcompute.GatewaysClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) + + // BeginDelete is the fake for method GatewaysClient.BeginDelete + // HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent + BeginDelete func(ctx context.Context, resourceGroupName string, gatewayName string, options *armhybridcompute.GatewaysClientBeginDeleteOptions) (resp azfake.PollerResponder[armhybridcompute.GatewaysClientDeleteResponse], errResp azfake.ErrorResponder) + + // Get is the fake for method GatewaysClient.Get + // HTTP status codes to indicate success: http.StatusOK + Get func(ctx context.Context, resourceGroupName string, gatewayName string, options *armhybridcompute.GatewaysClientGetOptions) (resp azfake.Responder[armhybridcompute.GatewaysClientGetResponse], errResp azfake.ErrorResponder) + + // NewListByResourceGroupPager is the fake for method GatewaysClient.NewListByResourceGroupPager + // HTTP status codes to indicate success: http.StatusOK + NewListByResourceGroupPager func(resourceGroupName string, options *armhybridcompute.GatewaysClientListByResourceGroupOptions) (resp azfake.PagerResponder[armhybridcompute.GatewaysClientListByResourceGroupResponse]) + + // NewListBySubscriptionPager is the fake for method GatewaysClient.NewListBySubscriptionPager + // HTTP status codes to indicate success: http.StatusOK + NewListBySubscriptionPager func(options *armhybridcompute.GatewaysClientListBySubscriptionOptions) (resp azfake.PagerResponder[armhybridcompute.GatewaysClientListBySubscriptionResponse]) + + // Update is the fake for method GatewaysClient.Update + // HTTP status codes to indicate success: http.StatusOK + Update func(ctx context.Context, resourceGroupName string, gatewayName string, parameters armhybridcompute.GatewayUpdate, options *armhybridcompute.GatewaysClientUpdateOptions) (resp azfake.Responder[armhybridcompute.GatewaysClientUpdateResponse], errResp azfake.ErrorResponder) +} + +// NewGatewaysServerTransport creates a new instance of GatewaysServerTransport with the provided implementation. +// The returned GatewaysServerTransport instance is connected to an instance of armhybridcompute.GatewaysClient via the +// azcore.ClientOptions.Transporter field in the client's constructor parameters. +func NewGatewaysServerTransport(srv *GatewaysServer) *GatewaysServerTransport { + return &GatewaysServerTransport{ + srv: srv, + beginCreateOrUpdate: newTracker[azfake.PollerResponder[armhybridcompute.GatewaysClientCreateOrUpdateResponse]](), + beginDelete: newTracker[azfake.PollerResponder[armhybridcompute.GatewaysClientDeleteResponse]](), + newListByResourceGroupPager: newTracker[azfake.PagerResponder[armhybridcompute.GatewaysClientListByResourceGroupResponse]](), + newListBySubscriptionPager: newTracker[azfake.PagerResponder[armhybridcompute.GatewaysClientListBySubscriptionResponse]](), + } +} + +// GatewaysServerTransport connects instances of armhybridcompute.GatewaysClient to instances of GatewaysServer. +// Don't use this type directly, use NewGatewaysServerTransport instead. +type GatewaysServerTransport struct { + srv *GatewaysServer + beginCreateOrUpdate *tracker[azfake.PollerResponder[armhybridcompute.GatewaysClientCreateOrUpdateResponse]] + beginDelete *tracker[azfake.PollerResponder[armhybridcompute.GatewaysClientDeleteResponse]] + newListByResourceGroupPager *tracker[azfake.PagerResponder[armhybridcompute.GatewaysClientListByResourceGroupResponse]] + newListBySubscriptionPager *tracker[azfake.PagerResponder[armhybridcompute.GatewaysClientListBySubscriptionResponse]] +} + +// Do implements the policy.Transporter interface for GatewaysServerTransport. +func (g *GatewaysServerTransport) Do(req *http.Request) (*http.Response, error) { + rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) + method, ok := rawMethod.(string) + if !ok { + return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} + } + + var resp *http.Response + var err error + + switch method { + case "GatewaysClient.BeginCreateOrUpdate": + resp, err = g.dispatchBeginCreateOrUpdate(req) + case "GatewaysClient.BeginDelete": + resp, err = g.dispatchBeginDelete(req) + case "GatewaysClient.Get": + resp, err = g.dispatchGet(req) + case "GatewaysClient.NewListByResourceGroupPager": + resp, err = g.dispatchNewListByResourceGroupPager(req) + case "GatewaysClient.NewListBySubscriptionPager": + resp, err = g.dispatchNewListBySubscriptionPager(req) + case "GatewaysClient.Update": + resp, err = g.dispatchUpdate(req) + default: + err = fmt.Errorf("unhandled API %s", method) + } + + if err != nil { + return nil, err + } + + return resp, nil +} + +func (g *GatewaysServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) (*http.Response, error) { + if g.srv.BeginCreateOrUpdate == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginCreateOrUpdate not implemented")} + } + beginCreateOrUpdate := g.beginCreateOrUpdate.get(req) + if beginCreateOrUpdate == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.HybridCompute/gateways/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 3 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armhybridcompute.Gateway](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + gatewayNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("gatewayName")]) + if err != nil { + return nil, err + } + respr, errRespr := g.srv.BeginCreateOrUpdate(req.Context(), resourceGroupNameParam, gatewayNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginCreateOrUpdate = &respr + g.beginCreateOrUpdate.add(req, beginCreateOrUpdate) + } + + resp, err := server.PollerResponderNext(beginCreateOrUpdate, req) + if err != nil { + return nil, err + } + + if !contains([]int{http.StatusOK, http.StatusCreated}, resp.StatusCode) { + g.beginCreateOrUpdate.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", resp.StatusCode)} + } + if !server.PollerResponderMore(beginCreateOrUpdate) { + g.beginCreateOrUpdate.remove(req) + } + + return resp, nil +} + +func (g *GatewaysServerTransport) dispatchBeginDelete(req *http.Request) (*http.Response, error) { + if g.srv.BeginDelete == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginDelete not implemented")} + } + beginDelete := g.beginDelete.get(req) + if beginDelete == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.HybridCompute/gateways/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 3 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + gatewayNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("gatewayName")]) + if err != nil { + return nil, err + } + respr, errRespr := g.srv.BeginDelete(req.Context(), resourceGroupNameParam, gatewayNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginDelete = &respr + g.beginDelete.add(req, beginDelete) + } + + resp, err := server.PollerResponderNext(beginDelete, req) + if err != nil { + return nil, err + } + + if !contains([]int{http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + g.beginDelete.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + } + if !server.PollerResponderMore(beginDelete) { + g.beginDelete.remove(req) + } + + return resp, nil +} + +func (g *GatewaysServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { + if g.srv.Get == nil { + return nil, &nonRetriableError{errors.New("fake for method Get not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.HybridCompute/gateways/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 3 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + gatewayNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("gatewayName")]) + if err != nil { + return nil, err + } + respr, errRespr := g.srv.Get(req.Context(), resourceGroupNameParam, gatewayNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).Gateway, req) + if err != nil { + return nil, err + } + return resp, nil +} + +func (g *GatewaysServerTransport) dispatchNewListByResourceGroupPager(req *http.Request) (*http.Response, error) { + if g.srv.NewListByResourceGroupPager == nil { + return nil, &nonRetriableError{errors.New("fake for method NewListByResourceGroupPager not implemented")} + } + newListByResourceGroupPager := g.newListByResourceGroupPager.get(req) + if newListByResourceGroupPager == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.HybridCompute/gateways` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 2 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + resp := g.srv.NewListByResourceGroupPager(resourceGroupNameParam, nil) + newListByResourceGroupPager = &resp + g.newListByResourceGroupPager.add(req, newListByResourceGroupPager) + server.PagerResponderInjectNextLinks(newListByResourceGroupPager, req, func(page *armhybridcompute.GatewaysClientListByResourceGroupResponse, createLink func() string) { + page.NextLink = to.Ptr(createLink()) + }) + } + resp, err := server.PagerResponderNext(newListByResourceGroupPager, req) + if err != nil { + return nil, err + } + if !contains([]int{http.StatusOK}, resp.StatusCode) { + g.newListByResourceGroupPager.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} + } + if !server.PagerResponderMore(newListByResourceGroupPager) { + g.newListByResourceGroupPager.remove(req) + } + return resp, nil +} + +func (g *GatewaysServerTransport) dispatchNewListBySubscriptionPager(req *http.Request) (*http.Response, error) { + if g.srv.NewListBySubscriptionPager == nil { + return nil, &nonRetriableError{errors.New("fake for method NewListBySubscriptionPager not implemented")} + } + newListBySubscriptionPager := g.newListBySubscriptionPager.get(req) + if newListBySubscriptionPager == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.HybridCompute/gateways` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 1 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resp := g.srv.NewListBySubscriptionPager(nil) + newListBySubscriptionPager = &resp + g.newListBySubscriptionPager.add(req, newListBySubscriptionPager) + server.PagerResponderInjectNextLinks(newListBySubscriptionPager, req, func(page *armhybridcompute.GatewaysClientListBySubscriptionResponse, createLink func() string) { + page.NextLink = to.Ptr(createLink()) + }) + } + resp, err := server.PagerResponderNext(newListBySubscriptionPager, req) + if err != nil { + return nil, err + } + if !contains([]int{http.StatusOK}, resp.StatusCode) { + g.newListBySubscriptionPager.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} + } + if !server.PagerResponderMore(newListBySubscriptionPager) { + g.newListBySubscriptionPager.remove(req) + } + return resp, nil +} + +func (g *GatewaysServerTransport) dispatchUpdate(req *http.Request) (*http.Response, error) { + if g.srv.Update == nil { + return nil, &nonRetriableError{errors.New("fake for method Update not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.HybridCompute/gateways/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 3 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armhybridcompute.GatewayUpdate](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + gatewayNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("gatewayName")]) + if err != nil { + return nil, err + } + respr, errRespr := g.srv.Update(req.Context(), resourceGroupNameParam, gatewayNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).Gateway, req) + if err != nil { + return nil, err + } + return resp, nil +} diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/fake/machineruncommands_server.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/fake/machineruncommands_server.go new file mode 100644 index 000000000000..1de9a0e1f7f7 --- /dev/null +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/fake/machineruncommands_server.go @@ -0,0 +1,284 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package fake + +import ( + "context" + "errors" + "fmt" + azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" + "net/http" + "net/url" + "regexp" +) + +// MachineRunCommandsServer is a fake server for instances of the armhybridcompute.MachineRunCommandsClient type. +type MachineRunCommandsServer struct { + // BeginCreateOrUpdate is the fake for method MachineRunCommandsClient.BeginCreateOrUpdate + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated + BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, machineName string, runCommandName string, runCommandProperties armhybridcompute.MachineRunCommand, options *armhybridcompute.MachineRunCommandsClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armhybridcompute.MachineRunCommandsClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) + + // BeginDelete is the fake for method MachineRunCommandsClient.BeginDelete + // HTTP status codes to indicate success: http.StatusAccepted, http.StatusNoContent + BeginDelete func(ctx context.Context, resourceGroupName string, machineName string, runCommandName string, options *armhybridcompute.MachineRunCommandsClientBeginDeleteOptions) (resp azfake.PollerResponder[armhybridcompute.MachineRunCommandsClientDeleteResponse], errResp azfake.ErrorResponder) + + // Get is the fake for method MachineRunCommandsClient.Get + // HTTP status codes to indicate success: http.StatusOK + Get func(ctx context.Context, resourceGroupName string, machineName string, runCommandName string, options *armhybridcompute.MachineRunCommandsClientGetOptions) (resp azfake.Responder[armhybridcompute.MachineRunCommandsClientGetResponse], errResp azfake.ErrorResponder) + + // NewListPager is the fake for method MachineRunCommandsClient.NewListPager + // HTTP status codes to indicate success: http.StatusOK + NewListPager func(resourceGroupName string, machineName string, options *armhybridcompute.MachineRunCommandsClientListOptions) (resp azfake.PagerResponder[armhybridcompute.MachineRunCommandsClientListResponse]) +} + +// NewMachineRunCommandsServerTransport creates a new instance of MachineRunCommandsServerTransport with the provided implementation. +// The returned MachineRunCommandsServerTransport instance is connected to an instance of armhybridcompute.MachineRunCommandsClient via the +// azcore.ClientOptions.Transporter field in the client's constructor parameters. +func NewMachineRunCommandsServerTransport(srv *MachineRunCommandsServer) *MachineRunCommandsServerTransport { + return &MachineRunCommandsServerTransport{ + srv: srv, + beginCreateOrUpdate: newTracker[azfake.PollerResponder[armhybridcompute.MachineRunCommandsClientCreateOrUpdateResponse]](), + beginDelete: newTracker[azfake.PollerResponder[armhybridcompute.MachineRunCommandsClientDeleteResponse]](), + newListPager: newTracker[azfake.PagerResponder[armhybridcompute.MachineRunCommandsClientListResponse]](), + } +} + +// MachineRunCommandsServerTransport connects instances of armhybridcompute.MachineRunCommandsClient to instances of MachineRunCommandsServer. +// Don't use this type directly, use NewMachineRunCommandsServerTransport instead. +type MachineRunCommandsServerTransport struct { + srv *MachineRunCommandsServer + beginCreateOrUpdate *tracker[azfake.PollerResponder[armhybridcompute.MachineRunCommandsClientCreateOrUpdateResponse]] + beginDelete *tracker[azfake.PollerResponder[armhybridcompute.MachineRunCommandsClientDeleteResponse]] + newListPager *tracker[azfake.PagerResponder[armhybridcompute.MachineRunCommandsClientListResponse]] +} + +// Do implements the policy.Transporter interface for MachineRunCommandsServerTransport. +func (m *MachineRunCommandsServerTransport) Do(req *http.Request) (*http.Response, error) { + rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) + method, ok := rawMethod.(string) + if !ok { + return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} + } + + var resp *http.Response + var err error + + switch method { + case "MachineRunCommandsClient.BeginCreateOrUpdate": + resp, err = m.dispatchBeginCreateOrUpdate(req) + case "MachineRunCommandsClient.BeginDelete": + resp, err = m.dispatchBeginDelete(req) + case "MachineRunCommandsClient.Get": + resp, err = m.dispatchGet(req) + case "MachineRunCommandsClient.NewListPager": + resp, err = m.dispatchNewListPager(req) + default: + err = fmt.Errorf("unhandled API %s", method) + } + + if err != nil { + return nil, err + } + + return resp, nil +} + +func (m *MachineRunCommandsServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) (*http.Response, error) { + if m.srv.BeginCreateOrUpdate == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginCreateOrUpdate not implemented")} + } + beginCreateOrUpdate := m.beginCreateOrUpdate.get(req) + if beginCreateOrUpdate == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.HybridCompute/machines/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runCommands/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armhybridcompute.MachineRunCommand](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + machineNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("machineName")]) + if err != nil { + return nil, err + } + runCommandNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("runCommandName")]) + if err != nil { + return nil, err + } + respr, errRespr := m.srv.BeginCreateOrUpdate(req.Context(), resourceGroupNameParam, machineNameParam, runCommandNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginCreateOrUpdate = &respr + m.beginCreateOrUpdate.add(req, beginCreateOrUpdate) + } + + resp, err := server.PollerResponderNext(beginCreateOrUpdate, req) + if err != nil { + return nil, err + } + + if !contains([]int{http.StatusOK, http.StatusCreated}, resp.StatusCode) { + m.beginCreateOrUpdate.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", resp.StatusCode)} + } + if !server.PollerResponderMore(beginCreateOrUpdate) { + m.beginCreateOrUpdate.remove(req) + } + + return resp, nil +} + +func (m *MachineRunCommandsServerTransport) dispatchBeginDelete(req *http.Request) (*http.Response, error) { + if m.srv.BeginDelete == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginDelete not implemented")} + } + beginDelete := m.beginDelete.get(req) + if beginDelete == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.HybridCompute/machines/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runCommands/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + machineNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("machineName")]) + if err != nil { + return nil, err + } + runCommandNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("runCommandName")]) + if err != nil { + return nil, err + } + respr, errRespr := m.srv.BeginDelete(req.Context(), resourceGroupNameParam, machineNameParam, runCommandNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginDelete = &respr + m.beginDelete.add(req, beginDelete) + } + + resp, err := server.PollerResponderNext(beginDelete, req) + if err != nil { + return nil, err + } + + if !contains([]int{http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + m.beginDelete.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + } + if !server.PollerResponderMore(beginDelete) { + m.beginDelete.remove(req) + } + + return resp, nil +} + +func (m *MachineRunCommandsServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { + if m.srv.Get == nil { + return nil, &nonRetriableError{errors.New("fake for method Get not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.HybridCompute/machines/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runCommands/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + machineNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("machineName")]) + if err != nil { + return nil, err + } + runCommandNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("runCommandName")]) + if err != nil { + return nil, err + } + respr, errRespr := m.srv.Get(req.Context(), resourceGroupNameParam, machineNameParam, runCommandNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).MachineRunCommand, req) + if err != nil { + return nil, err + } + return resp, nil +} + +func (m *MachineRunCommandsServerTransport) dispatchNewListPager(req *http.Request) (*http.Response, error) { + if m.srv.NewListPager == nil { + return nil, &nonRetriableError{errors.New("fake for method NewListPager not implemented")} + } + newListPager := m.newListPager.get(req) + if newListPager == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.HybridCompute/machines/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/runCommands` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 3 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + qp := req.URL.Query() + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + machineNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("machineName")]) + if err != nil { + return nil, err + } + expandUnescaped, err := url.QueryUnescape(qp.Get("$expand")) + if err != nil { + return nil, err + } + expandParam := getOptional(expandUnescaped) + var options *armhybridcompute.MachineRunCommandsClientListOptions + if expandParam != nil { + options = &armhybridcompute.MachineRunCommandsClientListOptions{ + Expand: expandParam, + } + } + resp := m.srv.NewListPager(resourceGroupNameParam, machineNameParam, options) + newListPager = &resp + m.newListPager.add(req, newListPager) + server.PagerResponderInjectNextLinks(newListPager, req, func(page *armhybridcompute.MachineRunCommandsClientListResponse, createLink func() string) { + page.NextLink = to.Ptr(createLink()) + }) + } + resp, err := server.PagerResponderNext(newListPager, req) + if err != nil { + return nil, err + } + if !contains([]int{http.StatusOK}, resp.StatusCode) { + m.newListPager.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} + } + if !server.PagerResponderMore(newListPager) { + m.newListPager.remove(req) + } + return resp, nil +} diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/fake/server_factory.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/fake/server_factory.go index 4ca7e5635599..f21887442c4e 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/fake/server_factory.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/fake/server_factory.go @@ -20,9 +20,11 @@ import ( // ServerFactory is a fake server for instances of the armhybridcompute.ClientFactory type. type ServerFactory struct { ExtensionMetadataServer ExtensionMetadataServer + GatewaysServer GatewaysServer LicenseProfilesServer LicenseProfilesServer LicensesServer LicensesServer MachineExtensionsServer MachineExtensionsServer + MachineRunCommandsServer MachineRunCommandsServer MachinesServer MachinesServer ManagementServer ManagementServer NetworkProfileServer NetworkProfileServer @@ -31,6 +33,7 @@ type ServerFactory struct { PrivateEndpointConnectionsServer PrivateEndpointConnectionsServer PrivateLinkResourcesServer PrivateLinkResourcesServer PrivateLinkScopesServer PrivateLinkScopesServer + SettingsServer SettingsServer } // NewServerFactoryTransport creates a new instance of ServerFactoryTransport with the provided implementation. @@ -48,9 +51,11 @@ type ServerFactoryTransport struct { srv *ServerFactory trMu sync.Mutex trExtensionMetadataServer *ExtensionMetadataServerTransport + trGatewaysServer *GatewaysServerTransport trLicenseProfilesServer *LicenseProfilesServerTransport trLicensesServer *LicensesServerTransport trMachineExtensionsServer *MachineExtensionsServerTransport + trMachineRunCommandsServer *MachineRunCommandsServerTransport trMachinesServer *MachinesServerTransport trManagementServer *ManagementServerTransport trNetworkProfileServer *NetworkProfileServerTransport @@ -59,6 +64,7 @@ type ServerFactoryTransport struct { trPrivateEndpointConnectionsServer *PrivateEndpointConnectionsServerTransport trPrivateLinkResourcesServer *PrivateLinkResourcesServerTransport trPrivateLinkScopesServer *PrivateLinkScopesServerTransport + trSettingsServer *SettingsServerTransport } // Do implements the policy.Transporter interface for ServerFactoryTransport. @@ -79,6 +85,9 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { return NewExtensionMetadataServerTransport(&s.srv.ExtensionMetadataServer) }) resp, err = s.trExtensionMetadataServer.Do(req) + case "GatewaysClient": + initServer(s, &s.trGatewaysServer, func() *GatewaysServerTransport { return NewGatewaysServerTransport(&s.srv.GatewaysServer) }) + resp, err = s.trGatewaysServer.Do(req) case "LicenseProfilesClient": initServer(s, &s.trLicenseProfilesServer, func() *LicenseProfilesServerTransport { return NewLicenseProfilesServerTransport(&s.srv.LicenseProfilesServer) @@ -92,6 +101,11 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { return NewMachineExtensionsServerTransport(&s.srv.MachineExtensionsServer) }) resp, err = s.trMachineExtensionsServer.Do(req) + case "MachineRunCommandsClient": + initServer(s, &s.trMachineRunCommandsServer, func() *MachineRunCommandsServerTransport { + return NewMachineRunCommandsServerTransport(&s.srv.MachineRunCommandsServer) + }) + resp, err = s.trMachineRunCommandsServer.Do(req) case "MachinesClient": initServer(s, &s.trMachinesServer, func() *MachinesServerTransport { return NewMachinesServerTransport(&s.srv.MachinesServer) }) resp, err = s.trMachinesServer.Do(req) @@ -126,6 +140,9 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { return NewPrivateLinkScopesServerTransport(&s.srv.PrivateLinkScopesServer) }) resp, err = s.trPrivateLinkScopesServer.Do(req) + case "SettingsClient": + initServer(s, &s.trSettingsServer, func() *SettingsServerTransport { return NewSettingsServerTransport(&s.srv.SettingsServer) }) + resp, err = s.trSettingsServer.Do(req) default: err = fmt.Errorf("unhandled client %s", client) } diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/fake/settings_server.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/fake/settings_server.go new file mode 100644 index 000000000000..56dcd15345bf --- /dev/null +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/fake/settings_server.go @@ -0,0 +1,222 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package fake + +import ( + "context" + "errors" + "fmt" + azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" + "net/http" + "net/url" + "regexp" +) + +// SettingsServer is a fake server for instances of the armhybridcompute.SettingsClient type. +type SettingsServer struct { + // Get is the fake for method SettingsClient.Get + // HTTP status codes to indicate success: http.StatusOK + Get func(ctx context.Context, resourceGroupName string, baseProvider string, baseResourceType string, baseResourceName string, settingsResourceName string, options *armhybridcompute.SettingsClientGetOptions) (resp azfake.Responder[armhybridcompute.SettingsClientGetResponse], errResp azfake.ErrorResponder) + + // Patch is the fake for method SettingsClient.Patch + // HTTP status codes to indicate success: http.StatusOK + Patch func(ctx context.Context, resourceGroupName string, baseProvider string, baseResourceType string, baseResourceName string, settingsResourceName string, parameters armhybridcompute.Settings, options *armhybridcompute.SettingsClientPatchOptions) (resp azfake.Responder[armhybridcompute.SettingsClientPatchResponse], errResp azfake.ErrorResponder) + + // Update is the fake for method SettingsClient.Update + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated + Update func(ctx context.Context, resourceGroupName string, baseProvider string, baseResourceType string, baseResourceName string, settingsResourceName string, parameters armhybridcompute.Settings, options *armhybridcompute.SettingsClientUpdateOptions) (resp azfake.Responder[armhybridcompute.SettingsClientUpdateResponse], errResp azfake.ErrorResponder) +} + +// NewSettingsServerTransport creates a new instance of SettingsServerTransport with the provided implementation. +// The returned SettingsServerTransport instance is connected to an instance of armhybridcompute.SettingsClient via the +// azcore.ClientOptions.Transporter field in the client's constructor parameters. +func NewSettingsServerTransport(srv *SettingsServer) *SettingsServerTransport { + return &SettingsServerTransport{srv: srv} +} + +// SettingsServerTransport connects instances of armhybridcompute.SettingsClient to instances of SettingsServer. +// Don't use this type directly, use NewSettingsServerTransport instead. +type SettingsServerTransport struct { + srv *SettingsServer +} + +// Do implements the policy.Transporter interface for SettingsServerTransport. +func (s *SettingsServerTransport) Do(req *http.Request) (*http.Response, error) { + rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) + method, ok := rawMethod.(string) + if !ok { + return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} + } + + var resp *http.Response + var err error + + switch method { + case "SettingsClient.Get": + resp, err = s.dispatchGet(req) + case "SettingsClient.Patch": + resp, err = s.dispatchPatch(req) + case "SettingsClient.Update": + resp, err = s.dispatchUpdate(req) + default: + err = fmt.Errorf("unhandled API %s", method) + } + + if err != nil { + return nil, err + } + + return resp, nil +} + +func (s *SettingsServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { + if s.srv.Get == nil { + return nil, &nonRetriableError{errors.New("fake for method Get not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.HybridCompute/settings/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 6 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + baseProviderParam, err := url.PathUnescape(matches[regex.SubexpIndex("baseProvider")]) + if err != nil { + return nil, err + } + baseResourceTypeParam, err := url.PathUnescape(matches[regex.SubexpIndex("baseResourceType")]) + if err != nil { + return nil, err + } + baseResourceNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("baseResourceName")]) + if err != nil { + return nil, err + } + settingsResourceNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("settingsResourceName")]) + if err != nil { + return nil, err + } + respr, errRespr := s.srv.Get(req.Context(), resourceGroupNameParam, baseProviderParam, baseResourceTypeParam, baseResourceNameParam, settingsResourceNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).Settings, req) + if err != nil { + return nil, err + } + return resp, nil +} + +func (s *SettingsServerTransport) dispatchPatch(req *http.Request) (*http.Response, error) { + if s.srv.Patch == nil { + return nil, &nonRetriableError{errors.New("fake for method Patch not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.HybridCompute/settings/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 6 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armhybridcompute.Settings](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + baseProviderParam, err := url.PathUnescape(matches[regex.SubexpIndex("baseProvider")]) + if err != nil { + return nil, err + } + baseResourceTypeParam, err := url.PathUnescape(matches[regex.SubexpIndex("baseResourceType")]) + if err != nil { + return nil, err + } + baseResourceNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("baseResourceName")]) + if err != nil { + return nil, err + } + settingsResourceNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("settingsResourceName")]) + if err != nil { + return nil, err + } + respr, errRespr := s.srv.Patch(req.Context(), resourceGroupNameParam, baseProviderParam, baseResourceTypeParam, baseResourceNameParam, settingsResourceNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).Settings, req) + if err != nil { + return nil, err + } + return resp, nil +} + +func (s *SettingsServerTransport) dispatchUpdate(req *http.Request) (*http.Response, error) { + if s.srv.Update == nil { + return nil, &nonRetriableError{errors.New("fake for method Update not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.HybridCompute/settings/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 6 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armhybridcompute.Settings](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + baseProviderParam, err := url.PathUnescape(matches[regex.SubexpIndex("baseProvider")]) + if err != nil { + return nil, err + } + baseResourceTypeParam, err := url.PathUnescape(matches[regex.SubexpIndex("baseResourceType")]) + if err != nil { + return nil, err + } + baseResourceNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("baseResourceName")]) + if err != nil { + return nil, err + } + settingsResourceNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("settingsResourceName")]) + if err != nil { + return nil, err + } + respr, errRespr := s.srv.Update(req.Context(), resourceGroupNameParam, baseProviderParam, baseResourceTypeParam, baseResourceNameParam, settingsResourceNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK, http.StatusCreated}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).Settings, req) + if err != nil { + return nil, err + } + return resp, nil +} diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/gateways_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/gateways_client.go new file mode 100644 index 000000000000..d7768607c66d --- /dev/null +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/gateways_client.go @@ -0,0 +1,446 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armhybridcompute + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// GatewaysClient contains the methods for the Gateways group. +// Don't use this type directly, use NewGatewaysClient() instead. +type GatewaysClient struct { + internal *arm.Client + subscriptionID string +} + +// NewGatewaysClient creates a new instance of GatewaysClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewGatewaysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GatewaysClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &GatewaysClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// BeginCreateOrUpdate - The operation to create or update a gateway. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-31-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - gatewayName - The name of the Gateway. +// - parameters - Parameters supplied to the Create gateway operation. +// - options - GatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewaysClient.BeginCreateOrUpdate +// method. +func (client *GatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, parameters Gateway, options *GatewaysClientBeginCreateOrUpdateOptions) (*runtime.Poller[GatewaysClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, gatewayName, parameters, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GatewaysClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GatewaysClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - The operation to create or update a gateway. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-31-preview +func (client *GatewaysClient) createOrUpdate(ctx context.Context, resourceGroupName string, gatewayName string, parameters Gateway, options *GatewaysClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "GatewaysClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, gatewayName, parameters, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *GatewaysClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, gatewayName string, parameters Gateway, options *GatewaysClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if gatewayName == "" { + return nil, errors.New("parameter gatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{gatewayName}", url.PathEscape(gatewayName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-07-31-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil +} + +// BeginDelete - The operation to delete a gateway. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-31-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - gatewayName - The name of the Gateway. +// - options - GatewaysClientBeginDeleteOptions contains the optional parameters for the GatewaysClient.BeginDelete method. +func (client *GatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, gatewayName string, options *GatewaysClientBeginDeleteOptions) (*runtime.Poller[GatewaysClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, gatewayName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[GatewaysClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[GatewaysClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Delete - The operation to delete a gateway. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-31-preview +func (client *GatewaysClient) deleteOperation(ctx context.Context, resourceGroupName string, gatewayName string, options *GatewaysClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "GatewaysClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, gatewayName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *GatewaysClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, gatewayName string, options *GatewaysClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if gatewayName == "" { + return nil, errors.New("parameter gatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{gatewayName}", url.PathEscape(gatewayName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-07-31-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Retrieves information about the view of a gateway. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-31-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - gatewayName - The name of the Gateway. +// - options - GatewaysClientGetOptions contains the optional parameters for the GatewaysClient.Get method. +func (client *GatewaysClient) Get(ctx context.Context, resourceGroupName string, gatewayName string, options *GatewaysClientGetOptions) (GatewaysClientGetResponse, error) { + var err error + const operationName = "GatewaysClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, gatewayName, options) + if err != nil { + return GatewaysClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return GatewaysClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return GatewaysClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *GatewaysClient) getCreateRequest(ctx context.Context, resourceGroupName string, gatewayName string, options *GatewaysClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if gatewayName == "" { + return nil, errors.New("parameter gatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{gatewayName}", url.PathEscape(gatewayName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-07-31-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *GatewaysClient) getHandleResponse(resp *http.Response) (GatewaysClientGetResponse, error) { + result := GatewaysClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Gateway); err != nil { + return GatewaysClientGetResponse{}, err + } + return result, nil +} + +// NewListByResourceGroupPager - The operation to get all gateways of a non-Azure machine +// +// Generated from API version 2024-07-31-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - GatewaysClientListByResourceGroupOptions contains the optional parameters for the GatewaysClient.NewListByResourceGroupPager +// method. +func (client *GatewaysClient) NewListByResourceGroupPager(resourceGroupName string, options *GatewaysClientListByResourceGroupOptions) *runtime.Pager[GatewaysClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PagingHandler[GatewaysClientListByResourceGroupResponse]{ + More: func(page GatewaysClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *GatewaysClientListByResourceGroupResponse) (GatewaysClientListByResourceGroupResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "GatewaysClient.NewListByResourceGroupPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + }, nil) + if err != nil { + return GatewaysClientListByResourceGroupResponse{}, err + } + return client.listByResourceGroupHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByResourceGroupCreateRequest creates the ListByResourceGroup request. +func (client *GatewaysClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *GatewaysClientListByResourceGroupOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-07-31-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByResourceGroupHandleResponse handles the ListByResourceGroup response. +func (client *GatewaysClient) listByResourceGroupHandleResponse(resp *http.Response) (GatewaysClientListByResourceGroupResponse, error) { + result := GatewaysClientListByResourceGroupResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.GatewaysListResult); err != nil { + return GatewaysClientListByResourceGroupResponse{}, err + } + return result, nil +} + +// NewListBySubscriptionPager - The operation to get all gateways of a non-Azure machine +// +// Generated from API version 2024-07-31-preview +// - options - GatewaysClientListBySubscriptionOptions contains the optional parameters for the GatewaysClient.NewListBySubscriptionPager +// method. +func (client *GatewaysClient) NewListBySubscriptionPager(options *GatewaysClientListBySubscriptionOptions) *runtime.Pager[GatewaysClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PagingHandler[GatewaysClientListBySubscriptionResponse]{ + More: func(page GatewaysClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *GatewaysClientListBySubscriptionResponse) (GatewaysClientListBySubscriptionResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "GatewaysClient.NewListBySubscriptionPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listBySubscriptionCreateRequest(ctx, options) + }, nil) + if err != nil { + return GatewaysClientListBySubscriptionResponse{}, err + } + return client.listBySubscriptionHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listBySubscriptionCreateRequest creates the ListBySubscription request. +func (client *GatewaysClient) listBySubscriptionCreateRequest(ctx context.Context, options *GatewaysClientListBySubscriptionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/gateways" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-07-31-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listBySubscriptionHandleResponse handles the ListBySubscription response. +func (client *GatewaysClient) listBySubscriptionHandleResponse(resp *http.Response) (GatewaysClientListBySubscriptionResponse, error) { + result := GatewaysClientListBySubscriptionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.GatewaysListResult); err != nil { + return GatewaysClientListBySubscriptionResponse{}, err + } + return result, nil +} + +// Update - The operation to update a gateway. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-31-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - gatewayName - The name of the Gateway. +// - parameters - Parameters supplied to the Update gateway operation. +// - options - GatewaysClientUpdateOptions contains the optional parameters for the GatewaysClient.Update method. +func (client *GatewaysClient) Update(ctx context.Context, resourceGroupName string, gatewayName string, parameters GatewayUpdate, options *GatewaysClientUpdateOptions) (GatewaysClientUpdateResponse, error) { + var err error + const operationName = "GatewaysClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, gatewayName, parameters, options) + if err != nil { + return GatewaysClientUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return GatewaysClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return GatewaysClientUpdateResponse{}, err + } + resp, err := client.updateHandleResponse(httpResp) + return resp, err +} + +// updateCreateRequest creates the Update request. +func (client *GatewaysClient) updateCreateRequest(ctx context.Context, resourceGroupName string, gatewayName string, parameters GatewayUpdate, options *GatewaysClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/gateways/{gatewayName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if gatewayName == "" { + return nil, errors.New("parameter gatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{gatewayName}", url.PathEscape(gatewayName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-07-31-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil +} + +// updateHandleResponse handles the Update response. +func (client *GatewaysClient) updateHandleResponse(resp *http.Response) (GatewaysClientUpdateResponse, error) { + result := GatewaysClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Gateway); err != nil { + return GatewaysClientUpdateResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/gateways_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/gateways_client_example_test.go new file mode 100644 index 000000000000..ec505ed2faa5 --- /dev/null +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/gateways_client_example_test.go @@ -0,0 +1,242 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armhybridcompute_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_CreateOrUpdate.json +func ExampleGatewaysClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhybridcompute.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewGatewaysClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "{gatewayName}", armhybridcompute.Gateway{ + Location: to.Ptr("eastus2euap"), + Properties: &armhybridcompute.GatewayProperties{ + AllowedFeatures: []*string{ + to.Ptr("*")}, + GatewayType: to.Ptr(armhybridcompute.GatewayTypePublic), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + res, err := poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Gateway = armhybridcompute.Gateway{ + // Name: to.Ptr("{gatewayName}"), + // Type: to.Ptr("Microsoft.HybridCompute/gateways"), + // ID: to.Ptr("/subscriptions/ffd506c8-3415-42d3-9612-fdb423fb17df/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/gateways/{gatewayName}"), + // Location: to.Ptr("eastus2euap"), + // Properties: &armhybridcompute.GatewayProperties{ + // AllowedFeatures: []*string{ + // to.Ptr("*")}, + // GatewayEndpoint: to.Ptr("https://uniqueValue.contoso.com"), + // GatewayID: to.Ptr(""), + // GatewayType: to.Ptr(armhybridcompute.GatewayTypePublic), + // ProvisioningState: to.Ptr(armhybridcompute.ProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Update.json +func ExampleGatewaysClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhybridcompute.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewGatewaysClient().Update(ctx, "myResourceGroup", "{gatewayName}", armhybridcompute.GatewayUpdate{ + Properties: &armhybridcompute.GatewayUpdateProperties{ + AllowedFeatures: []*string{ + to.Ptr("*")}, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Gateway = armhybridcompute.Gateway{ + // Name: to.Ptr("{gatewayName}"), + // Type: to.Ptr("Microsoft.HybridCompute/gateways"), + // ID: to.Ptr("/subscriptions/ffd506c8-3415-42d3-9612-fdb423fb17df/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/gateways/{gatewayName}"), + // Location: to.Ptr("eastus2euap"), + // Properties: &armhybridcompute.GatewayProperties{ + // AllowedFeatures: []*string{ + // to.Ptr("*")}, + // GatewayEndpoint: to.Ptr("https://uniqueValue.contoso.com"), + // GatewayID: to.Ptr(""), + // GatewayType: to.Ptr(armhybridcompute.GatewayTypePublic), + // ProvisioningState: to.Ptr(armhybridcompute.ProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Get.json +func ExampleGatewaysClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhybridcompute.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewGatewaysClient().Get(ctx, "myResourceGroup", "{gatewayName}", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Gateway = armhybridcompute.Gateway{ + // Name: to.Ptr("{gatewayName}"), + // Type: to.Ptr("Microsoft.HybridCompute/gateways"), + // ID: to.Ptr("/subscriptions/ffd506c8-3415-42d3-9612-fdb423fb17df/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/gateways/{gatewayName}"), + // Location: to.Ptr("eastus2euap"), + // Properties: &armhybridcompute.GatewayProperties{ + // AllowedFeatures: []*string{ + // to.Ptr("*")}, + // GatewayEndpoint: to.Ptr("https://uniqueValue.contoso.com"), + // GatewayID: to.Ptr(""), + // GatewayType: to.Ptr(armhybridcompute.GatewayTypePublic), + // ProvisioningState: to.Ptr(armhybridcompute.ProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_Delete.json +func ExampleGatewaysClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhybridcompute.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewGatewaysClient().BeginDelete(ctx, "myResourceGroup", "{gatewayName}", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListByResourceGroup.json +func ExampleGatewaysClient_NewListByResourceGroupPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhybridcompute.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := clientFactory.NewGatewaysClient().NewListByResourceGroupPager("myResourceGroup", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.GatewaysListResult = armhybridcompute.GatewaysListResult{ + // Value: []*armhybridcompute.Gateway{ + // { + // Name: to.Ptr("{gatewayName}"), + // Type: to.Ptr("Microsoft.HybridCompute/gateways"), + // ID: to.Ptr("/subscriptions/ffd506c8-3415-42d3-9612-fdb423fb17df/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/gateways/{gatewayName}"), + // Location: to.Ptr("eastus2euap"), + // Properties: &armhybridcompute.GatewayProperties{ + // AllowedFeatures: []*string{ + // to.Ptr("*")}, + // GatewayEndpoint: to.Ptr("https://uniqueValue.contoso.com"), + // GatewayID: to.Ptr(""), + // GatewayType: to.Ptr(armhybridcompute.GatewayTypePublic), + // ProvisioningState: to.Ptr(armhybridcompute.ProvisioningStateSucceeded), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/gateway/Gateway_ListBySubscription.json +func ExampleGatewaysClient_NewListBySubscriptionPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhybridcompute.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := clientFactory.NewGatewaysClient().NewListBySubscriptionPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.GatewaysListResult = armhybridcompute.GatewaysListResult{ + // Value: []*armhybridcompute.Gateway{ + // { + // Name: to.Ptr("{gatewayName}"), + // Type: to.Ptr("Microsoft.HybridCompute/gateways"), + // ID: to.Ptr("/subscriptions/ffd506c8-3415-42d3-9612-fdb423fb17df/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/gateways/{gatewayName}"), + // Location: to.Ptr("eastus2euap"), + // Properties: &armhybridcompute.GatewayProperties{ + // AllowedFeatures: []*string{ + // to.Ptr("*")}, + // GatewayEndpoint: to.Ptr("https://uniqueValue.contoso.com"), + // GatewayID: to.Ptr(""), + // GatewayType: to.Ptr(armhybridcompute.GatewayTypePublic), + // ProvisioningState: to.Ptr(armhybridcompute.ProvisioningStateSucceeded), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/licenseprofiles_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/licenseprofiles_client.go index 57055bc0367b..56606e4ab64f 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/licenseprofiles_client.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/licenseprofiles_client.go @@ -46,7 +46,7 @@ func NewLicenseProfilesClient(subscriptionID string, credential azcore.TokenCred // BeginCreateOrUpdate - The operation to create or update a license profile. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the hybrid machine. // - parameters - Parameters supplied to the Create or Update license profile operation. @@ -72,7 +72,7 @@ func (client *LicenseProfilesClient) BeginCreateOrUpdate(ctx context.Context, re // CreateOrUpdate - The operation to create or update a license profile. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *LicenseProfilesClient) createOrUpdate(ctx context.Context, resourceGroupName string, machineName string, parameters LicenseProfile, options *LicenseProfilesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "LicenseProfilesClient.BeginCreateOrUpdate" @@ -115,7 +115,7 @@ func (client *LicenseProfilesClient) createOrUpdateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -127,7 +127,7 @@ func (client *LicenseProfilesClient) createOrUpdateCreateRequest(ctx context.Con // BeginDelete - The operation to delete a license profile. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the hybrid machine. // - options - LicenseProfilesClientBeginDeleteOptions contains the optional parameters for the LicenseProfilesClient.BeginDelete @@ -152,7 +152,7 @@ func (client *LicenseProfilesClient) BeginDelete(ctx context.Context, resourceGr // Delete - The operation to delete a license profile. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *LicenseProfilesClient) deleteOperation(ctx context.Context, resourceGroupName string, machineName string, options *LicenseProfilesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "LicenseProfilesClient.BeginDelete" @@ -195,7 +195,7 @@ func (client *LicenseProfilesClient) deleteCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -204,7 +204,7 @@ func (client *LicenseProfilesClient) deleteCreateRequest(ctx context.Context, re // Get - Retrieves information about the view of a license profile. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the hybrid machine. // - options - LicenseProfilesClientGetOptions contains the optional parameters for the LicenseProfilesClient.Get method. @@ -251,7 +251,7 @@ func (client *LicenseProfilesClient) getCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -268,7 +268,7 @@ func (client *LicenseProfilesClient) getHandleResponse(resp *http.Response) (Lic // NewListPager - The operation to get all license profiles of a non-Azure machine // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the machine. // - options - LicenseProfilesClientListOptions contains the optional parameters for the LicenseProfilesClient.NewListPager @@ -316,7 +316,7 @@ func (client *LicenseProfilesClient) listCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -334,7 +334,7 @@ func (client *LicenseProfilesClient) listHandleResponse(resp *http.Response) (Li // BeginUpdate - The operation to update a license profile. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the hybrid machine. // - parameters - Parameters supplied to the Update license profile operation. @@ -360,7 +360,7 @@ func (client *LicenseProfilesClient) BeginUpdate(ctx context.Context, resourceGr // Update - The operation to update a license profile. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *LicenseProfilesClient) update(ctx context.Context, resourceGroupName string, machineName string, parameters LicenseProfileUpdate, options *LicenseProfilesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "LicenseProfilesClient.BeginUpdate" @@ -403,7 +403,7 @@ func (client *LicenseProfilesClient) updateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/licenseprofiles_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/licenseprofiles_client_example_test.go index 68480c4f72ae..a110f10c786a 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/licenseprofiles_client_example_test.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/licenseprofiles_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_CreateOrUpdate.json func ExampleLicenseProfilesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -105,7 +105,7 @@ func ExampleLicenseProfilesClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Update.json func ExampleLicenseProfilesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -190,7 +190,7 @@ func ExampleLicenseProfilesClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Get.json func ExampleLicenseProfilesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -253,7 +253,7 @@ func ExampleLicenseProfilesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_Delete.json func ExampleLicenseProfilesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -274,7 +274,7 @@ func ExampleLicenseProfilesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/licenseProfile/LicenseProfile_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/licenseProfile/LicenseProfile_List.json func ExampleLicenseProfilesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/licenses_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/licenses_client.go index c5d3dbf6a3c2..172f055cd5f2 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/licenses_client.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/licenses_client.go @@ -46,7 +46,7 @@ func NewLicensesClient(subscriptionID string, credential azcore.TokenCredential, // BeginCreateOrUpdate - The operation to create or update a license. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - licenseName - The name of the license. // - parameters - Parameters supplied to the Create license operation. @@ -72,7 +72,7 @@ func (client *LicensesClient) BeginCreateOrUpdate(ctx context.Context, resourceG // CreateOrUpdate - The operation to create or update a license. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *LicensesClient) createOrUpdate(ctx context.Context, resourceGroupName string, licenseName string, parameters License, options *LicensesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "LicensesClient.BeginCreateOrUpdate" @@ -114,7 +114,7 @@ func (client *LicensesClient) createOrUpdateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -126,7 +126,7 @@ func (client *LicensesClient) createOrUpdateCreateRequest(ctx context.Context, r // BeginDelete - The operation to delete a license. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - licenseName - The name of the license. // - options - LicensesClientBeginDeleteOptions contains the optional parameters for the LicensesClient.BeginDelete method. @@ -150,7 +150,7 @@ func (client *LicensesClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - The operation to delete a license. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *LicensesClient) deleteOperation(ctx context.Context, resourceGroupName string, licenseName string, options *LicensesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "LicensesClient.BeginDelete" @@ -192,7 +192,7 @@ func (client *LicensesClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -201,7 +201,7 @@ func (client *LicensesClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Retrieves information about the view of a license. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - licenseName - The name of the license. // - options - LicensesClientGetOptions contains the optional parameters for the LicensesClient.Get method. @@ -247,7 +247,7 @@ func (client *LicensesClient) getCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -264,7 +264,7 @@ func (client *LicensesClient) getHandleResponse(resp *http.Response) (LicensesCl // NewListByResourceGroupPager - The operation to get all licenses of a non-Azure machine // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - LicensesClientListByResourceGroupOptions contains the optional parameters for the LicensesClient.NewListByResourceGroupPager // method. @@ -307,7 +307,7 @@ func (client *LicensesClient) listByResourceGroupCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -324,7 +324,7 @@ func (client *LicensesClient) listByResourceGroupHandleResponse(resp *http.Respo // NewListBySubscriptionPager - The operation to get all licenses of a non-Azure machine // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - options - LicensesClientListBySubscriptionOptions contains the optional parameters for the LicensesClient.NewListBySubscriptionPager // method. func (client *LicensesClient) NewListBySubscriptionPager(options *LicensesClientListBySubscriptionOptions) *runtime.Pager[LicensesClientListBySubscriptionResponse] { @@ -362,7 +362,7 @@ func (client *LicensesClient) listBySubscriptionCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -380,7 +380,7 @@ func (client *LicensesClient) listBySubscriptionHandleResponse(resp *http.Respon // BeginUpdate - The operation to update a license. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - licenseName - The name of the license. // - parameters - Parameters supplied to the Update license operation. @@ -405,7 +405,7 @@ func (client *LicensesClient) BeginUpdate(ctx context.Context, resourceGroupName // Update - The operation to update a license. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *LicensesClient) update(ctx context.Context, resourceGroupName string, licenseName string, parameters LicenseUpdate, options *LicensesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "LicensesClient.BeginUpdate" @@ -447,7 +447,7 @@ func (client *LicensesClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -459,7 +459,7 @@ func (client *LicensesClient) updateCreateRequest(ctx context.Context, resourceG // BeginValidateLicense - The operation to validate a license. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - parameters - Parameters supplied to the license validation operation. // - options - LicensesClientBeginValidateLicenseOptions contains the optional parameters for the LicensesClient.BeginValidateLicense // method. @@ -483,7 +483,7 @@ func (client *LicensesClient) BeginValidateLicense(ctx context.Context, paramete // ValidateLicense - The operation to validate a license. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *LicensesClient) validateLicense(ctx context.Context, parameters License, options *LicensesClientBeginValidateLicenseOptions) (*http.Response, error) { var err error const operationName = "LicensesClient.BeginValidateLicense" @@ -517,7 +517,7 @@ func (client *LicensesClient) validateLicenseCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/licenses_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/licenses_client_example_test.go index df385a932b9f..4fc4e055ed74 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/licenses_client_example_test.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/licenses_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ValidateLicense.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ValidateLicense.json func ExampleLicensesClient_BeginValidateLicense() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -73,7 +73,7 @@ func ExampleLicensesClient_BeginValidateLicense() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_CreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_CreateOrUpdate.json func ExampleLicensesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -128,7 +128,7 @@ func ExampleLicensesClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Update.json func ExampleLicensesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -182,7 +182,7 @@ func ExampleLicensesClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Get.json func ExampleLicensesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -221,7 +221,7 @@ func ExampleLicensesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_Delete.json func ExampleLicensesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -242,7 +242,7 @@ func ExampleLicensesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListByResourceGroup.json func ExampleLicensesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -289,7 +289,7 @@ func ExampleLicensesClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/license/License_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/license/License_ListBySubscription.json func ExampleLicensesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/machineextensions_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/machineextensions_client.go index e50d323b1db5..3e1bab97f13f 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/machineextensions_client.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/machineextensions_client.go @@ -46,7 +46,7 @@ func NewMachineExtensionsClient(subscriptionID string, credential azcore.TokenCr // BeginCreateOrUpdate - The operation to create or update the extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the machine where the extension should be created or updated. // - extensionName - The name of the machine extension. @@ -73,7 +73,7 @@ func (client *MachineExtensionsClient) BeginCreateOrUpdate(ctx context.Context, // CreateOrUpdate - The operation to create or update the extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *MachineExtensionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, machineName string, extensionName string, extensionParameters MachineExtension, options *MachineExtensionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "MachineExtensionsClient.BeginCreateOrUpdate" @@ -119,7 +119,7 @@ func (client *MachineExtensionsClient) createOrUpdateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil { @@ -131,7 +131,7 @@ func (client *MachineExtensionsClient) createOrUpdateCreateRequest(ctx context.C // BeginDelete - The operation to delete the extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the machine where the extension should be deleted. // - extensionName - The name of the machine extension. @@ -157,7 +157,7 @@ func (client *MachineExtensionsClient) BeginDelete(ctx context.Context, resource // Delete - The operation to delete the extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *MachineExtensionsClient) deleteOperation(ctx context.Context, resourceGroupName string, machineName string, extensionName string, options *MachineExtensionsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "MachineExtensionsClient.BeginDelete" @@ -203,7 +203,7 @@ func (client *MachineExtensionsClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -212,7 +212,7 @@ func (client *MachineExtensionsClient) deleteCreateRequest(ctx context.Context, // Get - The operation to get the extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the machine containing the extension. // - extensionName - The name of the machine extension. @@ -263,7 +263,7 @@ func (client *MachineExtensionsClient) getCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -280,7 +280,7 @@ func (client *MachineExtensionsClient) getHandleResponse(resp *http.Response) (M // NewListPager - The operation to get all extensions of a non-Azure machine // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the machine containing the extension. // - options - MachineExtensionsClientListOptions contains the optional parameters for the MachineExtensionsClient.NewListPager @@ -331,7 +331,7 @@ func (client *MachineExtensionsClient) listCreateRequest(ctx context.Context, re if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -346,10 +346,10 @@ func (client *MachineExtensionsClient) listHandleResponse(resp *http.Response) ( return result, nil } -// BeginUpdate - The operation to update the extension. +// BeginUpdate - The operation to create or update the extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the machine where the extension should be created or updated. // - extensionName - The name of the machine extension. @@ -373,10 +373,10 @@ func (client *MachineExtensionsClient) BeginUpdate(ctx context.Context, resource } } -// Update - The operation to update the extension. +// Update - The operation to create or update the extension. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *MachineExtensionsClient) update(ctx context.Context, resourceGroupName string, machineName string, extensionName string, extensionParameters MachineExtensionUpdate, options *MachineExtensionsClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "MachineExtensionsClient.BeginUpdate" @@ -422,7 +422,7 @@ func (client *MachineExtensionsClient) updateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/machineextensions_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/machineextensions_client_example_test.go index 11a766c3d553..3405203dea79 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/machineextensions_client_example_test.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/machineextensions_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_CreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_CreateOrUpdate.json func ExampleMachineExtensionsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -81,7 +81,7 @@ func ExampleMachineExtensionsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Update.json func ExampleMachineExtensionsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -145,7 +145,7 @@ func ExampleMachineExtensionsClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Delete.json func ExampleMachineExtensionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -166,7 +166,7 @@ func ExampleMachineExtensionsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_Get.json func ExampleMachineExtensionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -216,7 +216,7 @@ func ExampleMachineExtensionsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extension_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extension_List.json func ExampleMachineExtensionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/machineruncommands_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/machineruncommands_client.go new file mode 100644 index 000000000000..248b887e5445 --- /dev/null +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/machineruncommands_client.go @@ -0,0 +1,349 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armhybridcompute + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// MachineRunCommandsClient contains the methods for the MachineRunCommands group. +// Don't use this type directly, use NewMachineRunCommandsClient() instead. +type MachineRunCommandsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewMachineRunCommandsClient creates a new instance of MachineRunCommandsClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewMachineRunCommandsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MachineRunCommandsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &MachineRunCommandsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// BeginCreateOrUpdate - The operation to create or update a run command. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-31-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - machineName - The name of the hybrid machine. +// - runCommandName - The name of the run command. +// - runCommandProperties - Parameters supplied to the Create Run Command. +// - options - MachineRunCommandsClientBeginCreateOrUpdateOptions contains the optional parameters for the MachineRunCommandsClient.BeginCreateOrUpdate +// method. +func (client *MachineRunCommandsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, machineName string, runCommandName string, runCommandProperties MachineRunCommand, options *MachineRunCommandsClientBeginCreateOrUpdateOptions) (*runtime.Poller[MachineRunCommandsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, machineName, runCommandName, runCommandProperties, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[MachineRunCommandsClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[MachineRunCommandsClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - The operation to create or update a run command. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-31-preview +func (client *MachineRunCommandsClient) createOrUpdate(ctx context.Context, resourceGroupName string, machineName string, runCommandName string, runCommandProperties MachineRunCommand, options *MachineRunCommandsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "MachineRunCommandsClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, machineName, runCommandName, runCommandProperties, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *MachineRunCommandsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, machineName string, runCommandName string, runCommandProperties MachineRunCommand, options *MachineRunCommandsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if machineName == "" { + return nil, errors.New("parameter machineName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{machineName}", url.PathEscape(machineName)) + if runCommandName == "" { + return nil, errors.New("parameter runCommandName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{runCommandName}", url.PathEscape(runCommandName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-07-31-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, runCommandProperties); err != nil { + return nil, err + } + return req, nil +} + +// BeginDelete - The operation to delete a run command. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-31-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - machineName - The name of the hybrid machine. +// - runCommandName - The name of the run command. +// - options - MachineRunCommandsClientBeginDeleteOptions contains the optional parameters for the MachineRunCommandsClient.BeginDelete +// method. +func (client *MachineRunCommandsClient) BeginDelete(ctx context.Context, resourceGroupName string, machineName string, runCommandName string, options *MachineRunCommandsClientBeginDeleteOptions) (*runtime.Poller[MachineRunCommandsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, machineName, runCommandName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[MachineRunCommandsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[MachineRunCommandsClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Delete - The operation to delete a run command. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-31-preview +func (client *MachineRunCommandsClient) deleteOperation(ctx context.Context, resourceGroupName string, machineName string, runCommandName string, options *MachineRunCommandsClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "MachineRunCommandsClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, machineName, runCommandName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *MachineRunCommandsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, machineName string, runCommandName string, options *MachineRunCommandsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if machineName == "" { + return nil, errors.New("parameter machineName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{machineName}", url.PathEscape(machineName)) + if runCommandName == "" { + return nil, errors.New("parameter runCommandName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{runCommandName}", url.PathEscape(runCommandName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-07-31-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - The operation to get a run command. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-31-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - machineName - The name of the hybrid machine. +// - runCommandName - The name of the run command. +// - options - MachineRunCommandsClientGetOptions contains the optional parameters for the MachineRunCommandsClient.Get method. +func (client *MachineRunCommandsClient) Get(ctx context.Context, resourceGroupName string, machineName string, runCommandName string, options *MachineRunCommandsClientGetOptions) (MachineRunCommandsClientGetResponse, error) { + var err error + const operationName = "MachineRunCommandsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, machineName, runCommandName, options) + if err != nil { + return MachineRunCommandsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return MachineRunCommandsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return MachineRunCommandsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *MachineRunCommandsClient) getCreateRequest(ctx context.Context, resourceGroupName string, machineName string, runCommandName string, options *MachineRunCommandsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if machineName == "" { + return nil, errors.New("parameter machineName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{machineName}", url.PathEscape(machineName)) + if runCommandName == "" { + return nil, errors.New("parameter runCommandName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{runCommandName}", url.PathEscape(runCommandName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-07-31-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *MachineRunCommandsClient) getHandleResponse(resp *http.Response) (MachineRunCommandsClientGetResponse, error) { + result := MachineRunCommandsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.MachineRunCommand); err != nil { + return MachineRunCommandsClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - The operation to get all the run commands of a non-Azure machine. +// +// Generated from API version 2024-07-31-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - machineName - The name of the hybrid machine. +// - options - MachineRunCommandsClientListOptions contains the optional parameters for the MachineRunCommandsClient.NewListPager +// method. +func (client *MachineRunCommandsClient) NewListPager(resourceGroupName string, machineName string, options *MachineRunCommandsClientListOptions) *runtime.Pager[MachineRunCommandsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[MachineRunCommandsClientListResponse]{ + More: func(page MachineRunCommandsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *MachineRunCommandsClientListResponse) (MachineRunCommandsClientListResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "MachineRunCommandsClient.NewListPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listCreateRequest(ctx, resourceGroupName, machineName, options) + }, nil) + if err != nil { + return MachineRunCommandsClientListResponse{}, err + } + return client.listHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listCreateRequest creates the List request. +func (client *MachineRunCommandsClient) listCreateRequest(ctx context.Context, resourceGroupName string, machineName string, options *MachineRunCommandsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if machineName == "" { + return nil, errors.New("parameter machineName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{machineName}", url.PathEscape(machineName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + if options != nil && options.Expand != nil { + reqQP.Set("$expand", *options.Expand) + } + reqQP.Set("api-version", "2024-07-31-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *MachineRunCommandsClient) listHandleResponse(resp *http.Response) (MachineRunCommandsClientListResponse, error) { + result := MachineRunCommandsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.MachineRunCommandsListResult); err != nil { + return MachineRunCommandsClientListResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/machineruncommands_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/machineruncommands_client_example_test.go new file mode 100644 index 000000000000..cc624d69a6a0 --- /dev/null +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/machineruncommands_client_example_test.go @@ -0,0 +1,262 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armhybridcompute_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_CreateOrUpdate.json +func ExampleMachineRunCommandsClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhybridcompute.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewMachineRunCommandsClient().BeginCreateOrUpdate(ctx, "myResourceGroup", "myMachine", "myRunCommand", armhybridcompute.MachineRunCommand{ + Location: to.Ptr("eastus2"), + Properties: &armhybridcompute.MachineRunCommandProperties{ + AsyncExecution: to.Ptr(false), + ErrorBlobURI: to.Ptr("https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt"), + OutputBlobURI: to.Ptr("https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt"), + Parameters: []*armhybridcompute.RunCommandInputParameter{ + { + Name: to.Ptr("param1"), + Value: to.Ptr("value1"), + }, + { + Name: to.Ptr("param2"), + Value: to.Ptr("value2"), + }}, + RunAsPassword: to.Ptr(""), + RunAsUser: to.Ptr("user1"), + Source: &armhybridcompute.MachineRunCommandScriptSource{ + Script: to.Ptr("Write-Host Hello World!"), + }, + TimeoutInSeconds: to.Ptr[int32](3600), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + res, err := poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.MachineRunCommand = armhybridcompute.MachineRunCommand{ + // Name: to.Ptr("myRunCommand"), + // Type: to.Ptr("Microsoft.HybridCompute/machines/runcommands"), + // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand"), + // Location: to.Ptr("eastus2"), + // Properties: &armhybridcompute.MachineRunCommandProperties{ + // AsyncExecution: to.Ptr(false), + // ErrorBlobURI: to.Ptr("https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt"), + // OutputBlobURI: to.Ptr("https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt"), + // Parameters: []*armhybridcompute.RunCommandInputParameter{ + // { + // Name: to.Ptr("param1"), + // Value: to.Ptr("value1"), + // }, + // { + // Name: to.Ptr("param2"), + // Value: to.Ptr("value2"), + // }}, + // ProvisioningState: to.Ptr("Succeeded"), + // RunAsUser: to.Ptr("user1"), + // Source: &armhybridcompute.MachineRunCommandScriptSource{ + // Script: to.Ptr("Write-Host Hello World!"), + // }, + // TimeoutInSeconds: to.Ptr[int32](3600), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Delete.json +func ExampleMachineRunCommandsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhybridcompute.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewMachineRunCommandsClient().BeginDelete(ctx, "myResourceGroup", "myMachine", "myRunCommand", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_Get.json +func ExampleMachineRunCommandsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhybridcompute.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewMachineRunCommandsClient().Get(ctx, "myResourceGroup", "myMachine", "myRunCommand", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.MachineRunCommand = armhybridcompute.MachineRunCommand{ + // Name: to.Ptr("myRunCommand"), + // Type: to.Ptr("Microsoft.HybridCompute/machines/runcommands"), + // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand"), + // Location: to.Ptr("eastus2"), + // Tags: map[string]*string{ + // "tag1": to.Ptr("value1"), + // "tag2": to.Ptr("value2"), + // }, + // Properties: &armhybridcompute.MachineRunCommandProperties{ + // AsyncExecution: to.Ptr(false), + // InstanceView: &armhybridcompute.MachineRunCommandInstanceView{ + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-15T20:48:41.464Z"); return t}()), + // Error: to.Ptr(""), + // ExecutionMessage: to.Ptr(""), + // ExecutionState: to.Ptr(armhybridcompute.ExecutionStateSucceeded), + // ExitCode: to.Ptr[int32](0), + // Output: to.Ptr("Hello World"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-15T20:48:41.464Z"); return t}()), + // }, + // Parameters: []*armhybridcompute.RunCommandInputParameter{ + // { + // Name: to.Ptr("param1"), + // Value: to.Ptr("value1"), + // }, + // { + // Name: to.Ptr("param2"), + // Value: to.Ptr("value2"), + // }}, + // ProtectedParameters: []*armhybridcompute.RunCommandInputParameter{ + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // RunAsUser: to.Ptr("user1"), + // Source: &armhybridcompute.MachineRunCommandScriptSource{ + // Script: to.Ptr("Write-Host Hello World!"), + // }, + // TimeoutInSeconds: to.Ptr[int32](3600), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/runCommand/RunCommands_List.json +func ExampleMachineRunCommandsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhybridcompute.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := clientFactory.NewMachineRunCommandsClient().NewListPager("myResourceGroup", "myMachine", &armhybridcompute.MachineRunCommandsClientListOptions{Expand: nil}) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MachineRunCommandsListResult = armhybridcompute.MachineRunCommandsListResult{ + // Value: []*armhybridcompute.MachineRunCommand{ + // { + // Name: to.Ptr("myRunCommand_1"), + // Type: to.Ptr("Microsoft.HybridCompute/machines/runcommands"), + // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand_1"), + // Location: to.Ptr("eastus2"), + // Properties: &armhybridcompute.MachineRunCommandProperties{ + // AsyncExecution: to.Ptr(false), + // InstanceView: &armhybridcompute.MachineRunCommandInstanceView{ + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-15T20:48:41.464Z"); return t}()), + // Error: to.Ptr(""), + // ExecutionMessage: to.Ptr(""), + // ExecutionState: to.Ptr(armhybridcompute.ExecutionStateSucceeded), + // ExitCode: to.Ptr[int32](0), + // Output: to.Ptr("Hello World"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-15T20:48:41.464Z"); return t}()), + // }, + // Parameters: []*armhybridcompute.RunCommandInputParameter{ + // { + // Name: to.Ptr("param1"), + // Value: to.Ptr("value1"), + // }, + // { + // Name: to.Ptr("param2"), + // Value: to.Ptr("value2"), + // }}, + // ProtectedParameters: []*armhybridcompute.RunCommandInputParameter{ + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // RunAsUser: to.Ptr("user1"), + // Source: &armhybridcompute.MachineRunCommandScriptSource{ + // Script: to.Ptr("Write-Host Hello World!"), + // }, + // TimeoutInSeconds: to.Ptr[int32](3600), + // }, + // }, + // { + // Name: to.Ptr("myRunCommand_2"), + // Type: to.Ptr("Microsoft.HybridCompute/machines/runcommands"), + // ID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/Machines/myMachine/runcommands/myRunCommand_2"), + // Location: to.Ptr("eastus2"), + // Properties: &armhybridcompute.MachineRunCommandProperties{ + // AsyncExecution: to.Ptr(false), + // InstanceView: &armhybridcompute.MachineRunCommandInstanceView{ + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-15T20:48:41.464Z"); return t}()), + // Error: to.Ptr(""), + // ExecutionMessage: to.Ptr(""), + // ExecutionState: to.Ptr(armhybridcompute.ExecutionStateSucceeded), + // ExitCode: to.Ptr[int32](0), + // Output: to.Ptr(""), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-06-15T20:48:41.464Z"); return t}()), + // }, + // Parameters: []*armhybridcompute.RunCommandInputParameter{ + // }, + // ProtectedParameters: []*armhybridcompute.RunCommandInputParameter{ + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // RunAsUser: to.Ptr("userA"), + // Source: &armhybridcompute.MachineRunCommandScriptSource{ + // Script: to.Ptr("Get-Process | Where-Object { $_.CPU -gt 10000 }"), + // }, + // TimeoutInSeconds: to.Ptr[int32](100), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/machines_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/machines_client.go index 9a14d6ab2e41..44abca15270a 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/machines_client.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/machines_client.go @@ -46,7 +46,7 @@ func NewMachinesClient(subscriptionID string, credential azcore.TokenCredential, // BeginAssessPatches - The operation to assess patches on a hybrid machine identity in Azure. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. // - name - The name of the hybrid machine. // - options - MachinesClientBeginAssessPatchesOptions contains the optional parameters for the MachinesClient.BeginAssessPatches @@ -72,7 +72,7 @@ func (client *MachinesClient) BeginAssessPatches(ctx context.Context, resourceGr // AssessPatches - The operation to assess patches on a hybrid machine identity in Azure. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *MachinesClient) assessPatches(ctx context.Context, resourceGroupName string, name string, options *MachinesClientBeginAssessPatchesOptions) (*http.Response, error) { var err error const operationName = "MachinesClient.BeginAssessPatches" @@ -114,7 +114,7 @@ func (client *MachinesClient) assessPatchesCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -124,7 +124,7 @@ func (client *MachinesClient) assessPatchesCreateRequest(ctx context.Context, re // machine creation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the hybrid machine. // - parameters - Parameters supplied to the Create hybrid machine operation. @@ -174,7 +174,7 @@ func (client *MachinesClient) createOrUpdateCreateRequest(ctx context.Context, r if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -195,7 +195,7 @@ func (client *MachinesClient) createOrUpdateHandleResponse(resp *http.Response) // Delete - The operation to delete a hybrid machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the hybrid machine. // - options - MachinesClientDeleteOptions contains the optional parameters for the MachinesClient.Delete method. @@ -240,7 +240,7 @@ func (client *MachinesClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -249,7 +249,7 @@ func (client *MachinesClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Retrieves information about the model view or the instance view of a hybrid machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the hybrid machine. // - options - MachinesClientGetOptions contains the optional parameters for the MachinesClient.Get method. @@ -298,7 +298,7 @@ func (client *MachinesClient) getCreateRequest(ctx context.Context, resourceGrou if options != nil && options.Expand != nil { reqQP.Set("$expand", string(*options.Expand)) } - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -316,7 +316,7 @@ func (client *MachinesClient) getHandleResponse(resp *http.Response) (MachinesCl // BeginInstallPatches - The operation to install patches on a hybrid machine identity in Azure. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. // - name - The name of the hybrid machine. // - installPatchesInput - Input for InstallPatches as directly received by the API @@ -343,7 +343,7 @@ func (client *MachinesClient) BeginInstallPatches(ctx context.Context, resourceG // InstallPatches - The operation to install patches on a hybrid machine identity in Azure. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *MachinesClient) installPatches(ctx context.Context, resourceGroupName string, name string, installPatchesInput MachineInstallPatchesParameters, options *MachinesClientBeginInstallPatchesOptions) (*http.Response, error) { var err error const operationName = "MachinesClient.BeginInstallPatches" @@ -385,7 +385,7 @@ func (client *MachinesClient) installPatchesCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, installPatchesInput); err != nil { @@ -397,7 +397,7 @@ func (client *MachinesClient) installPatchesCreateRequest(ctx context.Context, r // NewListByResourceGroupPager - Lists all the hybrid machines in the specified resource group. Use the nextLink property // in the response to get the next page of hybrid machines. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - MachinesClientListByResourceGroupOptions contains the optional parameters for the MachinesClient.NewListByResourceGroupPager // method. @@ -443,7 +443,7 @@ func (client *MachinesClient) listByResourceGroupCreateRequest(ctx context.Conte if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -461,7 +461,7 @@ func (client *MachinesClient) listByResourceGroupHandleResponse(resp *http.Respo // NewListBySubscriptionPager - Lists all the hybrid machines in the specified subscription. Use the nextLink property in // the response to get the next page of hybrid machines. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - options - MachinesClientListBySubscriptionOptions contains the optional parameters for the MachinesClient.NewListBySubscriptionPager // method. func (client *MachinesClient) NewListBySubscriptionPager(options *MachinesClientListBySubscriptionOptions) *runtime.Pager[MachinesClientListBySubscriptionResponse] { @@ -499,7 +499,7 @@ func (client *MachinesClient) listBySubscriptionCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -517,7 +517,7 @@ func (client *MachinesClient) listBySubscriptionHandleResponse(resp *http.Respon // Update - The operation to update a hybrid machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the hybrid machine. // - parameters - Parameters supplied to the Update hybrid machine operation. @@ -564,7 +564,7 @@ func (client *MachinesClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/machines_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/machines_client_example_test.go index 543be93af984..6e735ee5b19a 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/machines_client_example_test.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/machines_client_example_test.go @@ -20,7 +20,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_CreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_CreateOrUpdate.json func ExampleMachinesClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -144,7 +144,7 @@ func ExampleMachinesClient_CreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Update.json func ExampleMachinesClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -269,7 +269,7 @@ func ExampleMachinesClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Delete.json func ExampleMachinesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -286,7 +286,7 @@ func ExampleMachinesClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get.json func ExampleMachinesClient_Get_getMachine() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -333,6 +333,19 @@ func ExampleMachinesClient_Get_getMachine() { // "manufacturer": to.Ptr("Microsoft Corporation"), // "model": to.Ptr("Virtual Machine"), // }, + // FirmwareProfile: &armhybridcompute.FirmwareProfile{ + // Type: to.Ptr("BIOS"), + // SerialNumber: to.Ptr("007f0232-1c2e-4978-8604-ea44e7a5f5a0"), + // }, + // HardwareProfile: &armhybridcompute.HardwareProfile{ + // NumberOfCPUSockets: to.Ptr[int32](2), + // Processors: []*armhybridcompute.Processor{ + // { + // Name: to.Ptr("Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz"), + // NumberOfCores: to.Ptr[int32](4), + // }}, + // TotalPhysicalMemoryInBytes: to.Ptr[int64](34359738368), + // }, // LicenseProfile: &armhybridcompute.LicenseProfileMachineInstanceView{ // EsuProfile: &armhybridcompute.LicenseProfileMachineInstanceViewEsuProperties{ // EsuKeys: []*armhybridcompute.EsuKey{ @@ -381,6 +394,8 @@ func ExampleMachinesClient_Get_getMachine() { // NetworkProfile: &armhybridcompute.NetworkProfile{ // NetworkInterfaces: []*armhybridcompute.NetworkInterface{ // { + // Name: to.Ptr("Wi-Fi"), + // ID: to.Ptr("8"), // IPAddresses: []*armhybridcompute.IPAddress{ // { // Address: to.Ptr("192.168.12.345"), @@ -389,8 +404,11 @@ func ExampleMachinesClient_Get_getMachine() { // AddressPrefix: to.Ptr("192.168.12.0/24"), // }, // }}, + // MacAddress: to.Ptr("3c:49:6e:13:0e:73"), // }, // { + // Name: to.Ptr("Ethernet"), + // ID: to.Ptr("23"), // IPAddresses: []*armhybridcompute.IPAddress{ // { // Address: to.Ptr("1001:0:34aa:5000:1234:aaaa:bbbb:cccc"), @@ -399,6 +417,7 @@ func ExampleMachinesClient_Get_getMachine() { // AddressPrefix: to.Ptr("1001:0:34aa:5000::/64"), // }, // }}, + // MacAddress: to.Ptr("10:15:5c:52:f9:b8"), // }}, // }, // OSEdition: to.Ptr("Standard"), @@ -429,6 +448,18 @@ func ExampleMachinesClient_Get_getMachine() { // Status: to.Ptr("Running"), // }, // }, + // StorageProfile: &armhybridcompute.StorageProfile{ + // Disks: []*armhybridcompute.Disk{ + // { + // Name: to.Ptr("Windows"), + // Path: to.Ptr("C:/"), + // DiskType: to.Ptr("Fixed"), + // GeneratedID: to.Ptr("94318602-6e46-4eaa-997e-0e528afe3d17"), + // ID: to.Ptr("2"), + // MaxSizeInBytes: to.Ptr[int64](1022870155264), + // UsedSpaceInBytes: to.Ptr[int64](435501297664), + // }}, + // }, // VMID: to.Ptr("b7a098cc-b0b8-46e8-a205-62f301a62a8f"), // }, // Resources: []*armhybridcompute.MachineExtension{ @@ -436,7 +467,7 @@ func ExampleMachinesClient_Get_getMachine() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_Get_LicenseProfileInstanceView.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_Get_LicenseProfileInstanceView.json func ExampleMachinesClient_Get_getMachineWithLicenseProfileInstanceView() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -483,6 +514,19 @@ func ExampleMachinesClient_Get_getMachineWithLicenseProfileInstanceView() { // "manufacturer": to.Ptr("Microsoft Corporation"), // "model": to.Ptr("Virtual Machine"), // }, + // FirmwareProfile: &armhybridcompute.FirmwareProfile{ + // Type: to.Ptr("BIOS"), + // SerialNumber: to.Ptr("007f0232-1c2e-4978-8604-ea44e7a5f5a0"), + // }, + // HardwareProfile: &armhybridcompute.HardwareProfile{ + // NumberOfCPUSockets: to.Ptr[int32](2), + // Processors: []*armhybridcompute.Processor{ + // { + // Name: to.Ptr("Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz"), + // NumberOfCores: to.Ptr[int32](4), + // }}, + // TotalPhysicalMemoryInBytes: to.Ptr[int64](34359738368), + // }, // LicenseProfile: &armhybridcompute.LicenseProfileMachineInstanceView{ // EsuProfile: &armhybridcompute.LicenseProfileMachineInstanceViewEsuProperties{ // EsuKeys: []*armhybridcompute.EsuKey{ @@ -550,6 +594,8 @@ func ExampleMachinesClient_Get_getMachineWithLicenseProfileInstanceView() { // NetworkProfile: &armhybridcompute.NetworkProfile{ // NetworkInterfaces: []*armhybridcompute.NetworkInterface{ // { + // Name: to.Ptr("Wi-Fi"), + // ID: to.Ptr("8"), // IPAddresses: []*armhybridcompute.IPAddress{ // { // Address: to.Ptr("192.168.12.345"), @@ -558,8 +604,11 @@ func ExampleMachinesClient_Get_getMachineWithLicenseProfileInstanceView() { // AddressPrefix: to.Ptr("192.168.12.0/24"), // }, // }}, + // MacAddress: to.Ptr("3c:49:6e:13:0e:73"), // }, // { + // Name: to.Ptr("Ethernet"), + // ID: to.Ptr("23"), // IPAddresses: []*armhybridcompute.IPAddress{ // { // Address: to.Ptr("1001:0:34aa:5000:1234:aaaa:bbbb:cccc"), @@ -568,6 +617,7 @@ func ExampleMachinesClient_Get_getMachineWithLicenseProfileInstanceView() { // AddressPrefix: to.Ptr("1001:0:34aa:5000::/64"), // }, // }}, + // MacAddress: to.Ptr("10:15:5c:52:f9:b8"), // }}, // }, // OSEdition: to.Ptr("Standard"), @@ -598,6 +648,18 @@ func ExampleMachinesClient_Get_getMachineWithLicenseProfileInstanceView() { // Status: to.Ptr("Running"), // }, // }, + // StorageProfile: &armhybridcompute.StorageProfile{ + // Disks: []*armhybridcompute.Disk{ + // { + // Name: to.Ptr("Windows"), + // Path: to.Ptr("C:/"), + // DiskType: to.Ptr("Fixed"), + // GeneratedID: to.Ptr("94318602-6e46-4eaa-997e-0e528afe3d17"), + // ID: to.Ptr("2"), + // MaxSizeInBytes: to.Ptr[int64](1022870155264), + // UsedSpaceInBytes: to.Ptr[int64](435501297664), + // }}, + // }, // VMID: to.Ptr("b7a098cc-b0b8-46e8-a205-62f301a62a8f"), // }, // Resources: []*armhybridcompute.MachineExtension{ @@ -605,7 +667,7 @@ func ExampleMachinesClient_Get_getMachineWithLicenseProfileInstanceView() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_AssessPatches.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_AssessPatches.json func ExampleMachinesClient_BeginAssessPatches() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -648,7 +710,7 @@ func ExampleMachinesClient_BeginAssessPatches() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machine_InstallPatches.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machine_InstallPatches.json func ExampleMachinesClient_BeginInstallPatches() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -696,7 +758,7 @@ func ExampleMachinesClient_BeginInstallPatches() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListByResourceGroup.json func ExampleMachinesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -909,7 +971,7 @@ func ExampleMachinesClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/machine/Machines_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/machine/Machines_ListBySubscription.json func ExampleMachinesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/management_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/management_client.go index 02df22a6cfaf..1901f6a85542 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/management_client.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/management_client.go @@ -46,7 +46,7 @@ func NewManagementClient(subscriptionID string, credential azcore.TokenCredentia // BeginUpgradeExtensions - The operation to Upgrade Machine Extensions. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the hybrid machine. // - extensionUpgradeParameters - Parameters supplied to the Upgrade Extensions operation. @@ -72,7 +72,7 @@ func (client *ManagementClient) BeginUpgradeExtensions(ctx context.Context, reso // UpgradeExtensions - The operation to Upgrade Machine Extensions. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *ManagementClient) upgradeExtensions(ctx context.Context, resourceGroupName string, machineName string, extensionUpgradeParameters MachineExtensionUpgrade, options *ManagementClientBeginUpgradeExtensionsOptions) (*http.Response, error) { var err error const operationName = "ManagementClient.BeginUpgradeExtensions" @@ -114,7 +114,7 @@ func (client *ManagementClient) upgradeExtensionsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, extensionUpgradeParameters); err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/management_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/management_client_example_test.go index e8456d60997e..da1e0014d933 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/management_client_example_test.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/management_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/extension/Extensions_Upgrade.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/extension/Extensions_Upgrade.json func ExampleManagementClient_BeginUpgradeExtensions() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/models.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/models.go index 218e2348f05f..528c00f376f4 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/models.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/models.go @@ -59,13 +59,13 @@ type AgentConfiguration struct { // AgentUpgrade - The info w.r.t Agent Upgrade. type AgentUpgrade struct { - // The correlation ID passed in from RSM per upgrade. + // The correlation ID associated with an agent upgrade operation. CorrelationID *string // Specifies the version info w.r.t AgentUpgrade for the machine. DesiredVersion *string - // Specifies if RSM should try to upgrade this machine + // Specifies if the machine's agent should be upgraded EnableAutomaticUpgrade *bool // READ-ONLY; Specifies the version of the last attempt @@ -143,6 +143,30 @@ type ConnectionDetail struct { PrivateIPAddress *string } +// Disk - Describes a disk on the machine +type Disk struct { + // The type of the disk. + DiskType *string + + // The generated ID of the disk. + GeneratedID *string + + // The ID of the disk. + ID *string + + // The size of the disk, in bytes + MaxSizeInBytes *int64 + + // The name of the disk. + Name *string + + // The path of the disk. + Path *string + + // The amount of space used on the disk, in bytes + UsedSpaceInBytes *int64 +} + // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. @@ -228,6 +252,111 @@ type ExtensionValueProperties struct { Version *string } +// ExtensionsResourceStatus - Instance view status. +type ExtensionsResourceStatus struct { + // The status code. + Code *string + + // The short localizable label for the status. + DisplayStatus *string + + // The level code. + Level *ExtensionsStatusLevelTypes + + // The detailed status message, including for alerts and error messages. + Message *string + + // The time of the status. + Time *time.Time +} + +// FirmwareProfile - Describes the firmware of the machine +type FirmwareProfile struct { + // READ-ONLY; The serial number of the firmware + SerialNumber *string + + // READ-ONLY; The type of the firmware + Type *string +} + +// Gateway - Describes an Arc Gateway. +type Gateway struct { + // REQUIRED; The geo-location where the resource lives + Location *string + + // Hybrid Compute Gateway properties + Properties *GatewayProperties + + // Resource tags. + Tags map[string]*string + + // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// GatewayProperties - Describes the properties of a Gateway Profile. +type GatewayProperties struct { + // Specifies the list of features that are enabled for this Gateway. + AllowedFeatures []*string + + // The type of the Gateway resource. + GatewayType *GatewayType + + // READ-ONLY; The endpoint fqdn for the Gateway. + GatewayEndpoint *string + + // READ-ONLY; A unique, immutable, identifier for the Gateway. + GatewayID *string + + // READ-ONLY; The provisioning state, which only appears in the response. + ProvisioningState *ProvisioningState +} + +// GatewayUpdate - Describes a License Update. +type GatewayUpdate struct { + // Gateway Update properties + Properties *GatewayUpdateProperties + + // Resource tags + Tags map[string]*string +} + +// GatewayUpdateProperties - Describes the Update properties of a Gateway Profile. +type GatewayUpdateProperties struct { + // Specifies the list of features that are enabled for this Gateway. + AllowedFeatures []*string +} + +// GatewaysListResult - The List license operation response. +type GatewaysListResult struct { + // REQUIRED; The list of Gateways. + Value []*Gateway + + // The URI to fetch the next page of Gateways. Call ListNext() with this URI to fetch the next page of Gateways. + NextLink *string +} + +// HardwareProfile - Describes the hardware of the machine +type HardwareProfile struct { + // READ-ONLY; The total number of CPU sockets available on the machine + NumberOfCPUSockets *int32 + + // READ-ONLY; The physical processors of the machine. + Processors []*Processor + + // READ-ONLY; The total physical memory on the machine + TotalPhysicalMemoryInBytes *int64 +} + // IPAddress - Describes properties of the IP address. type IPAddress struct { // Represents the IP Address. @@ -912,6 +1041,12 @@ type MachineProperties struct { // READ-ONLY; Details about the error state. ErrorDetails []*ErrorDetail + // READ-ONLY; Information about the machine's firmware + FirmwareProfile *FirmwareProfile + + // READ-ONLY; Information about the machine's hardware + HardwareProfile *HardwareProfile + // READ-ONLY; The time of the last status change. LastStatusChange *time.Time @@ -939,10 +1074,146 @@ type MachineProperties struct { // READ-ONLY; The status of the hybrid machine agent. Status *StatusTypes + // READ-ONLY; Information about the machine's storage + StorageProfile *StorageProfile + // READ-ONLY; Specifies the Arc Machine's unique SMBIOS ID VMUUID *string } +// MachineRunCommand - Describes a Run Command +type MachineRunCommand struct { + // REQUIRED; The geo-location where the resource lives + Location *string + + // Describes Run Command Properties + Properties *MachineRunCommandProperties + + // Resource tags. + Tags map[string]*string + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// MachineRunCommandInstanceView - The instance view of a machine run command. +type MachineRunCommandInstanceView struct { + // Script end time. + EndTime *time.Time + + // Script error stream. + Error *string + + // Communicate script configuration errors or execution messages. + ExecutionMessage *string + + // Script execution status. + ExecutionState *ExecutionState + + // Exit code returned from script execution. + ExitCode *int32 + + // Script output stream. + Output *string + + // Script start time. + StartTime *time.Time + + // The status information. + Statuses []*ExtensionsResourceStatus +} + +// MachineRunCommandProperties - Describes the properties of a run command. +type MachineRunCommandProperties struct { + // Optional. If set to true, provisioning will complete as soon as script starts and will not wait for script to complete. + AsyncExecution *bool + + // User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of system-assigned + // identity. Make sure managed identity has been given access to blob's + // container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it + // under VM's identity. For more info on managed identity and Run Command, refer + // https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged + ErrorBlobManagedIdentity *RunCommandManagedIdentity + + // Specifies the Azure storage blob where script error stream will be uploaded. Use a SAS URI with read, append, create, write + // access OR use managed identity to provide the VM access to the blob. Refer + // errorBlobManagedIdentity parameter. + ErrorBlobURI *string + + // User-assigned managed identity that has access to outputBlobUri storage blob. Use an empty object in case of system-assigned + // identity. Make sure managed identity has been given access to blob's + // container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it + // under VM's identity. For more info on managed identity and Run Command, refer + // https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged + OutputBlobManagedIdentity *RunCommandManagedIdentity + + // Specifies the Azure storage blob where script output stream will be uploaded. Use a SAS URI with read, append, create, + // write access OR use managed identity to provide the VM access to the blob. Refer + // outputBlobManagedIdentity parameter. + OutputBlobURI *string + + // The parameters used by the script. + Parameters []*RunCommandInputParameter + + // The parameters used by the script. + ProtectedParameters []*RunCommandInputParameter + + // Specifies the user account password on the machine when executing the run command. + RunAsPassword *string + + // Specifies the user account on the machine when executing the run command. + RunAsUser *string + + // The source of the run command script. + Source *MachineRunCommandScriptSource + + // The timeout in seconds to execute the run command. + TimeoutInSeconds *int32 + + // READ-ONLY; The machine run command instance view. + InstanceView *MachineRunCommandInstanceView + + // READ-ONLY; The provisioning state, which only appears in the response. + ProvisioningState *string +} + +// MachineRunCommandScriptSource - Describes the script sources for run command. Use only one of script, scriptUri, commandId. +type MachineRunCommandScriptSource struct { + // Specifies the commandId of predefined built-in script. + CommandID *string + + // Specifies the script content to be executed on the machine. + Script *string + + // Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI. + ScriptURI *string + + // User-assigned managed identity that has access to scriptUri in case of Azure storage blob. Use an empty object in case + // of system-assigned identity. Make sure the Azure storage blob exists, and managed + // identity has been given access to blob's container with 'Storage Blob Data Reader' role assignment. In case of user-assigned + // identity, make sure you add it under VM's identity. For more info on + // managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. + ScriptURIManagedIdentity *RunCommandManagedIdentity +} + +// MachineRunCommandsListResult - Describes the Run Commands List Result. +type MachineRunCommandsListResult struct { + // The uri to fetch the next page of run commands. Call ListNext() with this to fetch the next page of run commands. + NextLink *string + + // The list of run commands + Value []*MachineRunCommand +} + // MachineUpdate - Describes a hybrid machine Update. type MachineUpdate struct { // Identity for the resource. @@ -981,8 +1252,17 @@ type MachineUpdateProperties struct { // NetworkInterface - Describes a network interface. type NetworkInterface struct { + // Represents the ID of the network interface. + ID *string + // The list of IP addresses in this interface. IPAddresses []*IPAddress + + // Represents MAC address of the network interface. + MacAddress *string + + // Represents the name of the network interface. + Name *string } // NetworkProfile - Describes the network information on this machine. @@ -1332,6 +1612,15 @@ type PrivateLinkServiceConnectionStateProperty struct { ActionsRequired *string } +// Processor - Describes the firmware of the machine +type Processor struct { + // READ-ONLY; The name of the processor. + Name *string + + // READ-ONLY; The total number of physical cores on the processor. + NumberOfCores *int32 +} + // ProductFeature - Product Feature type ProductFeature struct { // Product feature name. @@ -1413,6 +1702,30 @@ type ResourceAssociation struct { Name *string } +// RunCommandInputParameter - Describes the properties of a run command parameter. +type RunCommandInputParameter struct { + // REQUIRED; The run command parameter name. + Name *string + + // REQUIRED; The run command parameter value. + Value *string +} + +// RunCommandManagedIdentity - Contains clientId or objectId (use only one, not both) of a user-assigned managed identity +// that has access to storage blob used in Run Command. Use an empty RunCommandManagedIdentity object in case of +// system-assigned identity. Make sure the Azure storage blob exists in case of scriptUri, and managed identity has been given +// access to blob's container with 'Storage Blob Data Reader' role assignment +// with scriptUri blob and 'Storage Blob Data Contributor' for Append blobs(outputBlobUri, errorBlobUri). In case of user +// assigned identity, make sure you add it under VM's identity. For more info on +// managed identity and Run Command, refer https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged. +type RunCommandManagedIdentity struct { + // Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided. + ClientID *string + + // Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided. + ObjectID *string +} + // ServiceStatus - Describes the status and behavior of a service. type ServiceStatus struct { // The behavior of the service when the Arc-enabled machine starts up. @@ -1431,6 +1744,44 @@ type ServiceStatuses struct { GuestConfigurationService *ServiceStatus } +type Settings struct { + // Settings properties + Properties *SettingsProperties + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// SettingsGatewayProperties - Settings Gateway properties +type SettingsGatewayProperties struct { + // Associated Gateway Resource Id + GatewayResourceID *string +} + +// SettingsProperties - Settings properties +type SettingsProperties struct { + // Settings Gateway properties + GatewayProperties *SettingsGatewayProperties + + // READ-ONLY; Azure resource tenant Id + TenantID *string +} + +// StorageProfile - Describes the storage configuration of the machine +type StorageProfile struct { + // The disks on the machine. + Disks []*Disk +} + // Subnet - Describes the subnet. type Subnet struct { // Represents address prefix. diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/models_serde.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/models_serde.go index 13ba377f3181..1fc781f1e9da 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/models_serde.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/models_serde.go @@ -343,6 +343,57 @@ func (c *ConnectionDetail) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type Disk. +func (d Disk) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskType", d.DiskType) + populate(objectMap, "generatedId", d.GeneratedID) + populate(objectMap, "id", d.ID) + populate(objectMap, "maxSizeInBytes", d.MaxSizeInBytes) + populate(objectMap, "name", d.Name) + populate(objectMap, "path", d.Path) + populate(objectMap, "usedSpaceInBytes", d.UsedSpaceInBytes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Disk. +func (d *Disk) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "diskType": + err = unpopulate(val, "DiskType", &d.DiskType) + delete(rawMsg, key) + case "generatedId": + err = unpopulate(val, "GeneratedID", &d.GeneratedID) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "maxSizeInBytes": + err = unpopulate(val, "MaxSizeInBytes", &d.MaxSizeInBytes) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "path": + err = unpopulate(val, "Path", &d.Path) + delete(rawMsg, key) + case "usedSpaceInBytes": + err = unpopulate(val, "UsedSpaceInBytes", &d.UsedSpaceInBytes) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo. func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -607,6 +658,298 @@ func (e *ExtensionValueProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ExtensionsResourceStatus. +func (e ExtensionsResourceStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", e.Code) + populate(objectMap, "displayStatus", e.DisplayStatus) + populate(objectMap, "level", e.Level) + populate(objectMap, "message", e.Message) + populateDateTimeRFC3339(objectMap, "time", e.Time) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExtensionsResourceStatus. +func (e *ExtensionsResourceStatus) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "code": + err = unpopulate(val, "Code", &e.Code) + delete(rawMsg, key) + case "displayStatus": + err = unpopulate(val, "DisplayStatus", &e.DisplayStatus) + delete(rawMsg, key) + case "level": + err = unpopulate(val, "Level", &e.Level) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &e.Message) + delete(rawMsg, key) + case "time": + err = unpopulateDateTimeRFC3339(val, "Time", &e.Time) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type FirmwareProfile. +func (f FirmwareProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "serialNumber", f.SerialNumber) + populate(objectMap, "type", f.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FirmwareProfile. +func (f *FirmwareProfile) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "serialNumber": + err = unpopulate(val, "SerialNumber", &f.SerialNumber) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &f.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Gateway. +func (g Gateway) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "location", g.Location) + populate(objectMap, "name", g.Name) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "systemData", g.SystemData) + populate(objectMap, "tags", g.Tags) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Gateway. +func (g *Gateway) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &g.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &g.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &g.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &g.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &g.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &g.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &g.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GatewayProperties. +func (g GatewayProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowedFeatures", g.AllowedFeatures) + populate(objectMap, "gatewayEndpoint", g.GatewayEndpoint) + populate(objectMap, "gatewayId", g.GatewayID) + populate(objectMap, "gatewayType", g.GatewayType) + populate(objectMap, "provisioningState", g.ProvisioningState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GatewayProperties. +func (g *GatewayProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "allowedFeatures": + err = unpopulate(val, "AllowedFeatures", &g.AllowedFeatures) + delete(rawMsg, key) + case "gatewayEndpoint": + err = unpopulate(val, "GatewayEndpoint", &g.GatewayEndpoint) + delete(rawMsg, key) + case "gatewayId": + err = unpopulate(val, "GatewayID", &g.GatewayID) + delete(rawMsg, key) + case "gatewayType": + err = unpopulate(val, "GatewayType", &g.GatewayType) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &g.ProvisioningState) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GatewayUpdate. +func (g GatewayUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "tags", g.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GatewayUpdate. +func (g *GatewayUpdate) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "properties": + err = unpopulate(val, "Properties", &g.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &g.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GatewayUpdateProperties. +func (g GatewayUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowedFeatures", g.AllowedFeatures) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GatewayUpdateProperties. +func (g *GatewayUpdateProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "allowedFeatures": + err = unpopulate(val, "AllowedFeatures", &g.AllowedFeatures) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GatewaysListResult. +func (g GatewaysListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", g.NextLink) + populate(objectMap, "value", g.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GatewaysListResult. +func (g *GatewaysListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &g.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &g.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type HardwareProfile. +func (h HardwareProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "numberOfCpuSockets", h.NumberOfCPUSockets) + populate(objectMap, "processors", h.Processors) + populate(objectMap, "totalPhysicalMemoryInBytes", h.TotalPhysicalMemoryInBytes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type HardwareProfile. +func (h *HardwareProfile) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", h, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "numberOfCpuSockets": + err = unpopulate(val, "NumberOfCPUSockets", &h.NumberOfCPUSockets) + delete(rawMsg, key) + case "processors": + err = unpopulate(val, "Processors", &h.Processors) + delete(rawMsg, key) + case "totalPhysicalMemoryInBytes": + err = unpopulate(val, "TotalPhysicalMemoryInBytes", &h.TotalPhysicalMemoryInBytes) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", h, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type IPAddress. func (i IPAddress) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -2130,6 +2473,8 @@ func (m MachineProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "domainName", m.DomainName) populate(objectMap, "errorDetails", m.ErrorDetails) populate(objectMap, "extensions", m.Extensions) + populate(objectMap, "firmwareProfile", m.FirmwareProfile) + populate(objectMap, "hardwareProfile", m.HardwareProfile) populateDateTimeRFC3339(objectMap, "lastStatusChange", m.LastStatusChange) populate(objectMap, "licenseProfile", m.LicenseProfile) populate(objectMap, "locationData", m.LocationData) @@ -2147,6 +2492,7 @@ func (m MachineProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "provisioningState", m.ProvisioningState) populate(objectMap, "serviceStatuses", m.ServiceStatuses) populate(objectMap, "status", m.Status) + populate(objectMap, "storageProfile", m.StorageProfile) populate(objectMap, "vmId", m.VMID) populate(objectMap, "vmUuid", m.VMUUID) return json.Marshal(objectMap) @@ -2197,6 +2543,12 @@ func (m *MachineProperties) UnmarshalJSON(data []byte) error { case "extensions": err = unpopulate(val, "Extensions", &m.Extensions) delete(rawMsg, key) + case "firmwareProfile": + err = unpopulate(val, "FirmwareProfile", &m.FirmwareProfile) + delete(rawMsg, key) + case "hardwareProfile": + err = unpopulate(val, "HardwareProfile", &m.HardwareProfile) + delete(rawMsg, key) case "lastStatusChange": err = unpopulateDateTimeRFC3339(val, "LastStatusChange", &m.LastStatusChange) delete(rawMsg, key) @@ -2248,6 +2600,9 @@ func (m *MachineProperties) UnmarshalJSON(data []byte) error { case "status": err = unpopulate(val, "Status", &m.Status) delete(rawMsg, key) + case "storageProfile": + err = unpopulate(val, "StorageProfile", &m.StorageProfile) + delete(rawMsg, key) case "vmId": err = unpopulate(val, "VMID", &m.VMID) delete(rawMsg, key) @@ -2262,18 +2617,21 @@ func (m *MachineProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MachineUpdate. -func (m MachineUpdate) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type MachineRunCommand. +func (m MachineRunCommand) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "identity", m.Identity) - populate(objectMap, "kind", m.Kind) + populate(objectMap, "id", m.ID) + populate(objectMap, "location", m.Location) + populate(objectMap, "name", m.Name) populate(objectMap, "properties", m.Properties) + populate(objectMap, "systemData", m.SystemData) populate(objectMap, "tags", m.Tags) + populate(objectMap, "type", m.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MachineUpdate. -func (m *MachineUpdate) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MachineRunCommand. +func (m *MachineRunCommand) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", m, err) @@ -2281,18 +2639,27 @@ func (m *MachineUpdate) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "identity": - err = unpopulate(val, "Identity", &m.Identity) + case "id": + err = unpopulate(val, "ID", &m.ID) delete(rawMsg, key) - case "kind": - err = unpopulate(val, "Kind", &m.Kind) + case "location": + err = unpopulate(val, "Location", &m.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) delete(rawMsg, key) case "properties": err = unpopulate(val, "Properties", &m.Properties) delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &m.SystemData) + delete(rawMsg, key) case "tags": err = unpopulate(val, "Tags", &m.Tags) delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", m, err) @@ -2301,20 +2668,22 @@ func (m *MachineUpdate) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MachineUpdateProperties. -func (m MachineUpdateProperties) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type MachineRunCommandInstanceView. +func (m MachineRunCommandInstanceView) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "agentUpgrade", m.AgentUpgrade) - populate(objectMap, "cloudMetadata", m.CloudMetadata) - populate(objectMap, "locationData", m.LocationData) - populate(objectMap, "osProfile", m.OSProfile) - populate(objectMap, "parentClusterResourceId", m.ParentClusterResourceID) - populate(objectMap, "privateLinkScopeResourceId", m.PrivateLinkScopeResourceID) + populateDateTimeRFC3339(objectMap, "endTime", m.EndTime) + populate(objectMap, "error", m.Error) + populate(objectMap, "executionMessage", m.ExecutionMessage) + populate(objectMap, "executionState", m.ExecutionState) + populate(objectMap, "exitCode", m.ExitCode) + populate(objectMap, "output", m.Output) + populateDateTimeRFC3339(objectMap, "startTime", m.StartTime) + populate(objectMap, "statuses", m.Statuses) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MachineUpdateProperties. -func (m *MachineUpdateProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MachineRunCommandInstanceView. +func (m *MachineRunCommandInstanceView) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", m, err) @@ -2322,7 +2691,244 @@ func (m *MachineUpdateProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "agentUpgrade": + case "endTime": + err = unpopulateDateTimeRFC3339(val, "EndTime", &m.EndTime) + delete(rawMsg, key) + case "error": + err = unpopulate(val, "Error", &m.Error) + delete(rawMsg, key) + case "executionMessage": + err = unpopulate(val, "ExecutionMessage", &m.ExecutionMessage) + delete(rawMsg, key) + case "executionState": + err = unpopulate(val, "ExecutionState", &m.ExecutionState) + delete(rawMsg, key) + case "exitCode": + err = unpopulate(val, "ExitCode", &m.ExitCode) + delete(rawMsg, key) + case "output": + err = unpopulate(val, "Output", &m.Output) + delete(rawMsg, key) + case "startTime": + err = unpopulateDateTimeRFC3339(val, "StartTime", &m.StartTime) + delete(rawMsg, key) + case "statuses": + err = unpopulate(val, "Statuses", &m.Statuses) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type MachineRunCommandProperties. +func (m MachineRunCommandProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "asyncExecution", m.AsyncExecution) + populate(objectMap, "errorBlobManagedIdentity", m.ErrorBlobManagedIdentity) + populate(objectMap, "errorBlobUri", m.ErrorBlobURI) + populate(objectMap, "instanceView", m.InstanceView) + populate(objectMap, "outputBlobManagedIdentity", m.OutputBlobManagedIdentity) + populate(objectMap, "outputBlobUri", m.OutputBlobURI) + populate(objectMap, "parameters", m.Parameters) + populate(objectMap, "protectedParameters", m.ProtectedParameters) + populate(objectMap, "provisioningState", m.ProvisioningState) + populate(objectMap, "runAsPassword", m.RunAsPassword) + populate(objectMap, "runAsUser", m.RunAsUser) + populate(objectMap, "source", m.Source) + populate(objectMap, "timeoutInSeconds", m.TimeoutInSeconds) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MachineRunCommandProperties. +func (m *MachineRunCommandProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "asyncExecution": + err = unpopulate(val, "AsyncExecution", &m.AsyncExecution) + delete(rawMsg, key) + case "errorBlobManagedIdentity": + err = unpopulate(val, "ErrorBlobManagedIdentity", &m.ErrorBlobManagedIdentity) + delete(rawMsg, key) + case "errorBlobUri": + err = unpopulate(val, "ErrorBlobURI", &m.ErrorBlobURI) + delete(rawMsg, key) + case "instanceView": + err = unpopulate(val, "InstanceView", &m.InstanceView) + delete(rawMsg, key) + case "outputBlobManagedIdentity": + err = unpopulate(val, "OutputBlobManagedIdentity", &m.OutputBlobManagedIdentity) + delete(rawMsg, key) + case "outputBlobUri": + err = unpopulate(val, "OutputBlobURI", &m.OutputBlobURI) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &m.Parameters) + delete(rawMsg, key) + case "protectedParameters": + err = unpopulate(val, "ProtectedParameters", &m.ProtectedParameters) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &m.ProvisioningState) + delete(rawMsg, key) + case "runAsPassword": + err = unpopulate(val, "RunAsPassword", &m.RunAsPassword) + delete(rawMsg, key) + case "runAsUser": + err = unpopulate(val, "RunAsUser", &m.RunAsUser) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &m.Source) + delete(rawMsg, key) + case "timeoutInSeconds": + err = unpopulate(val, "TimeoutInSeconds", &m.TimeoutInSeconds) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type MachineRunCommandScriptSource. +func (m MachineRunCommandScriptSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "commandId", m.CommandID) + populate(objectMap, "script", m.Script) + populate(objectMap, "scriptUri", m.ScriptURI) + populate(objectMap, "scriptUriManagedIdentity", m.ScriptURIManagedIdentity) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MachineRunCommandScriptSource. +func (m *MachineRunCommandScriptSource) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "commandId": + err = unpopulate(val, "CommandID", &m.CommandID) + delete(rawMsg, key) + case "script": + err = unpopulate(val, "Script", &m.Script) + delete(rawMsg, key) + case "scriptUri": + err = unpopulate(val, "ScriptURI", &m.ScriptURI) + delete(rawMsg, key) + case "scriptUriManagedIdentity": + err = unpopulate(val, "ScriptURIManagedIdentity", &m.ScriptURIManagedIdentity) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type MachineRunCommandsListResult. +func (m MachineRunCommandsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", m.NextLink) + populate(objectMap, "value", m.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MachineRunCommandsListResult. +func (m *MachineRunCommandsListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &m.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &m.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type MachineUpdate. +func (m MachineUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", m.Identity) + populate(objectMap, "kind", m.Kind) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "tags", m.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MachineUpdate. +func (m *MachineUpdate) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "identity": + err = unpopulate(val, "Identity", &m.Identity) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &m.Kind) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &m.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type MachineUpdateProperties. +func (m MachineUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentUpgrade", m.AgentUpgrade) + populate(objectMap, "cloudMetadata", m.CloudMetadata) + populate(objectMap, "locationData", m.LocationData) + populate(objectMap, "osProfile", m.OSProfile) + populate(objectMap, "parentClusterResourceId", m.ParentClusterResourceID) + populate(objectMap, "privateLinkScopeResourceId", m.PrivateLinkScopeResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MachineUpdateProperties. +func (m *MachineUpdateProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "agentUpgrade": err = unpopulate(val, "AgentUpgrade", &m.AgentUpgrade) delete(rawMsg, key) case "cloudMetadata": @@ -2351,7 +2957,10 @@ func (m *MachineUpdateProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NetworkInterface. func (n NetworkInterface) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "id", n.ID) populate(objectMap, "ipAddresses", n.IPAddresses) + populate(objectMap, "macAddress", n.MacAddress) + populate(objectMap, "name", n.Name) return json.Marshal(objectMap) } @@ -2364,9 +2973,18 @@ func (n *NetworkInterface) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "id": + err = unpopulate(val, "ID", &n.ID) + delete(rawMsg, key) case "ipAddresses": err = unpopulate(val, "IPAddresses", &n.IPAddresses) delete(rawMsg, key) + case "macAddress": + err = unpopulate(val, "MacAddress", &n.MacAddress) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &n.Name) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", n, err) @@ -3363,6 +3981,37 @@ func (p *PrivateLinkServiceConnectionStateProperty) UnmarshalJSON(data []byte) e return nil } +// MarshalJSON implements the json.Marshaller interface for type Processor. +func (p Processor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", p.Name) + populate(objectMap, "numberOfCores", p.NumberOfCores) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Processor. +func (p *Processor) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "numberOfCores": + err = unpopulate(val, "NumberOfCores", &p.NumberOfCores) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ProductFeature. func (p ProductFeature) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -3585,6 +4234,68 @@ func (r *ResourceAssociation) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type RunCommandInputParameter. +func (r RunCommandInputParameter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", r.Name) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunCommandInputParameter. +func (r *RunCommandInputParameter) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type RunCommandManagedIdentity. +func (r RunCommandManagedIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientId", r.ClientID) + populate(objectMap, "objectId", r.ObjectID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunCommandManagedIdentity. +func (r *RunCommandManagedIdentity) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "clientId": + err = unpopulate(val, "ClientID", &r.ClientID) + delete(rawMsg, key) + case "objectId": + err = unpopulate(val, "ObjectID", &r.ObjectID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ServiceStatus. func (s ServiceStatus) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -3647,6 +4358,134 @@ func (s *ServiceStatuses) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type Settings. +func (s Settings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "systemData", s.SystemData) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Settings. +func (s *Settings) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &s.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SettingsGatewayProperties. +func (s SettingsGatewayProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "gatewayResourceId", s.GatewayResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SettingsGatewayProperties. +func (s *SettingsGatewayProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "gatewayResourceId": + err = unpopulate(val, "GatewayResourceID", &s.GatewayResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SettingsProperties. +func (s SettingsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "gatewayProperties", s.GatewayProperties) + populate(objectMap, "tenantId", s.TenantID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SettingsProperties. +func (s *SettingsProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "gatewayProperties": + err = unpopulate(val, "GatewayProperties", &s.GatewayProperties) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &s.TenantID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type StorageProfile. +func (s StorageProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "disks", s.Disks) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StorageProfile. +func (s *StorageProfile) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "disks": + err = unpopulate(val, "Disks", &s.Disks) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type Subnet. func (s Subnet) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/networkprofile_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/networkprofile_client.go index 7e85e1ad789b..1733e5ae369b 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/networkprofile_client.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/networkprofile_client.go @@ -46,7 +46,7 @@ func NewNetworkProfileClient(subscriptionID string, credential azcore.TokenCrede // Get - The operation to get network information of hybrid machine // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the hybrid machine. // - options - NetworkProfileClientGetOptions contains the optional parameters for the NetworkProfileClient.Get method. @@ -92,7 +92,7 @@ func (client *NetworkProfileClient) getCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/networkprofile_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/networkprofile_client_example_test.go index 6d6985f203ec..529d4b60fb87 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/networkprofile_client_example_test.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/networkprofile_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/NetworkProfile_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/NetworkProfile_Get.json func ExampleNetworkProfileClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -38,6 +38,8 @@ func ExampleNetworkProfileClient_Get() { // res.NetworkProfile = armhybridcompute.NetworkProfile{ // NetworkInterfaces: []*armhybridcompute.NetworkInterface{ // { + // Name: to.Ptr("Wi-Fi"), + // ID: to.Ptr("8"), // IPAddresses: []*armhybridcompute.IPAddress{ // { // Address: to.Ptr("192.168.12.345"), @@ -46,8 +48,11 @@ func ExampleNetworkProfileClient_Get() { // AddressPrefix: to.Ptr("192.168.12.0/24"), // }, // }}, + // MacAddress: to.Ptr("3c:49:6e:13:0e:73"), // }, // { + // Name: to.Ptr("Ethernet"), + // ID: to.Ptr("23"), // IPAddresses: []*armhybridcompute.IPAddress{ // { // Address: to.Ptr("1001:0:34aa:5000:1234:aaaa:bbbb:cccc"), @@ -56,6 +61,7 @@ func ExampleNetworkProfileClient_Get() { // AddressPrefix: to.Ptr("1001:0:34aa:5000::/64"), // }, // }}, + // MacAddress: to.Ptr("10:15:5c:52:f9:b8"), // }}, // } } diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/networksecurityperimeterconfigurations_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/networksecurityperimeterconfigurations_client.go index 3d9e4b8cfe88..c16585671784 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/networksecurityperimeterconfigurations_client.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/networksecurityperimeterconfigurations_client.go @@ -46,7 +46,7 @@ func NewNetworkSecurityPerimeterConfigurationsClient(subscriptionID string, cred // GetByPrivateLinkScope - Gets the network security perimeter configuration for a private link scope. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - scopeName - The name of the Azure Arc PrivateLinkScope resource. // - perimeterName - The name, in the format {perimeterGuid}.{associationName}, of the Network Security Perimeter resource. @@ -98,7 +98,7 @@ func (client *NetworkSecurityPerimeterConfigurationsClient) getByPrivateLinkScop return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -115,7 +115,7 @@ func (client *NetworkSecurityPerimeterConfigurationsClient) getByPrivateLinkScop // NewListByPrivateLinkScopePager - Lists the network security perimeter configurations for a private link scope. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - scopeName - The name of the Azure Arc PrivateLinkScope resource. // - options - NetworkSecurityPerimeterConfigurationsClientListByPrivateLinkScopeOptions contains the optional parameters for @@ -163,7 +163,7 @@ func (client *NetworkSecurityPerimeterConfigurationsClient) listByPrivateLinkSco return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -181,7 +181,7 @@ func (client *NetworkSecurityPerimeterConfigurationsClient) listByPrivateLinkSco // BeginReconcileForPrivateLinkScope - Forces the network security perimeter configuration to refresh for a private link scope. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - scopeName - The name of the Azure Arc PrivateLinkScope resource. // - perimeterName - The name, in the format {perimeterGuid}.{associationName}, of the Network Security Perimeter resource. @@ -207,7 +207,7 @@ func (client *NetworkSecurityPerimeterConfigurationsClient) BeginReconcileForPri // ReconcileForPrivateLinkScope - Forces the network security perimeter configuration to refresh for a private link scope. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *NetworkSecurityPerimeterConfigurationsClient) reconcileForPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string, perimeterName string, options *NetworkSecurityPerimeterConfigurationsClientBeginReconcileForPrivateLinkScopeOptions) (*http.Response, error) { var err error const operationName = "NetworkSecurityPerimeterConfigurationsClient.BeginReconcileForPrivateLinkScope" @@ -253,7 +253,7 @@ func (client *NetworkSecurityPerimeterConfigurationsClient) reconcileForPrivateL return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/networksecurityperimeterconfigurations_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/networksecurityperimeterconfigurations_client_example_test.go index ae791a558d0e..fdb787686bfb 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/networksecurityperimeterconfigurations_client_example_test.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/networksecurityperimeterconfigurations_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json func ExampleNetworkSecurityPerimeterConfigurationsClient_GetByPrivateLinkScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -74,7 +74,7 @@ func ExampleNetworkSecurityPerimeterConfigurationsClient_GetByPrivateLinkScope() // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json func ExampleNetworkSecurityPerimeterConfigurationsClient_NewListByPrivateLinkScopePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -176,7 +176,7 @@ func ExampleNetworkSecurityPerimeterConfigurationsClient_NewListByPrivateLinkSco } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json func ExampleNetworkSecurityPerimeterConfigurationsClient_BeginReconcileForPrivateLinkScope() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/operations_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/operations_client.go index 9aae792ff5dc..80e300eb23a3 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/operations_client.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/operations_client.go @@ -39,7 +39,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - Gets a list of hybrid compute operations. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ @@ -73,7 +73,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/operations_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/operations_client_example_test.go index 4502c7edf2c6..705b2d83bcd7 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/operations_client_example_test.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/operations_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/Operations_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/Operations_List.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/options.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/options.go index d881192fec8a..f64e118c228a 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/options.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/options.go @@ -18,6 +18,40 @@ type ExtensionMetadataClientListOptions struct { // placeholder for future optional parameters } +// GatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the GatewaysClient.BeginCreateOrUpdate method. +type GatewaysClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GatewaysClientBeginDeleteOptions contains the optional parameters for the GatewaysClient.BeginDelete method. +type GatewaysClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// GatewaysClientGetOptions contains the optional parameters for the GatewaysClient.Get method. +type GatewaysClientGetOptions struct { + // placeholder for future optional parameters +} + +// GatewaysClientListByResourceGroupOptions contains the optional parameters for the GatewaysClient.NewListByResourceGroupPager +// method. +type GatewaysClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// GatewaysClientListBySubscriptionOptions contains the optional parameters for the GatewaysClient.NewListBySubscriptionPager +// method. +type GatewaysClientListBySubscriptionOptions struct { + // placeholder for future optional parameters +} + +// GatewaysClientUpdateOptions contains the optional parameters for the GatewaysClient.Update method. +type GatewaysClientUpdateOptions struct { + // placeholder for future optional parameters +} + // LicenseProfilesClientBeginCreateOrUpdateOptions contains the optional parameters for the LicenseProfilesClient.BeginCreateOrUpdate // method. type LicenseProfilesClientBeginCreateOrUpdateOptions struct { @@ -121,6 +155,31 @@ type MachineExtensionsClientListOptions struct { Expand *string } +// MachineRunCommandsClientBeginCreateOrUpdateOptions contains the optional parameters for the MachineRunCommandsClient.BeginCreateOrUpdate +// method. +type MachineRunCommandsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// MachineRunCommandsClientBeginDeleteOptions contains the optional parameters for the MachineRunCommandsClient.BeginDelete +// method. +type MachineRunCommandsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// MachineRunCommandsClientGetOptions contains the optional parameters for the MachineRunCommandsClient.Get method. +type MachineRunCommandsClientGetOptions struct { + // placeholder for future optional parameters +} + +// MachineRunCommandsClientListOptions contains the optional parameters for the MachineRunCommandsClient.NewListPager method. +type MachineRunCommandsClientListOptions struct { + // The expand expression to apply on the operation. + Expand *string +} + // MachinesClientBeginAssessPatchesOptions contains the optional parameters for the MachinesClient.BeginAssessPatches method. type MachinesClientBeginAssessPatchesOptions struct { // Resumes the LRO from the provided token. @@ -286,3 +345,18 @@ type PrivateLinkScopesClientListOptions struct { type PrivateLinkScopesClientUpdateTagsOptions struct { // placeholder for future optional parameters } + +// SettingsClientGetOptions contains the optional parameters for the SettingsClient.Get method. +type SettingsClientGetOptions struct { + // placeholder for future optional parameters +} + +// SettingsClientPatchOptions contains the optional parameters for the SettingsClient.Patch method. +type SettingsClientPatchOptions struct { + // placeholder for future optional parameters +} + +// SettingsClientUpdateOptions contains the optional parameters for the SettingsClient.Update method. +type SettingsClientUpdateOptions struct { + // placeholder for future optional parameters +} diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/privateendpointconnections_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/privateendpointconnections_client.go index a5da9fe8eca5..72f354b04a29 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/privateendpointconnections_client.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/privateendpointconnections_client.go @@ -46,7 +46,7 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor // BeginCreateOrUpdate - Approve or reject a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - scopeName - The name of the Azure Arc PrivateLinkScope resource. // - privateEndpointConnectionName - The name of the private endpoint connection. @@ -72,7 +72,7 @@ func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context. // CreateOrUpdate - Approve or reject a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *PrivateEndpointConnectionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "PrivateEndpointConnectionsClient.BeginCreateOrUpdate" @@ -118,7 +118,7 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -130,7 +130,7 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx // BeginDelete - Deletes a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - scopeName - The name of the Azure Arc PrivateLinkScope resource. // - privateEndpointConnectionName - The name of the private endpoint connection. @@ -156,7 +156,7 @@ func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, // Delete - Deletes a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *PrivateEndpointConnectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "PrivateEndpointConnectionsClient.BeginDelete" @@ -202,7 +202,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -211,7 +211,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. // Get - Gets a private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - scopeName - The name of the Azure Arc PrivateLinkScope resource. // - privateEndpointConnectionName - The name of the private endpoint connection. @@ -263,7 +263,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -280,7 +280,7 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res // NewListByPrivateLinkScopePager - Gets all private endpoint connections on a private link scope. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - scopeName - The name of the Azure Arc PrivateLinkScope resource. // - options - PrivateEndpointConnectionsClientListByPrivateLinkScopeOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListByPrivateLinkScopePager @@ -328,7 +328,7 @@ func (client *PrivateEndpointConnectionsClient) listByPrivateLinkScopeCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/privateendpointconnections_client_example_test.go index c07ad94b5aab..a4726217eaa6 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/privateendpointconnections_client_example_test.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/privateendpointconnections_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Get.json func ExamplePrivateEndpointConnectionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,7 +56,7 @@ func ExamplePrivateEndpointConnectionsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Update.json func ExamplePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -105,7 +105,7 @@ func ExamplePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_Delete.json func ExamplePrivateEndpointConnectionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -126,7 +126,7 @@ func ExamplePrivateEndpointConnectionsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateEndpoint/PrivateEndpointConnection_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateEndpoint/PrivateEndpointConnection_List.json func ExamplePrivateEndpointConnectionsClient_NewListByPrivateLinkScopePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkresources_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkresources_client.go index b53e1986fd0b..7eed1b30f11d 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkresources_client.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkresources_client.go @@ -46,7 +46,7 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke // Get - Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - scopeName - The name of the Azure Arc PrivateLinkScope resource. // - groupName - The name of the private link resource. @@ -98,7 +98,7 @@ func (client *PrivateLinkResourcesClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -115,7 +115,7 @@ func (client *PrivateLinkResourcesClient) getHandleResponse(resp *http.Response) // NewListByPrivateLinkScopePager - Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - scopeName - The name of the Azure Arc PrivateLinkScope resource. // - options - PrivateLinkResourcesClientListByPrivateLinkScopeOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListByPrivateLinkScopePager @@ -163,7 +163,7 @@ func (client *PrivateLinkResourcesClient) listByPrivateLinkScopeCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkresources_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkresources_client_example_test.go index a06aea3bce6b..1bd390f7d636 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkresources_client_example_test.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkresources_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json func ExamplePrivateLinkResourcesClient_NewListByPrivateLinkScopePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -61,7 +61,7 @@ func ExamplePrivateLinkResourcesClient_NewListByPrivateLinkScopePager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json func ExamplePrivateLinkResourcesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkscopes_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkscopes_client.go index 1711b4b11026..07af4182f572 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkscopes_client.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkscopes_client.go @@ -47,7 +47,7 @@ func NewPrivateLinkScopesClient(subscriptionID string, credential azcore.TokenCr // nor AppId in the Put operation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - scopeName - The name of the Azure Arc PrivateLinkScope resource. // - parameters - Properties that need to be specified to create or update a Azure Arc for Servers and Clusters PrivateLinkScope. @@ -95,7 +95,7 @@ func (client *PrivateLinkScopesClient) createOrUpdateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, parameters); err != nil { @@ -116,7 +116,7 @@ func (client *PrivateLinkScopesClient) createOrUpdateHandleResponse(resp *http.R // BeginDelete - Deletes a Azure Arc PrivateLinkScope. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - scopeName - The name of the Azure Arc PrivateLinkScope resource. // - options - PrivateLinkScopesClientBeginDeleteOptions contains the optional parameters for the PrivateLinkScopesClient.BeginDelete @@ -141,7 +141,7 @@ func (client *PrivateLinkScopesClient) BeginDelete(ctx context.Context, resource // Delete - Deletes a Azure Arc PrivateLinkScope. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview func (client *PrivateLinkScopesClient) deleteOperation(ctx context.Context, resourceGroupName string, scopeName string, options *PrivateLinkScopesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "PrivateLinkScopesClient.BeginDelete" @@ -183,7 +183,7 @@ func (client *PrivateLinkScopesClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -192,7 +192,7 @@ func (client *PrivateLinkScopesClient) deleteCreateRequest(ctx context.Context, // Get - Returns a Azure Arc PrivateLinkScope. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - scopeName - The name of the Azure Arc PrivateLinkScope resource. // - options - PrivateLinkScopesClientGetOptions contains the optional parameters for the PrivateLinkScopesClient.Get method. @@ -238,7 +238,7 @@ func (client *PrivateLinkScopesClient) getCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -256,7 +256,7 @@ func (client *PrivateLinkScopesClient) getHandleResponse(resp *http.Response) (P // GetValidationDetails - Returns a Azure Arc PrivateLinkScope's validation details. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - location - The location of the target resource. // - privateLinkScopeID - The id (Guid) of the Azure Arc PrivateLinkScope resource. // - options - PrivateLinkScopesClientGetValidationDetailsOptions contains the optional parameters for the PrivateLinkScopesClient.GetValidationDetails @@ -303,7 +303,7 @@ func (client *PrivateLinkScopesClient) getValidationDetailsCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -321,7 +321,7 @@ func (client *PrivateLinkScopesClient) getValidationDetailsHandleResponse(resp * // GetValidationDetailsForMachine - Returns a Azure Arc PrivateLinkScope's validation details for a given machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - machineName - The name of the target machine to get the private link scope validation details for. // - options - PrivateLinkScopesClientGetValidationDetailsForMachineOptions contains the optional parameters for the PrivateLinkScopesClient.GetValidationDetailsForMachine @@ -368,7 +368,7 @@ func (client *PrivateLinkScopesClient) getValidationDetailsForMachineCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -385,7 +385,7 @@ func (client *PrivateLinkScopesClient) getValidationDetailsForMachineHandleRespo // NewListPager - Gets a list of all Azure Arc PrivateLinkScopes within a subscription. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - options - PrivateLinkScopesClientListOptions contains the optional parameters for the PrivateLinkScopesClient.NewListPager // method. func (client *PrivateLinkScopesClient) NewListPager(options *PrivateLinkScopesClientListOptions) *runtime.Pager[PrivateLinkScopesClientListResponse] { @@ -423,7 +423,7 @@ func (client *PrivateLinkScopesClient) listCreateRequest(ctx context.Context, op return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -440,7 +440,7 @@ func (client *PrivateLinkScopesClient) listHandleResponse(resp *http.Response) ( // NewListByResourceGroupPager - Gets a list of Azure Arc PrivateLinkScopes within a resource group. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - PrivateLinkScopesClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkScopesClient.NewListByResourceGroupPager // method. @@ -483,7 +483,7 @@ func (client *PrivateLinkScopesClient) listByResourceGroupCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -501,7 +501,7 @@ func (client *PrivateLinkScopesClient) listByResourceGroupHandleResponse(resp *h // UpdateTags - Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2024-07-10 +// Generated from API version 2024-07-31-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - scopeName - The name of the Azure Arc PrivateLinkScope resource. // - privateLinkScopeTags - Updated tag information to set into the PrivateLinkScope instance. @@ -549,7 +549,7 @@ func (client *PrivateLinkScopesClient) updateTagsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2024-07-10") + reqQP.Set("api-version", "2024-07-31-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, privateLinkScopeTags); err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkscopes_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkscopes_client_example_test.go index f531e2b16743..26c5a4e1dab8 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkscopes_client_example_test.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/privatelinkscopes_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_List.json func ExamplePrivateLinkScopesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -89,7 +89,7 @@ func ExamplePrivateLinkScopesClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json func ExamplePrivateLinkScopesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -177,7 +177,7 @@ func ExamplePrivateLinkScopesClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Delete.json func ExamplePrivateLinkScopesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -198,7 +198,7 @@ func ExamplePrivateLinkScopesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Get.json func ExamplePrivateLinkScopesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -248,7 +248,7 @@ func ExamplePrivateLinkScopesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Create.json func ExamplePrivateLinkScopesClient_CreateOrUpdate_privateLinkScopeCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -300,7 +300,7 @@ func ExamplePrivateLinkScopesClient_CreateOrUpdate_privateLinkScopeCreate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_Update.json func ExamplePrivateLinkScopesClient_CreateOrUpdate_privateLinkScopeUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -356,7 +356,7 @@ func ExamplePrivateLinkScopesClient_CreateOrUpdate_privateLinkScopeUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json func ExamplePrivateLinkScopesClient_UpdateTags() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -413,7 +413,7 @@ func ExamplePrivateLinkScopesClient_UpdateTags() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidation.json func ExamplePrivateLinkScopesClient_GetValidationDetails() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -445,7 +445,7 @@ func ExamplePrivateLinkScopesClient_GetValidationDetails() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/f41d0c9332078cb2ef07b749081d94915255ada5/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/stable/2024-07-10/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json func ExamplePrivateLinkScopesClient_GetValidationDetailsForMachine() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/responses.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/responses.go index 358d36cc943d..79d1fc0b39e7 100644 --- a/sdk/resourcemanager/hybridcompute/armhybridcompute/responses.go +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/responses.go @@ -20,6 +20,41 @@ type ExtensionMetadataClientListResponse struct { ExtensionValueListResult } +// GatewaysClientCreateOrUpdateResponse contains the response from method GatewaysClient.BeginCreateOrUpdate. +type GatewaysClientCreateOrUpdateResponse struct { + // Describes an Arc Gateway. + Gateway +} + +// GatewaysClientDeleteResponse contains the response from method GatewaysClient.BeginDelete. +type GatewaysClientDeleteResponse struct { + // placeholder for future response values +} + +// GatewaysClientGetResponse contains the response from method GatewaysClient.Get. +type GatewaysClientGetResponse struct { + // Describes an Arc Gateway. + Gateway +} + +// GatewaysClientListByResourceGroupResponse contains the response from method GatewaysClient.NewListByResourceGroupPager. +type GatewaysClientListByResourceGroupResponse struct { + // The List license operation response. + GatewaysListResult +} + +// GatewaysClientListBySubscriptionResponse contains the response from method GatewaysClient.NewListBySubscriptionPager. +type GatewaysClientListBySubscriptionResponse struct { + // The List license operation response. + GatewaysListResult +} + +// GatewaysClientUpdateResponse contains the response from method GatewaysClient.Update. +type GatewaysClientUpdateResponse struct { + // Describes an Arc Gateway. + Gateway +} + // LicenseProfilesClientCreateOrUpdateResponse contains the response from method LicenseProfilesClient.BeginCreateOrUpdate. type LicenseProfilesClientCreateOrUpdateResponse struct { // Describes a license profile in a hybrid machine. @@ -119,6 +154,29 @@ type MachineExtensionsClientUpdateResponse struct { MachineExtension } +// MachineRunCommandsClientCreateOrUpdateResponse contains the response from method MachineRunCommandsClient.BeginCreateOrUpdate. +type MachineRunCommandsClientCreateOrUpdateResponse struct { + // Describes a Run Command + MachineRunCommand +} + +// MachineRunCommandsClientDeleteResponse contains the response from method MachineRunCommandsClient.BeginDelete. +type MachineRunCommandsClientDeleteResponse struct { + // placeholder for future response values +} + +// MachineRunCommandsClientGetResponse contains the response from method MachineRunCommandsClient.Get. +type MachineRunCommandsClientGetResponse struct { + // Describes a Run Command + MachineRunCommand +} + +// MachineRunCommandsClientListResponse contains the response from method MachineRunCommandsClient.NewListPager. +type MachineRunCommandsClientListResponse struct { + // Describes the Run Commands List Result. + MachineRunCommandsListResult +} + // MachinesClientAssessPatchesResponse contains the response from method MachinesClient.BeginAssessPatches. type MachinesClientAssessPatchesResponse struct { // Describes the properties of an AssessPatches result. @@ -280,3 +338,18 @@ type PrivateLinkScopesClientUpdateTagsResponse struct { // An Azure Arc PrivateLinkScope definition. PrivateLinkScope } + +// SettingsClientGetResponse contains the response from method SettingsClient.Get. +type SettingsClientGetResponse struct { + Settings +} + +// SettingsClientPatchResponse contains the response from method SettingsClient.Patch. +type SettingsClientPatchResponse struct { + Settings +} + +// SettingsClientUpdateResponse contains the response from method SettingsClient.Update. +type SettingsClientUpdateResponse struct { + Settings +} diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/settings_client.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/settings_client.go new file mode 100644 index 000000000000..b066be695579 --- /dev/null +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/settings_client.go @@ -0,0 +1,289 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armhybridcompute + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// SettingsClient contains the methods for the Settings group. +// Don't use this type directly, use NewSettingsClient() instead. +type SettingsClient struct { + internal *arm.Client + subscriptionID string +} + +// NewSettingsClient creates a new instance of SettingsClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewSettingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SettingsClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &SettingsClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// Get - Returns the base Settings for the target resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-31-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - baseProvider - The name of the base Resource Provider. +// - baseResourceType - The name of the base Resource Type. +// - baseResourceName - The name of the base resource. +// - settingsResourceName - The name of the settings resource. +// - options - SettingsClientGetOptions contains the optional parameters for the SettingsClient.Get method. +func (client *SettingsClient) Get(ctx context.Context, resourceGroupName string, baseProvider string, baseResourceType string, baseResourceName string, settingsResourceName string, options *SettingsClientGetOptions) (SettingsClientGetResponse, error) { + var err error + const operationName = "SettingsClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, baseProvider, baseResourceType, baseResourceName, settingsResourceName, options) + if err != nil { + return SettingsClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return SettingsClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return SettingsClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *SettingsClient) getCreateRequest(ctx context.Context, resourceGroupName string, baseProvider string, baseResourceType string, baseResourceName string, settingsResourceName string, options *SettingsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{baseProvider}/{baseResourceType}/{baseResourceName}/providers/Microsoft.HybridCompute/settings/{settingsResourceName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if baseProvider == "" { + return nil, errors.New("parameter baseProvider cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{baseProvider}", url.PathEscape(baseProvider)) + if baseResourceType == "" { + return nil, errors.New("parameter baseResourceType cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{baseResourceType}", url.PathEscape(baseResourceType)) + if baseResourceName == "" { + return nil, errors.New("parameter baseResourceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{baseResourceName}", url.PathEscape(baseResourceName)) + if settingsResourceName == "" { + return nil, errors.New("parameter settingsResourceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{settingsResourceName}", url.PathEscape(settingsResourceName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-07-31-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *SettingsClient) getHandleResponse(resp *http.Response) (SettingsClientGetResponse, error) { + result := SettingsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Settings); err != nil { + return SettingsClientGetResponse{}, err + } + return result, nil +} + +// Patch - Update the base Settings of the target resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-31-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - baseProvider - The name of the base Resource Provider. +// - baseResourceType - The name of the base Resource Type. +// - baseResourceName - The name of the base resource. +// - settingsResourceName - The name of the settings resource. +// - parameters - Settings details +// - options - SettingsClientPatchOptions contains the optional parameters for the SettingsClient.Patch method. +func (client *SettingsClient) Patch(ctx context.Context, resourceGroupName string, baseProvider string, baseResourceType string, baseResourceName string, settingsResourceName string, parameters Settings, options *SettingsClientPatchOptions) (SettingsClientPatchResponse, error) { + var err error + const operationName = "SettingsClient.Patch" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.patchCreateRequest(ctx, resourceGroupName, baseProvider, baseResourceType, baseResourceName, settingsResourceName, parameters, options) + if err != nil { + return SettingsClientPatchResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return SettingsClientPatchResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return SettingsClientPatchResponse{}, err + } + resp, err := client.patchHandleResponse(httpResp) + return resp, err +} + +// patchCreateRequest creates the Patch request. +func (client *SettingsClient) patchCreateRequest(ctx context.Context, resourceGroupName string, baseProvider string, baseResourceType string, baseResourceName string, settingsResourceName string, parameters Settings, options *SettingsClientPatchOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{baseProvider}/{baseResourceType}/{baseResourceName}/providers/Microsoft.HybridCompute/settings/{settingsResourceName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if baseProvider == "" { + return nil, errors.New("parameter baseProvider cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{baseProvider}", url.PathEscape(baseProvider)) + if baseResourceType == "" { + return nil, errors.New("parameter baseResourceType cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{baseResourceType}", url.PathEscape(baseResourceType)) + if baseResourceName == "" { + return nil, errors.New("parameter baseResourceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{baseResourceName}", url.PathEscape(baseResourceName)) + if settingsResourceName == "" { + return nil, errors.New("parameter settingsResourceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{settingsResourceName}", url.PathEscape(settingsResourceName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-07-31-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil +} + +// patchHandleResponse handles the Patch response. +func (client *SettingsClient) patchHandleResponse(resp *http.Response) (SettingsClientPatchResponse, error) { + result := SettingsClientPatchResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Settings); err != nil { + return SettingsClientPatchResponse{}, err + } + return result, nil +} + +// Update - Updates the base Settings of the target resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-07-31-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - baseProvider - The name of the base Resource Provider. +// - baseResourceType - The name of the base Resource Type. +// - baseResourceName - The name of the base resource. +// - settingsResourceName - The name of the settings resource. +// - parameters - Settings details +// - options - SettingsClientUpdateOptions contains the optional parameters for the SettingsClient.Update method. +func (client *SettingsClient) Update(ctx context.Context, resourceGroupName string, baseProvider string, baseResourceType string, baseResourceName string, settingsResourceName string, parameters Settings, options *SettingsClientUpdateOptions) (SettingsClientUpdateResponse, error) { + var err error + const operationName = "SettingsClient.Update" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, baseProvider, baseResourceType, baseResourceName, settingsResourceName, parameters, options) + if err != nil { + return SettingsClientUpdateResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return SettingsClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return SettingsClientUpdateResponse{}, err + } + resp, err := client.updateHandleResponse(httpResp) + return resp, err +} + +// updateCreateRequest creates the Update request. +func (client *SettingsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, baseProvider string, baseResourceType string, baseResourceName string, settingsResourceName string, parameters Settings, options *SettingsClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{baseProvider}/{baseResourceType}/{baseResourceName}/providers/Microsoft.HybridCompute/settings/{settingsResourceName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if baseProvider == "" { + return nil, errors.New("parameter baseProvider cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{baseProvider}", url.PathEscape(baseProvider)) + if baseResourceType == "" { + return nil, errors.New("parameter baseResourceType cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{baseResourceType}", url.PathEscape(baseResourceType)) + if baseResourceName == "" { + return nil, errors.New("parameter baseResourceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{baseResourceName}", url.PathEscape(baseResourceName)) + if settingsResourceName == "" { + return nil, errors.New("parameter settingsResourceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{settingsResourceName}", url.PathEscape(settingsResourceName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-07-31-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, parameters); err != nil { + return nil, err + } + return req, nil +} + +// updateHandleResponse handles the Update response. +func (client *SettingsClient) updateHandleResponse(resp *http.Response) (SettingsClientUpdateResponse, error) { + result := SettingsClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Settings); err != nil { + return SettingsClientUpdateResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/hybridcompute/armhybridcompute/settings_client_example_test.go b/sdk/resourcemanager/hybridcompute/armhybridcompute/settings_client_example_test.go new file mode 100644 index 000000000000..fd115dfcfff6 --- /dev/null +++ b/sdk/resourcemanager/hybridcompute/armhybridcompute/settings_client_example_test.go @@ -0,0 +1,124 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armhybridcompute_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybridcompute/armhybridcompute/v2" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsGet.json +func ExampleSettingsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhybridcompute.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewSettingsClient().Get(ctx, "hybridRG", "Microsoft.HybridCompute", "machines", "testMachine", "default", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Settings = armhybridcompute.Settings{ + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.HybridCompute/settings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridCompute/settings/default"), + // Properties: &armhybridcompute.SettingsProperties{ + // GatewayProperties: &armhybridcompute.SettingsGatewayProperties{ + // GatewayResourceID: to.Ptr("/subscriptions/{subscriptionId}/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway"), + // }, + // TenantID: to.Ptr("00000000-1111-2222-5555-444444444444"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsUpdate.json +func ExampleSettingsClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhybridcompute.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewSettingsClient().Update(ctx, "hybridRG", "Microsoft.HybridCompute", "machines", "testMachine", "default", armhybridcompute.Settings{ + Properties: &armhybridcompute.SettingsProperties{ + GatewayProperties: &armhybridcompute.SettingsGatewayProperties{ + GatewayResourceID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway"), + }, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Settings = armhybridcompute.Settings{ + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.HybridCompute/settings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridCompute/settings/default"), + // Properties: &armhybridcompute.SettingsProperties{ + // GatewayProperties: &armhybridcompute.SettingsGatewayProperties{ + // GatewayResourceID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway"), + // }, + // TenantID: to.Ptr("00000000-1111-2222-5555-444444444444"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/63d530d0def1c624f5d42d39170ff4ac196522e2/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/examples/settings/SettingsPatch.json +func ExampleSettingsClient_Patch() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armhybridcompute.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewSettingsClient().Patch(ctx, "hybridRG", "Microsoft.HybridCompute", "machines", "testMachine", "default", armhybridcompute.Settings{ + Properties: &armhybridcompute.SettingsProperties{ + GatewayProperties: &armhybridcompute.SettingsGatewayProperties{ + GatewayResourceID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway"), + }, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Settings = armhybridcompute.Settings{ + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.HybridCompute/settings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridCompute/settings/default"), + // Properties: &armhybridcompute.SettingsProperties{ + // GatewayProperties: &armhybridcompute.SettingsGatewayProperties{ + // GatewayResourceID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway"), + // }, + // TenantID: to.Ptr("00000000-1111-2222-5555-444444444444"), + // }, + // } +} From 2e217136030547433e8b2d96c8a43471157107c3 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 14 Nov 2024 08:27:46 -0800 Subject: [PATCH 22/33] Increment package version after release of security/keyvault/azadmin (#23749) --- sdk/security/keyvault/azadmin/CHANGELOG.md | 10 ++++++++++ sdk/security/keyvault/azadmin/internal/version.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/security/keyvault/azadmin/CHANGELOG.md b/sdk/security/keyvault/azadmin/CHANGELOG.md index d519cf4a3600..7e4811ec4b69 100644 --- a/sdk/security/keyvault/azadmin/CHANGELOG.md +++ b/sdk/security/keyvault/azadmin/CHANGELOG.md @@ -1,5 +1,15 @@ ## Release History +### 1.3.1 (Unreleased) + +#### Features Added + +#### Breaking Changes + +#### Bugs Fixed + +#### Other Changes + ### 1.3.0 (2024-11-13) #### Features Added diff --git a/sdk/security/keyvault/azadmin/internal/version.go b/sdk/security/keyvault/azadmin/internal/version.go index fa3f5da5522b..48b65e2411cf 100644 --- a/sdk/security/keyvault/azadmin/internal/version.go +++ b/sdk/security/keyvault/azadmin/internal/version.go @@ -8,5 +8,5 @@ package internal const ( ModuleName = "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azadmin" - Version = "v1.3.0" + Version = "v1.3.1" ) From 12cfdefa99bcf99697525432c003ca1b2b763277 Mon Sep 17 00:00:00 2001 From: Ben Broderick Phillips Date: Thu, 14 Nov 2024 13:52:02 -0500 Subject: [PATCH 23/33] Update azopenai* to use hardcoded variable group config (#23748) * Update azopenai* to use hardcoded variable group config * Remove bicep template for ai services --- sdk/ai/azopenai/ci.yml | 52 ++++++++++++------- sdk/ai/azopenai/test-resources.bicep | 13 ----- sdk/ai/azopenaiassistants/ci.yml | 52 ++++++++++++------- .../azopenaiassistants/test-resources.bicep | 13 ----- sdk/ai/azopenaiextensions/ci.yml | 24 ++++++--- .../azopenaiextensions/test-resources.bicep | 13 ----- 6 files changed, 82 insertions(+), 85 deletions(-) delete mode 100644 sdk/ai/azopenai/test-resources.bicep delete mode 100644 sdk/ai/azopenaiassistants/test-resources.bicep delete mode 100644 sdk/ai/azopenaiextensions/test-resources.bicep diff --git a/sdk/ai/azopenai/ci.yml b/sdk/ai/azopenai/ci.yml index 2724b10fcc21..f880aebfb60b 100644 --- a/sdk/ai/azopenai/ci.yml +++ b/sdk/ai/azopenai/ci.yml @@ -23,23 +23,35 @@ pr: - sdk/ai/azopenai extends: - template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml - parameters: - # We need to allow for longer retry times with tests that run against the public endpoint - # which throttles under load. Note, I left a little wiggle room since the TimeoutInMinutes - # controls the overall pipeline and TestRunTime configures the individual `go test -timeout` parameter. - TimeoutInMinutes: 35 - TestRunTime: 30m - ServiceDirectory: "ai/azopenai" - RunLiveTests: true - UsePipelineProxy: false - CloudConfig: - Public: - SubscriptionConfigurations: - - $(sub-config-openai-test-resources) # TestSecrets-openai - EnvVars: - AZURE_TEST_RUN_LIVE: "true" # use when utilizing the New-TestResources Script - AZURE_CLIENT_ID: $(AZOPENAI_CLIENT_ID) - AZURE_CLIENT_SECRET: $(AZOPENAI_CLIENT_SECRET) - AZURE_TENANT_ID: $(AZOPENAI_TENANT_ID) - AZURE_SUBSCRIPTION_ID: $(AZOPENAI_SUBSCRIPTION_ID) + template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml + parameters: + # We need to allow for longer retry times with tests that run against the public endpoint + # which throttles under load. Note, I left a little wiggle room since the TimeoutInMinutes + # controls the overall pipeline and TestRunTime configures the individual `go test -timeout` parameter. + TimeoutInMinutes: 35 + TestRunTime: 30m + ServiceDirectory: "ai/azopenai" + RunLiveTests: true + UsePipelineProxy: false + CloudConfig: + Public: + ServiceConnection: azure-sdk-tests-openai + EnvVars: + AZURE_TEST_RUN_LIVE: "true" # use when utilizing the New-TestResources Script + AOAI_ASSISTANTS_ENDPOINT: $(GO-AOAI-ASSISTANTS-ENDPOINT) + AOAI_ASSISTANTS_KEY: $(GO-AOAI-ASSISTANTS-KEY) + AOAI_ENDPOINT_SWECENTRAL: $(GO-AOAI-ENDPOINT-SWECENTRAL) + AOAI_ENDPOINT_SWECENTRAL_API_KEY: $(GO-AOAI-ENDPOINT-SWECENTRAL-API-KEY) + AOAI_ENDPOINT_USEAST: $(GO-AOAI-ENDPOINT-USEAST) + AOAI_ENDPOINT_USEAST_API_KEY: $(GO-AOAI-ENDPOINT-USEAST-API-KEY) + AOAI_ENDPOINT_USEAST2: $(GO-AOAI-ENDPOINT-USEAST2) + AOAI_ENDPOINT_USEAST2_API_KEY: $(GO-AOAI-ENDPOINT-USEAST2-API-KEY) + AOAI_ENDPOINT_USNORTHCENTRAL: $(GO-AOAI-ENDPOINT-USNORTHCENTRAL) + AOAI_ENDPOINT_USNORTHCENTRAL_API_KEY: $(GO-AOAI-ENDPOINT-USNORTHCENTRAL-API-KEY) + COGNITIVE_SEARCH_API_ENDPOINT: $(GO-COGNITIVE-SEARCH-API-ENDPOINT) + COGNITIVE_SEARCH_API_INDEX: $(GO-COGNITIVE-SEARCH-API-INDEX) + COGNITIVE_SEARCH_API_KEY: $(GO-COGNITIVE-SEARCH-API-KEY) + legacy: $(GO-legacy) + OPENAI_API_KEY: $(GO-OPENAI-API-KEY) + OPENAI_ENDPOINT: $(GO-OPENAI-ENDPOINT) + USE_TOKEN_CREDS: $(GO-USE-TOKEN-CREDS) diff --git a/sdk/ai/azopenai/test-resources.bicep b/sdk/ai/azopenai/test-resources.bicep deleted file mode 100644 index c632c194b326..000000000000 --- a/sdk/ai/azopenai/test-resources.bicep +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// This is a placeholder file to trigger environment variable setting via New-TestResources.ps1 - -@description('The base resource name.') -param baseName string = resourceGroup().name - -@description('Which Azure Region to deploy the resource to. Defaults to the resource group location.') -param location string = resourceGroup().location - -@description('The principal to assign the role to. This is application object id.') -param testApplicationOid string diff --git a/sdk/ai/azopenaiassistants/ci.yml b/sdk/ai/azopenaiassistants/ci.yml index b21cd1314384..0f2f46799ca6 100644 --- a/sdk/ai/azopenaiassistants/ci.yml +++ b/sdk/ai/azopenaiassistants/ci.yml @@ -23,23 +23,35 @@ pr: - sdk/ai/azopenaiassistants extends: - template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml - parameters: - # We need to allow for longer retry times with tests that run against the public endpoint - # which throttles under load. Note, I left a little wiggle room since the TimeoutInMinutes - # controls the overall pipeline and TestRunTime configures the individual `go test -timeout` parameter. - TimeoutInMinutes: 35 - TestRunTime: 30m - ServiceDirectory: "ai/azopenaiassistants" - RunLiveTests: true - UsePipelineProxy: false - CloudConfig: - Public: - SubscriptionConfigurations: - - $(sub-config-openai-test-resources) # TestSecrets-openai - EnvVars: - AZURE_TEST_RUN_LIVE: "true" # use when utilizing the New-TestResources Script - AZURE_CLIENT_ID: $(AZOPENAIASSISTANTS_CLIENT_ID) - AZURE_CLIENT_SECRET: $(AZOPENAIASSISTANTS_CLIENT_SECRET) - AZURE_TENANT_ID: $(AZOPENAIASSISTANTS_TENANT_ID) - AZURE_SUBSCRIPTION_ID: $(AZOPENAIASSISTANTS_SUBSCRIPTION_ID) + template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml + parameters: + # We need to allow for longer retry times with tests that run against the public endpoint + # which throttles under load. Note, I left a little wiggle room since the TimeoutInMinutes + # controls the overall pipeline and TestRunTime configures the individual `go test -timeout` parameter. + TimeoutInMinutes: 35 + TestRunTime: 30m + ServiceDirectory: "ai/azopenaiassistants" + RunLiveTests: true + UsePipelineProxy: false + CloudConfig: + Public: + ServiceConnection: azure-sdk-tests-openai + EnvVars: + AZURE_TEST_RUN_LIVE: "true" # use when utilizing the New-TestResources Script + AOAI_ASSISTANTS_ENDPOINT: $(GO-AOAI-ASSISTANTS-ENDPOINT) + AOAI_ASSISTANTS_KEY: $(GO-AOAI-ASSISTANTS-KEY) + AOAI_ENDPOINT_SWECENTRAL: $(GO-AOAI-ENDPOINT-SWECENTRAL) + AOAI_ENDPOINT_SWECENTRAL_API_KEY: $(GO-AOAI-ENDPOINT-SWECENTRAL-API-KEY) + AOAI_ENDPOINT_USEAST: $(GO-AOAI-ENDPOINT-USEAST) + AOAI_ENDPOINT_USEAST_API_KEY: $(GO-AOAI-ENDPOINT-USEAST-API-KEY) + AOAI_ENDPOINT_USEAST2: $(GO-AOAI-ENDPOINT-USEAST2) + AOAI_ENDPOINT_USEAST2_API_KEY: $(GO-AOAI-ENDPOINT-USEAST2-API-KEY) + AOAI_ENDPOINT_USNORTHCENTRAL: $(GO-AOAI-ENDPOINT-USNORTHCENTRAL) + AOAI_ENDPOINT_USNORTHCENTRAL_API_KEY: $(GO-AOAI-ENDPOINT-USNORTHCENTRAL-API-KEY) + COGNITIVE_SEARCH_API_ENDPOINT: $(GO-COGNITIVE-SEARCH-API-ENDPOINT) + COGNITIVE_SEARCH_API_INDEX: $(GO-COGNITIVE-SEARCH-API-INDEX) + COGNITIVE_SEARCH_API_KEY: $(GO-COGNITIVE-SEARCH-API-KEY) + legacy: $(GO-legacy) + OPENAI_API_KEY: $(GO-OPENAI-API-KEY) + OPENAI_ENDPOINT: $(GO-OPENAI-ENDPOINT) + USE_TOKEN_CREDS: $(GO-USE-TOKEN-CREDS) diff --git a/sdk/ai/azopenaiassistants/test-resources.bicep b/sdk/ai/azopenaiassistants/test-resources.bicep deleted file mode 100644 index c632c194b326..000000000000 --- a/sdk/ai/azopenaiassistants/test-resources.bicep +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// This is a placeholder file to trigger environment variable setting via New-TestResources.ps1 - -@description('The base resource name.') -param baseName string = resourceGroup().name - -@description('Which Azure Region to deploy the resource to. Defaults to the resource group location.') -param location string = resourceGroup().location - -@description('The principal to assign the role to. This is application object id.') -param testApplicationOid string diff --git a/sdk/ai/azopenaiextensions/ci.yml b/sdk/ai/azopenaiextensions/ci.yml index 7fcd48c87f80..0b656e5d85cf 100644 --- a/sdk/ai/azopenaiextensions/ci.yml +++ b/sdk/ai/azopenaiextensions/ci.yml @@ -36,11 +36,23 @@ extends: ExcludeGoNMinus2: true CloudConfig: Public: - SubscriptionConfigurations: - - $(sub-config-openai-test-resources) # TestSecrets-openai + ServiceConnection: azure-sdk-tests-openai EnvVars: AZURE_TEST_RUN_LIVE: "true" # use when utilizing the New-TestResources Script - AZURE_CLIENT_ID: $(AZOPENAIEXTENSIONS_CLIENT_ID) - AZURE_CLIENT_SECRET: $(AZOPENAIEXTENSIONS_CLIENT_SECRET) - AZURE_TENANT_ID: $(AZOPENAIEXTENSIONS_TENANT_ID) - AZURE_SUBSCRIPTION_ID: $(AZOPENAIEXTENSIONS_SUBSCRIPTION_ID) + AOAI_ASSISTANTS_ENDPOINT: $(GO-AOAI-ASSISTANTS-ENDPOINT) + AOAI_ASSISTANTS_KEY: $(GO-AOAI-ASSISTANTS-KEY) + AOAI_ENDPOINT_SWECENTRAL: $(GO-AOAI-ENDPOINT-SWECENTRAL) + AOAI_ENDPOINT_SWECENTRAL_API_KEY: $(GO-AOAI-ENDPOINT-SWECENTRAL-API-KEY) + AOAI_ENDPOINT_USEAST: $(GO-AOAI-ENDPOINT-USEAST) + AOAI_ENDPOINT_USEAST_API_KEY: $(GO-AOAI-ENDPOINT-USEAST-API-KEY) + AOAI_ENDPOINT_USEAST2: $(GO-AOAI-ENDPOINT-USEAST2) + AOAI_ENDPOINT_USEAST2_API_KEY: $(GO-AOAI-ENDPOINT-USEAST2-API-KEY) + AOAI_ENDPOINT_USNORTHCENTRAL: $(GO-AOAI-ENDPOINT-USNORTHCENTRAL) + AOAI_ENDPOINT_USNORTHCENTRAL_API_KEY: $(GO-AOAI-ENDPOINT-USNORTHCENTRAL-API-KEY) + COGNITIVE_SEARCH_API_ENDPOINT: $(GO-COGNITIVE-SEARCH-API-ENDPOINT) + COGNITIVE_SEARCH_API_INDEX: $(GO-COGNITIVE-SEARCH-API-INDEX) + COGNITIVE_SEARCH_API_KEY: $(GO-COGNITIVE-SEARCH-API-KEY) + legacy: $(GO-legacy) + OPENAI_API_KEY: $(GO-OPENAI-API-KEY) + OPENAI_ENDPOINT: $(GO-OPENAI-ENDPOINT) + USE_TOKEN_CREDS: $(GO-USE-TOKEN-CREDS) diff --git a/sdk/ai/azopenaiextensions/test-resources.bicep b/sdk/ai/azopenaiextensions/test-resources.bicep deleted file mode 100644 index c632c194b326..000000000000 --- a/sdk/ai/azopenaiextensions/test-resources.bicep +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -// This is a placeholder file to trigger environment variable setting via New-TestResources.ps1 - -@description('The base resource name.') -param baseName string = resourceGroup().name - -@description('Which Azure Region to deploy the resource to. Defaults to the resource group location.') -param location string = resourceGroup().location - -@description('The principal to assign the role to. This is application object id.') -param testApplicationOid string From d614de5d37fbddbb8717c6dce52d144de4a3c8b9 Mon Sep 17 00:00:00 2001 From: Judy Liu Date: Fri, 15 Nov 2024 14:58:35 +0800 Subject: [PATCH 24/33] [Release] sdk/resourcemanager/networkcloud/armnetworkcloud/1.2.0-beta.1 generation from spec commit: 4e46346c63935bace7e24f806b4b084f2589d660 (#23757) --- .../networkcloud/armnetworkcloud/CHANGELOG.md | 82 ++ .../networkcloud/armnetworkcloud/README.md | 2 +- .../armnetworkcloud/agentpools_client.go | 26 +- .../agentpools_client_example_test.go | 38 +- .../networkcloud/armnetworkcloud/autorest.md | 8 +- .../baremetalmachinekeysets_client.go | 26 +- ...metalmachinekeysets_client_example_test.go | 30 +- .../baremetalmachines_client.go | 110 +- .../baremetalmachines_client_example_test.go | 286 ++-- .../armnetworkcloud/bmckeysets_client.go | 26 +- .../bmckeysets_client_example_test.go | 30 +- .../armnetworkcloud/client_factory.go | 130 +- .../cloudservicesnetworks_client.go | 30 +- ...oudservicesnetworks_client_example_test.go | 36 +- .../armnetworkcloud/clustermanagers_client.go | 28 +- .../clustermanagers_client_example_test.go | 148 ++- .../armnetworkcloud/clusters_client.go | 218 ++- .../clusters_client_example_test.go | 1174 ++++++++++++++++- .../armnetworkcloud/consoles_client.go | 26 +- .../consoles_client_example_test.go | 10 +- .../networkcloud/armnetworkcloud/constants.go | 214 ++- .../fake/baremetalmachines_server.go | 60 +- .../armnetworkcloud/fake/clusters_server.go | 130 +- .../fake/kubernetesclusterfeatures_server.go | 332 +++++ .../fake/kubernetesclusters_server.go | 6 +- .../armnetworkcloud/fake/server_factory.go | 87 +- .../fake/storageappliances_server.go | 12 +- .../armnetworkcloud/fake/time_rfc3339.go | 42 +- .../fake/virtualmachines_server.go | 24 +- .../kubernetesclusterfeatures_client.go | 434 ++++++ ...etesclusterfeatures_client_example_test.go | 285 ++++ .../kubernetesclusters_client.go | 38 +- .../kubernetesclusters_client_example_test.go | 476 ++++++- .../armnetworkcloud/l2networks_client.go | 28 +- .../l2networks_client_example_test.go | 12 +- .../armnetworkcloud/l3networks_client.go | 28 +- .../l3networks_client_example_test.go | 12 +- .../metricsconfigurations_client.go | 26 +- ...tricsconfigurations_client_example_test.go | 10 +- .../networkcloud/armnetworkcloud/models.go | 425 +++++- .../armnetworkcloud/models_serde.go | 920 ++++++++++++- .../armnetworkcloud/operations_client.go | 4 +- .../operations_client_example_test.go | 2 +- .../networkcloud/armnetworkcloud/options.go | 49 + .../armnetworkcloud/racks_client.go | 30 +- .../racks_client_example_test.go | 24 +- .../armnetworkcloud/rackskus_client.go | 8 +- .../rackskus_client_example_test.go | 4 +- .../{response_types.go => responses.go} | 93 +- .../storageappliances_client.go | 46 +- .../storageappliances_client_example_test.go | 91 +- .../armnetworkcloud/time_rfc3339.go | 42 +- .../armnetworkcloud/trunkednetworks_client.go | 28 +- .../trunkednetworks_client_example_test.go | 12 +- .../armnetworkcloud/virtualmachines_client.go | 62 +- .../virtualmachines_client_example_test.go | 20 +- .../armnetworkcloud/volumes_client.go | 28 +- .../volumes_client_example_test.go | 12 +- 58 files changed, 5763 insertions(+), 857 deletions(-) create mode 100644 sdk/resourcemanager/networkcloud/armnetworkcloud/fake/kubernetesclusterfeatures_server.go create mode 100644 sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client.go create mode 100644 sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client_example_test.go rename sdk/resourcemanager/networkcloud/armnetworkcloud/{response_types.go => responses.go} (90%) diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/CHANGELOG.md b/sdk/resourcemanager/networkcloud/armnetworkcloud/CHANGELOG.md index ef9a6df60292..657abef2783a 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/CHANGELOG.md +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/CHANGELOG.md @@ -1,5 +1,87 @@ # Release History +## 1.2.0-beta.1 (2024-11-15) +### Features Added + +- New value `ClusterConnectionStatusDisconnected` added to enum type `ClusterConnectionStatus` +- New value `ClusterDetailedStatusUpdatePaused` added to enum type `ClusterDetailedStatus` +- New value `RackSKUProvisioningStateCanceled`, `RackSKUProvisioningStateFailed` added to enum type `RackSKUProvisioningState` +- New enum type `ClusterContinueUpdateVersionMachineGroupTargetingMode` with values `ClusterContinueUpdateVersionMachineGroupTargetingModeAlphaByRack` +- New enum type `ClusterScanRuntimeParametersScanActivity` with values `ClusterScanRuntimeParametersScanActivityScan`, `ClusterScanRuntimeParametersScanActivitySkip` +- New enum type `ClusterSecretArchiveEnabled` with values `ClusterSecretArchiveEnabledFalse`, `ClusterSecretArchiveEnabledTrue` +- New enum type `ClusterUpdateStrategyType` with values `ClusterUpdateStrategyTypePauseAfterRack`, `ClusterUpdateStrategyTypeRack` +- New enum type `KubernetesClusterFeatureAvailabilityLifecycle` with values `KubernetesClusterFeatureAvailabilityLifecycleGenerallyAvailable`, `KubernetesClusterFeatureAvailabilityLifecyclePreview` +- New enum type `KubernetesClusterFeatureDetailedStatus` with values `KubernetesClusterFeatureDetailedStatusError`, `KubernetesClusterFeatureDetailedStatusInstalled`, `KubernetesClusterFeatureDetailedStatusProvisioning` +- New enum type `KubernetesClusterFeatureProvisioningState` with values `KubernetesClusterFeatureProvisioningStateAccepted`, `KubernetesClusterFeatureProvisioningStateCanceled`, `KubernetesClusterFeatureProvisioningStateDeleting`, `KubernetesClusterFeatureProvisioningStateFailed`, `KubernetesClusterFeatureProvisioningStateSucceeded`, `KubernetesClusterFeatureProvisioningStateUpdating` +- New enum type `KubernetesClusterFeatureRequired` with values `KubernetesClusterFeatureRequiredFalse`, `KubernetesClusterFeatureRequiredTrue` +- New enum type `ManagedServiceIdentitySelectorType` with values `ManagedServiceIdentitySelectorTypeSystemAssignedIdentity`, `ManagedServiceIdentitySelectorTypeUserAssignedIdentity` +- New enum type `ManagedServiceIdentityType` with values `ManagedServiceIdentityTypeNone`, `ManagedServiceIdentityTypeSystemAssigned`, `ManagedServiceIdentityTypeSystemAssignedUserAssigned`, `ManagedServiceIdentityTypeUserAssigned` +- New enum type `RuntimeProtectionEnforcementLevel` with values `RuntimeProtectionEnforcementLevelAudit`, `RuntimeProtectionEnforcementLevelDisabled`, `RuntimeProtectionEnforcementLevelOnDemand`, `RuntimeProtectionEnforcementLevelPassive`, `RuntimeProtectionEnforcementLevelRealTime` +- New function `*ClientFactory.NewKubernetesClusterFeaturesClient() *KubernetesClusterFeaturesClient` +- New function `*ClustersClient.BeginContinueUpdateVersion(context.Context, string, string, ClusterContinueUpdateVersionParameters, *ClustersClientBeginContinueUpdateVersionOptions) (*runtime.Poller[ClustersClientContinueUpdateVersionResponse], error)` +- New function `*ClustersClient.BeginScanRuntime(context.Context, string, string, *ClustersClientBeginScanRuntimeOptions) (*runtime.Poller[ClustersClientScanRuntimeResponse], error)` +- New function `NewKubernetesClusterFeaturesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*KubernetesClusterFeaturesClient, error)` +- New function `*KubernetesClusterFeaturesClient.BeginCreateOrUpdate(context.Context, string, string, string, KubernetesClusterFeature, *KubernetesClusterFeaturesClientBeginCreateOrUpdateOptions) (*runtime.Poller[KubernetesClusterFeaturesClientCreateOrUpdateResponse], error)` +- New function `*KubernetesClusterFeaturesClient.BeginDelete(context.Context, string, string, string, *KubernetesClusterFeaturesClientBeginDeleteOptions) (*runtime.Poller[KubernetesClusterFeaturesClientDeleteResponse], error)` +- New function `*KubernetesClusterFeaturesClient.Get(context.Context, string, string, string, *KubernetesClusterFeaturesClientGetOptions) (KubernetesClusterFeaturesClientGetResponse, error)` +- New function `*KubernetesClusterFeaturesClient.NewListByKubernetesClusterPager(string, string, *KubernetesClusterFeaturesClientListByKubernetesClusterOptions) *runtime.Pager[KubernetesClusterFeaturesClientListByKubernetesClusterResponse]` +- New function `*KubernetesClusterFeaturesClient.BeginUpdate(context.Context, string, string, string, KubernetesClusterFeaturePatchParameters, *KubernetesClusterFeaturesClientBeginUpdateOptions) (*runtime.Poller[KubernetesClusterFeaturesClientUpdateResponse], error)` +- New struct `AdministratorConfigurationPatch` +- New struct `ClusterContinueUpdateVersionParameters` +- New struct `ClusterScanRuntimeParameters` +- New struct `ClusterSecretArchive` +- New struct `ClusterUpdateStrategy` +- New struct `CommandOutputSettings` +- New struct `IdentitySelector` +- New struct `KubernetesClusterFeature` +- New struct `KubernetesClusterFeatureList` +- New struct `KubernetesClusterFeaturePatchParameters` +- New struct `KubernetesClusterFeaturePatchProperties` +- New struct `KubernetesClusterFeatureProperties` +- New struct `L2ServiceLoadBalancerConfiguration` +- New struct `ManagedServiceIdentity` +- New struct `NodePoolAdministratorConfigurationPatch` +- New struct `OperationStatusResultProperties` +- New struct `RuntimeProtectionConfiguration` +- New struct `RuntimeProtectionStatus` +- New struct `SecretArchiveReference` +- New struct `SecretRotationStatus` +- New struct `StringKeyValuePair` +- New struct `UserAssignedIdentity` +- New field `AdministratorConfiguration` in struct `AgentPoolPatchProperties` +- New field `DrainTimeout`, `MaxUnavailable` in struct `AgentPoolUpgradeSettings` +- New anonymous field `OperationStatusResult` in struct `AgentPoolsClientDeleteResponse` +- New anonymous field `OperationStatusResult` in struct `BareMetalMachineKeySetsClientDeleteResponse` +- New field `MachineClusterVersion`, `MachineRoles`, `RuntimeProtectionStatus`, `SecretRotationStatus` in struct `BareMetalMachineProperties` +- New anonymous field `OperationStatusResult` in struct `BareMetalMachinesClientDeleteResponse` +- New anonymous field `OperationStatusResult` in struct `BmcKeySetsClientDeleteResponse` +- New anonymous field `OperationStatusResult` in struct `CloudServicesNetworksClientDeleteResponse` +- New field `Identity` in struct `Cluster` +- New field `Identity` in struct `ClusterManager` +- New field `Identity` in struct `ClusterManagerPatchParameters` +- New anonymous field `OperationStatusResult` in struct `ClusterManagersClientDeleteResponse` +- New field `Identity` in struct `ClusterPatchParameters` +- New field `CommandOutputSettings`, `RuntimeProtectionConfiguration`, `SecretArchive`, `UpdateStrategy` in struct `ClusterPatchProperties` +- New field `CommandOutputSettings`, `RuntimeProtectionConfiguration`, `SecretArchive`, `UpdateStrategy` in struct `ClusterProperties` +- New anonymous field `OperationStatusResult` in struct `ClustersClientDeleteResponse` +- New anonymous field `OperationStatusResult` in struct `ConsolesClientDeleteResponse` +- New field `AdministratorConfiguration` in struct `ControlPlaneNodePatchConfiguration` +- New field `UserPrincipalName` in struct `KeySetUser` +- New field `AdministratorConfiguration` in struct `KubernetesClusterPatchProperties` +- New anonymous field `OperationStatusResult` in struct `KubernetesClustersClientDeleteResponse` +- New anonymous field `OperationStatusResult` in struct `L2NetworksClientDeleteResponse` +- New anonymous field `OperationStatusResult` in struct `L3NetworksClientDeleteResponse` +- New anonymous field `OperationStatusResult` in struct `MetricsConfigurationsClientDeleteResponse` +- New field `L2ServiceLoadBalancerConfiguration` in struct `NetworkConfiguration` +- New field `Properties` in struct `OperationStatusResult` +- New anonymous field `OperationStatusResult` in struct `RacksClientDeleteResponse` +- New field `Manufacturer`, `Model`, `SecretRotationStatus`, `Version` in struct `StorageApplianceProperties` +- New anonymous field `OperationStatusResult` in struct `StorageAppliancesClientDeleteResponse` +- New anonymous field `OperationStatusResult` in struct `TrunkedNetworksClientDeleteResponse` +- New anonymous field `OperationStatusResult` in struct `VirtualMachinesClientDeleteResponse` +- New anonymous field `OperationStatusResult` in struct `VolumesClientDeleteResponse` + + ## 1.1.0 (2023-11-24) ### Features Added diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/README.md b/sdk/resourcemanager/networkcloud/armnetworkcloud/README.md index 1fba9d0cea5d..edf0053076eb 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/README.md +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/README.md @@ -55,7 +55,7 @@ client, err := armnetworkcloud.NewClientFactory(, cred, &option A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory. ```go -client := clientFactory.NewTrunkedNetworksClient() +client := clientFactory.NewAgentPoolsClient() ``` ## Fakes diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client.go index 049607d2f074..0a36c6c665d9 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client.go @@ -46,7 +46,7 @@ func NewAgentPoolsClient(subscriptionID string, credential azcore.TokenCredentia // BeginCreateOrUpdate - Create a new Kubernetes cluster agent pool or update the properties of the existing one. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - agentPoolName - The name of the Kubernetes cluster agent pool. @@ -74,7 +74,7 @@ func (client *AgentPoolsClient) BeginCreateOrUpdate(ctx context.Context, resourc // CreateOrUpdate - Create a new Kubernetes cluster agent pool or update the properties of the existing one. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *AgentPoolsClient) createOrUpdate(ctx context.Context, resourceGroupName string, kubernetesClusterName string, agentPoolName string, agentPoolParameters AgentPool, options *AgentPoolsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "AgentPoolsClient.BeginCreateOrUpdate" @@ -120,7 +120,7 @@ func (client *AgentPoolsClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, agentPoolParameters); err != nil { @@ -132,7 +132,7 @@ func (client *AgentPoolsClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Delete the provided Kubernetes cluster agent pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - agentPoolName - The name of the Kubernetes cluster agent pool. @@ -158,7 +158,7 @@ func (client *AgentPoolsClient) BeginDelete(ctx context.Context, resourceGroupNa // Delete - Delete the provided Kubernetes cluster agent pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *AgentPoolsClient) deleteOperation(ctx context.Context, resourceGroupName string, kubernetesClusterName string, agentPoolName string, options *AgentPoolsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "AgentPoolsClient.BeginDelete" @@ -204,7 +204,7 @@ func (client *AgentPoolsClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -213,7 +213,7 @@ func (client *AgentPoolsClient) deleteCreateRequest(ctx context.Context, resourc // Get - Get properties of the provided Kubernetes cluster agent pool. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - agentPoolName - The name of the Kubernetes cluster agent pool. @@ -264,7 +264,7 @@ func (client *AgentPoolsClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -281,7 +281,7 @@ func (client *AgentPoolsClient) getHandleResponse(resp *http.Response) (AgentPoo // NewListByKubernetesClusterPager - Get a list of agent pools for the provided Kubernetes cluster. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - options - AgentPoolsClientListByKubernetesClusterOptions contains the optional parameters for the AgentPoolsClient.NewListByKubernetesClusterPager @@ -329,7 +329,7 @@ func (client *AgentPoolsClient) listByKubernetesClusterCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -348,7 +348,7 @@ func (client *AgentPoolsClient) listByKubernetesClusterHandleResponse(resp *http // Kubernetes cluster agent pool. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - agentPoolName - The name of the Kubernetes cluster agent pool. @@ -376,7 +376,7 @@ func (client *AgentPoolsClient) BeginUpdate(ctx context.Context, resourceGroupNa // cluster agent pool. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *AgentPoolsClient) update(ctx context.Context, resourceGroupName string, kubernetesClusterName string, agentPoolName string, agentPoolUpdateParameters AgentPoolPatchParameters, options *AgentPoolsClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "AgentPoolsClient.BeginUpdate" @@ -422,7 +422,7 @@ func (client *AgentPoolsClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, agentPoolUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client_example_test.go index 22073da30db9..26b2c4a7a80a 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/agentpools_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_ListByKubernetesCluster.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_ListByKubernetesCluster.json func ExampleAgentPoolsClient_NewListByKubernetesClusterPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -100,7 +100,7 @@ func ExampleAgentPoolsClient_NewListByKubernetesClusterPager() { // Count: to.Ptr[int64](3), // DetailedStatus: to.Ptr(armnetworkcloud.AgentPoolDetailedStatusAvailable), // DetailedStatusMessage: to.Ptr("Agent pool is available"), - // KubernetesVersion: to.Ptr("1.24.3-1"), + // KubernetesVersion: to.Ptr("1.XX.Y"), // Labels: []*armnetworkcloud.KubernetesLabel{ // { // Key: to.Ptr("kubernetes.label"), @@ -116,14 +116,14 @@ func ExampleAgentPoolsClient_NewListByKubernetesClusterPager() { // UpgradeSettings: &armnetworkcloud.AgentPoolUpgradeSettings{ // MaxSurge: to.Ptr("1"), // }, - // VMSKUName: to.Ptr("NC_M16_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }, // }}, // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Get.json func ExampleAgentPoolsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -199,7 +199,7 @@ func ExampleAgentPoolsClient_Get() { // Count: to.Ptr[int64](3), // DetailedStatus: to.Ptr(armnetworkcloud.AgentPoolDetailedStatusAvailable), // DetailedStatusMessage: to.Ptr("Agent pool is available"), - // KubernetesVersion: to.Ptr("1.24.3-1"), + // KubernetesVersion: to.Ptr("1.XX.Y"), // Labels: []*armnetworkcloud.KubernetesLabel{ // { // Key: to.Ptr("kubernetes.label"), @@ -215,12 +215,12 @@ func ExampleAgentPoolsClient_Get() { // UpgradeSettings: &armnetworkcloud.AgentPoolUpgradeSettings{ // MaxSurge: to.Ptr("1"), // }, - // VMSKUName: to.Ptr("NC_M16_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Create.json func ExampleAgentPoolsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -290,7 +290,7 @@ func ExampleAgentPoolsClient_BeginCreateOrUpdate() { UpgradeSettings: &armnetworkcloud.AgentPoolUpgradeSettings{ MaxSurge: to.Ptr("1"), }, - VMSKUName: to.Ptr("NC_M16_v1"), + VMSKUName: to.Ptr("NC_XXXX"), }, }, nil) if err != nil { @@ -361,7 +361,7 @@ func ExampleAgentPoolsClient_BeginCreateOrUpdate() { // Count: to.Ptr[int64](3), // DetailedStatus: to.Ptr(armnetworkcloud.AgentPoolDetailedStatusAvailable), // DetailedStatusMessage: to.Ptr("Agent pool is available"), - // KubernetesVersion: to.Ptr("1.24.3-1"), + // KubernetesVersion: to.Ptr("1.XX.Y"), // Labels: []*armnetworkcloud.KubernetesLabel{ // { // Key: to.Ptr("kubernetes.label"), @@ -377,12 +377,12 @@ func ExampleAgentPoolsClient_BeginCreateOrUpdate() { // UpgradeSettings: &armnetworkcloud.AgentPoolUpgradeSettings{ // MaxSurge: to.Ptr("1"), // }, - // VMSKUName: to.Ptr("NC_M16_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Delete.json func ExampleAgentPoolsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -403,7 +403,7 @@ func ExampleAgentPoolsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/AgentPools_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/AgentPools_Patch.json func ExampleAgentPoolsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -416,9 +416,17 @@ func ExampleAgentPoolsClient_BeginUpdate() { } poller, err := clientFactory.NewAgentPoolsClient().BeginUpdate(ctx, "resourceGroupName", "kubernetesClusterName", "agentPoolName", armnetworkcloud.AgentPoolPatchParameters{ Properties: &armnetworkcloud.AgentPoolPatchProperties{ + AdministratorConfiguration: &armnetworkcloud.NodePoolAdministratorConfigurationPatch{ + SSHPublicKeys: []*armnetworkcloud.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), + }}, + }, Count: to.Ptr[int64](3), UpgradeSettings: &armnetworkcloud.AgentPoolUpgradeSettings{ - MaxSurge: to.Ptr("1"), + DrainTimeout: to.Ptr[int64](1800), + MaxSurge: to.Ptr("1"), + MaxUnavailable: to.Ptr("0"), }, }, Tags: map[string]*string{ @@ -494,7 +502,7 @@ func ExampleAgentPoolsClient_BeginUpdate() { // Count: to.Ptr[int64](3), // DetailedStatus: to.Ptr(armnetworkcloud.AgentPoolDetailedStatusAvailable), // DetailedStatusMessage: to.Ptr("Agent pool is available"), - // KubernetesVersion: to.Ptr("1.24.3-1"), + // KubernetesVersion: to.Ptr("1.XX.Y"), // Labels: []*armnetworkcloud.KubernetesLabel{ // { // Key: to.Ptr("kubernetes.label"), @@ -510,7 +518,7 @@ func ExampleAgentPoolsClient_BeginUpdate() { // UpgradeSettings: &armnetworkcloud.AgentPoolUpgradeSettings{ // MaxSurge: to.Ptr("1"), // }, - // VMSKUName: to.Ptr("NC_M16_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }, // } } diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/autorest.md b/sdk/resourcemanager/networkcloud/armnetworkcloud/autorest.md index 9c6b8feeec8d..3adef5eb5c1f 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/autorest.md +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 -tag: package-2023-07-01 +module-version: 1.2.0-beta.1 +tag: package-2024-06-01-preview ``` \ No newline at end of file diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client.go index 5f0d8fcc3012..7dc1ea47eaa2 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client.go @@ -46,7 +46,7 @@ func NewBareMetalMachineKeySetsClient(subscriptionID string, credential azcore.T // BeginCreateOrUpdate - Create a new bare metal machine key set or update the existing one for the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bareMetalMachineKeySetName - The name of the bare metal machine key set. @@ -74,7 +74,7 @@ func (client *BareMetalMachineKeySetsClient) BeginCreateOrUpdate(ctx context.Con // CreateOrUpdate - Create a new bare metal machine key set or update the existing one for the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachineKeySetsClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, bareMetalMachineKeySetName string, bareMetalMachineKeySetParameters BareMetalMachineKeySet, options *BareMetalMachineKeySetsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachineKeySetsClient.BeginCreateOrUpdate" @@ -120,7 +120,7 @@ func (client *BareMetalMachineKeySetsClient) createOrUpdateCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, bareMetalMachineKeySetParameters); err != nil { @@ -132,7 +132,7 @@ func (client *BareMetalMachineKeySetsClient) createOrUpdateCreateRequest(ctx con // BeginDelete - Delete the bare metal machine key set of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bareMetalMachineKeySetName - The name of the bare metal machine key set. @@ -159,7 +159,7 @@ func (client *BareMetalMachineKeySetsClient) BeginDelete(ctx context.Context, re // Delete - Delete the bare metal machine key set of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachineKeySetsClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, bareMetalMachineKeySetName string, options *BareMetalMachineKeySetsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachineKeySetsClient.BeginDelete" @@ -205,7 +205,7 @@ func (client *BareMetalMachineKeySetsClient) deleteCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -214,7 +214,7 @@ func (client *BareMetalMachineKeySetsClient) deleteCreateRequest(ctx context.Con // Get - Get bare metal machine key set of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bareMetalMachineKeySetName - The name of the bare metal machine key set. @@ -266,7 +266,7 @@ func (client *BareMetalMachineKeySetsClient) getCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -283,7 +283,7 @@ func (client *BareMetalMachineKeySetsClient) getHandleResponse(resp *http.Respon // NewListByClusterPager - Get a list of bare metal machine key sets for the provided cluster. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - options - BareMetalMachineKeySetsClientListByClusterOptions contains the optional parameters for the BareMetalMachineKeySetsClient.NewListByClusterPager @@ -331,7 +331,7 @@ func (client *BareMetalMachineKeySetsClient) listByClusterCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -350,7 +350,7 @@ func (client *BareMetalMachineKeySetsClient) listByClusterHandleResponse(resp *h // it. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bareMetalMachineKeySetName - The name of the bare metal machine key set. @@ -379,7 +379,7 @@ func (client *BareMetalMachineKeySetsClient) BeginUpdate(ctx context.Context, re // Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachineKeySetsClient) update(ctx context.Context, resourceGroupName string, clusterName string, bareMetalMachineKeySetName string, bareMetalMachineKeySetUpdateParameters BareMetalMachineKeySetPatchParameters, options *BareMetalMachineKeySetsClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachineKeySetsClient.BeginUpdate" @@ -425,7 +425,7 @@ func (client *BareMetalMachineKeySetsClient) updateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, bareMetalMachineKeySetUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client_example_test.go index eb8c3bc0b9f8..b08ae4d11ddf 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachinekeysets_client_example_test.go @@ -20,7 +20,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_ListByCluster.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_ListByCluster.json func ExampleBareMetalMachineKeySetsClient_NewListByClusterPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -68,7 +68,7 @@ func ExampleBareMetalMachineKeySetsClient_NewListByClusterPager() { // Properties: &armnetworkcloud.BareMetalMachineKeySetProperties{ // AzureGroupID: to.Ptr("f110271b-XXXX-4163-9b99-214d91660f0e"), // DetailedStatus: to.Ptr(armnetworkcloud.BareMetalMachineKeySetDetailedStatusSomeInvalid), - // DetailedStatusMessage: to.Ptr("Inalid Azure user(s) were provided: userXYZ"), + // DetailedStatusMessage: to.Ptr("Invalid Azure user(s) were provided: userXYZ"), // Expiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-31T23:59:59.008Z"); return t}()), // JumpHostsAllowed: []*string{ // to.Ptr("192.0.2.1"), @@ -84,6 +84,7 @@ func ExampleBareMetalMachineKeySetsClient_NewListByClusterPager() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userABC@contoso.com"), // }, // { // Description: to.Ptr("Needs access for troubleshooting as a part of the support team"), @@ -91,6 +92,7 @@ func ExampleBareMetalMachineKeySetsClient_NewListByClusterPager() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userABC@contoso.com"), // }}, // UserListStatus: []*armnetworkcloud.KeySetUserStatus{ // { @@ -109,7 +111,7 @@ func ExampleBareMetalMachineKeySetsClient_NewListByClusterPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Get.json func ExampleBareMetalMachineKeySetsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -151,7 +153,7 @@ func ExampleBareMetalMachineKeySetsClient_Get() { // Properties: &armnetworkcloud.BareMetalMachineKeySetProperties{ // AzureGroupID: to.Ptr("f110271b-XXXX-4163-9b99-214d91660f0e"), // DetailedStatus: to.Ptr(armnetworkcloud.BareMetalMachineKeySetDetailedStatusSomeInvalid), - // DetailedStatusMessage: to.Ptr("Inalid Azure user(s) were provided: userXYZ"), + // DetailedStatusMessage: to.Ptr("Invalid Azure user(s) were provided: userXYZ"), // Expiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-31T23:59:59.008Z"); return t}()), // JumpHostsAllowed: []*string{ // to.Ptr("192.0.2.1"), @@ -167,6 +169,7 @@ func ExampleBareMetalMachineKeySetsClient_Get() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userABC@contoso.com"), // }, // { // Description: to.Ptr("Needs access for troubleshooting as a part of the support team"), @@ -174,6 +177,7 @@ func ExampleBareMetalMachineKeySetsClient_Get() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userABC@contoso.com"), // }}, // UserListStatus: []*armnetworkcloud.KeySetUserStatus{ // { @@ -190,7 +194,7 @@ func ExampleBareMetalMachineKeySetsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Create.json func ExampleBareMetalMachineKeySetsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -226,6 +230,7 @@ func ExampleBareMetalMachineKeySetsClient_BeginCreateOrUpdate() { SSHPublicKey: &armnetworkcloud.SSHPublicKey{ KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), }, + UserPrincipalName: to.Ptr("userABC@contoso.com"), }, { Description: to.Ptr("Needs access for troubleshooting as a part of the support team"), @@ -233,6 +238,7 @@ func ExampleBareMetalMachineKeySetsClient_BeginCreateOrUpdate() { SSHPublicKey: &armnetworkcloud.SSHPublicKey{ KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), }, + UserPrincipalName: to.Ptr("userABC@contoso.com"), }}, }, }, nil) @@ -270,7 +276,7 @@ func ExampleBareMetalMachineKeySetsClient_BeginCreateOrUpdate() { // Properties: &armnetworkcloud.BareMetalMachineKeySetProperties{ // AzureGroupID: to.Ptr("f110271b-XXXX-4163-9b99-214d91660f0e"), // DetailedStatus: to.Ptr(armnetworkcloud.BareMetalMachineKeySetDetailedStatusSomeInvalid), - // DetailedStatusMessage: to.Ptr("Inalid Azure user(s) were provided: userXYZ"), + // DetailedStatusMessage: to.Ptr("Invalid Azure user(s) were provided: userXYZ"), // Expiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-31T23:59:59.008Z"); return t}()), // JumpHostsAllowed: []*string{ // to.Ptr("192.0.2.1"), @@ -286,6 +292,7 @@ func ExampleBareMetalMachineKeySetsClient_BeginCreateOrUpdate() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userABC@contoso.com"), // }, // { // Description: to.Ptr("Needs access for troubleshooting as a part of the support team"), @@ -293,6 +300,7 @@ func ExampleBareMetalMachineKeySetsClient_BeginCreateOrUpdate() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userABC@contoso.com"), // }}, // UserListStatus: []*armnetworkcloud.KeySetUserStatus{ // { @@ -309,7 +317,7 @@ func ExampleBareMetalMachineKeySetsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Delete.json func ExampleBareMetalMachineKeySetsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -330,7 +338,7 @@ func ExampleBareMetalMachineKeySetsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachineKeySets_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachineKeySets_Patch.json func ExampleBareMetalMachineKeySetsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -354,6 +362,7 @@ func ExampleBareMetalMachineKeySetsClient_BeginUpdate() { SSHPublicKey: &armnetworkcloud.SSHPublicKey{ KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), }, + UserPrincipalName: to.Ptr("userABC@contoso.com"), }, { Description: to.Ptr("Needs access for troubleshooting as a part of the support team"), @@ -361,6 +370,7 @@ func ExampleBareMetalMachineKeySetsClient_BeginUpdate() { SSHPublicKey: &armnetworkcloud.SSHPublicKey{ KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), }, + UserPrincipalName: to.Ptr("userABC@contoso.com"), }}, }, Tags: map[string]*string{ @@ -402,7 +412,7 @@ func ExampleBareMetalMachineKeySetsClient_BeginUpdate() { // Properties: &armnetworkcloud.BareMetalMachineKeySetProperties{ // AzureGroupID: to.Ptr("f110271b-XXXX-4163-9b99-214d91660f0e"), // DetailedStatus: to.Ptr(armnetworkcloud.BareMetalMachineKeySetDetailedStatusSomeInvalid), - // DetailedStatusMessage: to.Ptr("Inalid Azure user(s) were provided: userXYZ"), + // DetailedStatusMessage: to.Ptr("Invalid Azure user(s) were provided: userXYZ"), // Expiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-31T23:59:59.008Z"); return t}()), // JumpHostsAllowed: []*string{ // to.Ptr("192.0.2.1"), @@ -418,6 +428,7 @@ func ExampleBareMetalMachineKeySetsClient_BeginUpdate() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userABC@contoso.com"), // }, // { // Description: to.Ptr("Needs access for troubleshooting as a part of the support team"), @@ -425,6 +436,7 @@ func ExampleBareMetalMachineKeySetsClient_BeginUpdate() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userABC@contoso.com"), // }}, // UserListStatus: []*armnetworkcloud.KeySetUserStatus{ // { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client.go index 107d950bbeee..21242011492e 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client.go @@ -46,7 +46,7 @@ func NewBareMetalMachinesClient(subscriptionID string, credential azcore.TokenCr // BeginCordon - Cordon the provided bare metal machine's Kubernetes node. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginCordonOptions contains the optional parameters for the BareMetalMachinesClient.BeginCordon @@ -72,7 +72,7 @@ func (client *BareMetalMachinesClient) BeginCordon(ctx context.Context, resource // Cordon - Cordon the provided bare metal machine's Kubernetes node. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachinesClient) cordon(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginCordonOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginCordon" @@ -87,7 +87,7 @@ func (client *BareMetalMachinesClient) cordon(ctx context.Context, resourceGroup if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -114,7 +114,7 @@ func (client *BareMetalMachinesClient) cordonCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.BareMetalMachineCordonParameters != nil { @@ -130,7 +130,7 @@ func (client *BareMetalMachinesClient) cordonCreateRequest(ctx context.Context, // requests will be rejected as the life cycle of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - bareMetalMachineParameters - The request body. @@ -158,7 +158,7 @@ func (client *BareMetalMachinesClient) BeginCreateOrUpdate(ctx context.Context, // will be rejected as the life cycle of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachinesClient) createOrUpdate(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineParameters BareMetalMachine, options *BareMetalMachinesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginCreateOrUpdate" @@ -200,7 +200,7 @@ func (client *BareMetalMachinesClient) createOrUpdateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, bareMetalMachineParameters); err != nil { @@ -213,7 +213,7 @@ func (client *BareMetalMachinesClient) createOrUpdateCreateRequest(ctx context.C // of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginDeleteOptions contains the optional parameters for the BareMetalMachinesClient.BeginDelete @@ -240,7 +240,7 @@ func (client *BareMetalMachinesClient) BeginDelete(ctx context.Context, resource // this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachinesClient) deleteOperation(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginDelete" @@ -282,7 +282,7 @@ func (client *BareMetalMachinesClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -291,7 +291,7 @@ func (client *BareMetalMachinesClient) deleteCreateRequest(ctx context.Context, // Get - Get properties of the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientGetOptions contains the optional parameters for the BareMetalMachinesClient.Get method. @@ -337,7 +337,7 @@ func (client *BareMetalMachinesClient) getCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -354,7 +354,7 @@ func (client *BareMetalMachinesClient) getHandleResponse(resp *http.Response) (B // NewListByResourceGroupPager - Get a list of bare metal machines in the provided resource group. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - BareMetalMachinesClientListByResourceGroupOptions contains the optional parameters for the BareMetalMachinesClient.NewListByResourceGroupPager // method. @@ -397,7 +397,7 @@ func (client *BareMetalMachinesClient) listByResourceGroupCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -414,7 +414,7 @@ func (client *BareMetalMachinesClient) listByResourceGroupHandleResponse(resp *h // NewListBySubscriptionPager - Get a list of bare metal machines in the provided subscription. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - options - BareMetalMachinesClientListBySubscriptionOptions contains the optional parameters for the BareMetalMachinesClient.NewListBySubscriptionPager // method. func (client *BareMetalMachinesClient) NewListBySubscriptionPager(options *BareMetalMachinesClientListBySubscriptionOptions) *runtime.Pager[BareMetalMachinesClientListBySubscriptionResponse] { @@ -452,7 +452,7 @@ func (client *BareMetalMachinesClient) listBySubscriptionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -470,7 +470,7 @@ func (client *BareMetalMachinesClient) listBySubscriptionHandleResponse(resp *ht // BeginPowerOff - Power off the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginPowerOffOptions contains the optional parameters for the BareMetalMachinesClient.BeginPowerOff @@ -496,7 +496,7 @@ func (client *BareMetalMachinesClient) BeginPowerOff(ctx context.Context, resour // PowerOff - Power off the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachinesClient) powerOff(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginPowerOffOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginPowerOff" @@ -511,7 +511,7 @@ func (client *BareMetalMachinesClient) powerOff(ctx context.Context, resourceGro if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -538,7 +538,7 @@ func (client *BareMetalMachinesClient) powerOffCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.BareMetalMachinePowerOffParameters != nil { @@ -553,7 +553,7 @@ func (client *BareMetalMachinesClient) powerOffCreateRequest(ctx context.Context // BeginReimage - Reimage the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginReimageOptions contains the optional parameters for the BareMetalMachinesClient.BeginReimage @@ -579,7 +579,7 @@ func (client *BareMetalMachinesClient) BeginReimage(ctx context.Context, resourc // Reimage - Reimage the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachinesClient) reimage(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginReimageOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginReimage" @@ -594,7 +594,7 @@ func (client *BareMetalMachinesClient) reimage(ctx context.Context, resourceGrou if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -621,7 +621,7 @@ func (client *BareMetalMachinesClient) reimageCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -630,7 +630,7 @@ func (client *BareMetalMachinesClient) reimageCreateRequest(ctx context.Context, // BeginReplace - Replace the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginReplaceOptions contains the optional parameters for the BareMetalMachinesClient.BeginReplace @@ -656,7 +656,7 @@ func (client *BareMetalMachinesClient) BeginReplace(ctx context.Context, resourc // Replace - Replace the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachinesClient) replace(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginReplaceOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginReplace" @@ -671,7 +671,7 @@ func (client *BareMetalMachinesClient) replace(ctx context.Context, resourceGrou if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -698,7 +698,7 @@ func (client *BareMetalMachinesClient) replaceCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.BareMetalMachineReplaceParameters != nil { @@ -713,7 +713,7 @@ func (client *BareMetalMachinesClient) replaceCreateRequest(ctx context.Context, // BeginRestart - Restart the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginRestartOptions contains the optional parameters for the BareMetalMachinesClient.BeginRestart @@ -739,7 +739,7 @@ func (client *BareMetalMachinesClient) BeginRestart(ctx context.Context, resourc // Restart - Restart the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachinesClient) restart(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginRestartOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginRestart" @@ -754,7 +754,7 @@ func (client *BareMetalMachinesClient) restart(ctx context.Context, resourceGrou if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -781,7 +781,7 @@ func (client *BareMetalMachinesClient) restartCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -792,7 +792,7 @@ func (client *BareMetalMachinesClient) restartCreateRequest(ctx context.Context, // once available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - bareMetalMachineRunCommandParameters - The request body. @@ -821,7 +821,7 @@ func (client *BareMetalMachinesClient) BeginRunCommand(ctx context.Context, reso // once available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachinesClient) runCommand(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineRunCommandParameters BareMetalMachineRunCommandParameters, options *BareMetalMachinesClientBeginRunCommandOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginRunCommand" @@ -836,7 +836,7 @@ func (client *BareMetalMachinesClient) runCommand(ctx context.Context, resourceG if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -863,7 +863,7 @@ func (client *BareMetalMachinesClient) runCommandCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, bareMetalMachineRunCommandParameters); err != nil { @@ -877,7 +877,7 @@ func (client *BareMetalMachinesClient) runCommandCreateRequest(ctx context.Conte // API once available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - bareMetalMachineRunDataExtractsParameters - The request body. @@ -906,7 +906,7 @@ func (client *BareMetalMachinesClient) BeginRunDataExtracts(ctx context.Context, // API once available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachinesClient) runDataExtracts(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineRunDataExtractsParameters BareMetalMachineRunDataExtractsParameters, options *BareMetalMachinesClientBeginRunDataExtractsOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginRunDataExtracts" @@ -921,7 +921,7 @@ func (client *BareMetalMachinesClient) runDataExtracts(ctx context.Context, reso if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -948,7 +948,7 @@ func (client *BareMetalMachinesClient) runDataExtractsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, bareMetalMachineRunDataExtractsParameters); err != nil { @@ -962,7 +962,7 @@ func (client *BareMetalMachinesClient) runDataExtractsCreateRequest(ctx context. // status API once available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - bareMetalMachineRunReadCommandsParameters - The request body. @@ -991,7 +991,7 @@ func (client *BareMetalMachinesClient) BeginRunReadCommands(ctx context.Context, // status API once available. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachinesClient) runReadCommands(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineRunReadCommandsParameters BareMetalMachineRunReadCommandsParameters, options *BareMetalMachinesClientBeginRunReadCommandsOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginRunReadCommands" @@ -1006,7 +1006,7 @@ func (client *BareMetalMachinesClient) runReadCommands(ctx context.Context, reso if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -1033,7 +1033,7 @@ func (client *BareMetalMachinesClient) runReadCommandsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, bareMetalMachineRunReadCommandsParameters); err != nil { @@ -1045,7 +1045,7 @@ func (client *BareMetalMachinesClient) runReadCommandsCreateRequest(ctx context. // BeginStart - Start the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginStartOptions contains the optional parameters for the BareMetalMachinesClient.BeginStart @@ -1071,7 +1071,7 @@ func (client *BareMetalMachinesClient) BeginStart(ctx context.Context, resourceG // Start - Start the provided bare metal machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachinesClient) start(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginStartOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginStart" @@ -1086,7 +1086,7 @@ func (client *BareMetalMachinesClient) start(ctx context.Context, resourceGroupN if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -1113,7 +1113,7 @@ func (client *BareMetalMachinesClient) startCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1122,7 +1122,7 @@ func (client *BareMetalMachinesClient) startCreateRequest(ctx context.Context, r // BeginUncordon - Uncordon the provided bare metal machine's Kubernetes node. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - options - BareMetalMachinesClientBeginUncordonOptions contains the optional parameters for the BareMetalMachinesClient.BeginUncordon @@ -1148,7 +1148,7 @@ func (client *BareMetalMachinesClient) BeginUncordon(ctx context.Context, resour // Uncordon - Uncordon the provided bare metal machine's Kubernetes node. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachinesClient) uncordon(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *BareMetalMachinesClientBeginUncordonOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginUncordon" @@ -1163,7 +1163,7 @@ func (client *BareMetalMachinesClient) uncordon(ctx context.Context, resourceGro if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -1190,7 +1190,7 @@ func (client *BareMetalMachinesClient) uncordonCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1200,7 +1200,7 @@ func (client *BareMetalMachinesClient) uncordonCreateRequest(ctx context.Context // Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - bareMetalMachineName - The name of the bare metal machine. // - bareMetalMachineUpdateParameters - The request body. @@ -1228,7 +1228,7 @@ func (client *BareMetalMachinesClient) BeginUpdate(ctx context.Context, resource // and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BareMetalMachinesClient) update(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineUpdateParameters BareMetalMachinePatchParameters, options *BareMetalMachinesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "BareMetalMachinesClient.BeginUpdate" @@ -1270,7 +1270,7 @@ func (client *BareMetalMachinesClient) updateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, bareMetalMachineUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client_example_test.go index 3185413213a5..9cb0b532318c 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/baremetalmachines_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_ListBySubscription.json func ExampleBareMetalMachinesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -91,27 +91,49 @@ func ExampleBareMetalMachinesClient_NewListBySubscriptionPager() { // Result: to.Ptr(armnetworkcloud.BareMetalMachineHardwareValidationResultPass), // }, // KubernetesNodeName: to.Ptr("node01"), - // KubernetesVersion: to.Ptr("1.21"), + // KubernetesVersion: to.Ptr("1.28.3"), + // MachineClusterVersion: to.Ptr("3.8.7"), // MachineDetails: to.Ptr("User-provided machine details."), // MachineName: to.Ptr("r01c001"), - // MachineSKUID: to.Ptr("684E-3B16-399E"), - // OamIPv4Address: to.Ptr("192.0.2.1"), - // OamIPv6Address: to.Ptr("0:0:0:0:0:FFFF:7F00:0001"), - // OSImage: to.Ptr("v20220805e"), - // PowerState: to.Ptr(armnetworkcloud.BareMetalMachinePowerStateOn), - // ProvisioningState: to.Ptr(armnetworkcloud.BareMetalMachineProvisioningStateSucceeded), - // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), - // RackSlot: to.Ptr[int64](1), - // ReadyState: to.Ptr(armnetworkcloud.BareMetalMachineReadyStateTrue), - // SerialNumber: to.Ptr("BM1219XXX"), - // ServiceTag: to.Ptr("ST1219XXX"), - // }, - // }}, - // } + // MachineRoles: []*string{ + // to.Ptr("platform.afo-nc.microsoft.com/management-plane=true")}, + // MachineSKUID: to.Ptr("684E-3B16-399E"), + // OamIPv4Address: to.Ptr("192.0.2.1"), + // OamIPv6Address: to.Ptr("0:0:0:0:0:FFFF:7F00:0001"), + // OSImage: to.Ptr("v20220805e"), + // PowerState: to.Ptr(armnetworkcloud.BareMetalMachinePowerStateOn), + // ProvisioningState: to.Ptr(armnetworkcloud.BareMetalMachineProvisioningStateSucceeded), + // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), + // RackSlot: to.Ptr[int64](1), + // ReadyState: to.Ptr(armnetworkcloud.BareMetalMachineReadyStateTrue), + // RuntimeProtectionStatus: &armnetworkcloud.RuntimeProtectionStatus{ + // DefinitionsLastUpdated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-28T13:27:03.008Z"); return t}()), + // DefinitionsVersion: to.Ptr("1.2.3"), + // ScanCompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // ScanScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-01T13:00:00.000Z"); return t}()), + // ScanStartedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:00:03.008Z"); return t}()), + // }, + // SecretRotationStatus: []*armnetworkcloud.SecretRotationStatus{ + // { + // ExpirePeriodDays: to.Ptr[int64](90), + // LastRotationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // RotationPeriodDays: to.Ptr[int64](60), + // SecretArchiveReference: &armnetworkcloud.SecretArchiveReference{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // SecretName: to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff-resource-group-cluster-1679871-console-credential-manager-ffffffff"), + // SecretVersion: to.Ptr("02ab6c1f9c0f4982b0632b0d5d74a33b"), + // }, + // SecretType: to.Ptr("Bare Metal Machine Identity - console"), + // }}, + // SerialNumber: to.Ptr("BM1219XXX"), + // ServiceTag: to.Ptr("ST1219XXX"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_ListByResourceGroup.json func ExampleBareMetalMachinesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -184,27 +206,49 @@ func ExampleBareMetalMachinesClient_NewListByResourceGroupPager() { // Result: to.Ptr(armnetworkcloud.BareMetalMachineHardwareValidationResultPass), // }, // KubernetesNodeName: to.Ptr("node01"), - // KubernetesVersion: to.Ptr("1.21"), + // KubernetesVersion: to.Ptr("1.28.3"), + // MachineClusterVersion: to.Ptr("3.8.7"), // MachineDetails: to.Ptr("User-provided machine details."), // MachineName: to.Ptr("r01c001"), - // MachineSKUID: to.Ptr("684E-3B16-399E"), - // OamIPv4Address: to.Ptr("192.0.2.1"), - // OamIPv6Address: to.Ptr("0:0:0:0:0:FFFF:7F00:0001"), - // OSImage: to.Ptr("v20220805e"), - // PowerState: to.Ptr(armnetworkcloud.BareMetalMachinePowerStateOn), - // ProvisioningState: to.Ptr(armnetworkcloud.BareMetalMachineProvisioningStateSucceeded), - // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), - // RackSlot: to.Ptr[int64](1), - // ReadyState: to.Ptr(armnetworkcloud.BareMetalMachineReadyStateTrue), - // SerialNumber: to.Ptr("BM1219XXX"), - // ServiceTag: to.Ptr("ST1219XXX"), - // }, - // }}, - // } + // MachineRoles: []*string{ + // to.Ptr("platform.afo-nc.microsoft.com/management-plane=true")}, + // MachineSKUID: to.Ptr("684E-3B16-399E"), + // OamIPv4Address: to.Ptr("192.0.2.1"), + // OamIPv6Address: to.Ptr("0:0:0:0:0:FFFF:7F00:0001"), + // OSImage: to.Ptr("v20220805e"), + // PowerState: to.Ptr(armnetworkcloud.BareMetalMachinePowerStateOn), + // ProvisioningState: to.Ptr(armnetworkcloud.BareMetalMachineProvisioningStateSucceeded), + // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), + // RackSlot: to.Ptr[int64](1), + // ReadyState: to.Ptr(armnetworkcloud.BareMetalMachineReadyStateTrue), + // RuntimeProtectionStatus: &armnetworkcloud.RuntimeProtectionStatus{ + // DefinitionsLastUpdated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-28T13:27:03.008Z"); return t}()), + // DefinitionsVersion: to.Ptr("1.2.3"), + // ScanCompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // ScanScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-01T13:00:00.000Z"); return t}()), + // ScanStartedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:00:03.008Z"); return t}()), + // }, + // SecretRotationStatus: []*armnetworkcloud.SecretRotationStatus{ + // { + // ExpirePeriodDays: to.Ptr[int64](90), + // LastRotationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // RotationPeriodDays: to.Ptr[int64](60), + // SecretArchiveReference: &armnetworkcloud.SecretArchiveReference{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // SecretName: to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff-resource-group-cluster-1679871-console-credential-manager-ffffffff"), + // SecretVersion: to.Ptr("02ab6c1f9c0f4982b0632b0d5d74a33b"), + // }, + // SecretType: to.Ptr("Bare Metal Machine Identity - console"), + // }}, + // SerialNumber: to.Ptr("BM1219XXX"), + // ServiceTag: to.Ptr("ST1219XXX"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Get.json func ExampleBareMetalMachinesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -271,25 +315,47 @@ func ExampleBareMetalMachinesClient_Get() { // Result: to.Ptr(armnetworkcloud.BareMetalMachineHardwareValidationResultPass), // }, // KubernetesNodeName: to.Ptr("node01"), - // KubernetesVersion: to.Ptr("1.21"), + // KubernetesVersion: to.Ptr("1.28.3"), + // MachineClusterVersion: to.Ptr("3.8.7"), // MachineDetails: to.Ptr("User-provided machine details."), // MachineName: to.Ptr("r01c001"), - // MachineSKUID: to.Ptr("684E-3B16-399E"), - // OamIPv4Address: to.Ptr("192.0.2.1"), - // OamIPv6Address: to.Ptr("0:0:0:0:0:FFFF:7F00:0001"), - // OSImage: to.Ptr("v20220805e"), - // PowerState: to.Ptr(armnetworkcloud.BareMetalMachinePowerStateOn), - // ProvisioningState: to.Ptr(armnetworkcloud.BareMetalMachineProvisioningStateSucceeded), - // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), - // RackSlot: to.Ptr[int64](1), - // ReadyState: to.Ptr(armnetworkcloud.BareMetalMachineReadyStateTrue), - // SerialNumber: to.Ptr("BM1219XXX"), - // ServiceTag: to.Ptr("ST1219XXX"), - // }, - // } + // MachineRoles: []*string{ + // to.Ptr("platform.afo-nc.microsoft.com/management-plane=true")}, + // MachineSKUID: to.Ptr("684E-3B16-399E"), + // OamIPv4Address: to.Ptr("192.0.2.1"), + // OamIPv6Address: to.Ptr("0:0:0:0:0:FFFF:7F00:0001"), + // OSImage: to.Ptr("v20220805e"), + // PowerState: to.Ptr(armnetworkcloud.BareMetalMachinePowerStateOn), + // ProvisioningState: to.Ptr(armnetworkcloud.BareMetalMachineProvisioningStateSucceeded), + // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), + // RackSlot: to.Ptr[int64](1), + // ReadyState: to.Ptr(armnetworkcloud.BareMetalMachineReadyStateTrue), + // RuntimeProtectionStatus: &armnetworkcloud.RuntimeProtectionStatus{ + // DefinitionsLastUpdated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-28T13:27:03.008Z"); return t}()), + // DefinitionsVersion: to.Ptr("1.2.3"), + // ScanCompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // ScanScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-01T13:00:00.000Z"); return t}()), + // ScanStartedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:00:03.008Z"); return t}()), + // }, + // SecretRotationStatus: []*armnetworkcloud.SecretRotationStatus{ + // { + // ExpirePeriodDays: to.Ptr[int64](90), + // LastRotationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // RotationPeriodDays: to.Ptr[int64](60), + // SecretArchiveReference: &armnetworkcloud.SecretArchiveReference{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // SecretName: to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff-resource-group-cluster-1679871-console-credential-manager-ffffffff"), + // SecretVersion: to.Ptr("02ab6c1f9c0f4982b0632b0d5d74a33b"), + // }, + // SecretType: to.Ptr("Bare Metal Machine Identity - console"), + // }}, + // SerialNumber: to.Ptr("BM1219XXX"), + // ServiceTag: to.Ptr("ST1219XXX"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Create.json func ExampleBareMetalMachinesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -385,25 +451,47 @@ func ExampleBareMetalMachinesClient_BeginCreateOrUpdate() { // Result: to.Ptr(armnetworkcloud.BareMetalMachineHardwareValidationResultPass), // }, // KubernetesNodeName: to.Ptr("node01"), - // KubernetesVersion: to.Ptr("1.21"), + // KubernetesVersion: to.Ptr("1.28.3"), + // MachineClusterVersion: to.Ptr("3.8.7"), // MachineDetails: to.Ptr("User-provided machine details."), // MachineName: to.Ptr("r01c001"), - // MachineSKUID: to.Ptr("684E-3B16-399E"), - // OamIPv4Address: to.Ptr("192.0.2.1"), - // OamIPv6Address: to.Ptr("0:0:0:0:0:FFFF:7F00:0001"), - // OSImage: to.Ptr("v20220805e"), - // PowerState: to.Ptr(armnetworkcloud.BareMetalMachinePowerStateOn), - // ProvisioningState: to.Ptr(armnetworkcloud.BareMetalMachineProvisioningStateSucceeded), - // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), - // RackSlot: to.Ptr[int64](1), - // ReadyState: to.Ptr(armnetworkcloud.BareMetalMachineReadyStateTrue), - // SerialNumber: to.Ptr("BM1219XXX"), - // ServiceTag: to.Ptr("ST1219XXX"), - // }, - // } + // MachineRoles: []*string{ + // to.Ptr("platform.afo-nc.microsoft.com/management-plane=true")}, + // MachineSKUID: to.Ptr("684E-3B16-399E"), + // OamIPv4Address: to.Ptr("192.0.2.1"), + // OamIPv6Address: to.Ptr("0:0:0:0:0:FFFF:7F00:0001"), + // OSImage: to.Ptr("v20220805e"), + // PowerState: to.Ptr(armnetworkcloud.BareMetalMachinePowerStateOn), + // ProvisioningState: to.Ptr(armnetworkcloud.BareMetalMachineProvisioningStateSucceeded), + // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), + // RackSlot: to.Ptr[int64](1), + // ReadyState: to.Ptr(armnetworkcloud.BareMetalMachineReadyStateTrue), + // RuntimeProtectionStatus: &armnetworkcloud.RuntimeProtectionStatus{ + // DefinitionsLastUpdated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-28T13:27:03.008Z"); return t}()), + // DefinitionsVersion: to.Ptr("1.2.3"), + // ScanCompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // ScanScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-01T13:00:00.000Z"); return t}()), + // ScanStartedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:00:03.008Z"); return t}()), + // }, + // SecretRotationStatus: []*armnetworkcloud.SecretRotationStatus{ + // { + // ExpirePeriodDays: to.Ptr[int64](90), + // LastRotationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // RotationPeriodDays: to.Ptr[int64](60), + // SecretArchiveReference: &armnetworkcloud.SecretArchiveReference{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // SecretName: to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff-resource-group-cluster-1679871-console-credential-manager-ffffffff"), + // SecretVersion: to.Ptr("02ab6c1f9c0f4982b0632b0d5d74a33b"), + // }, + // SecretType: to.Ptr("Bare Metal Machine Identity - console"), + // }}, + // SerialNumber: to.Ptr("BM1219XXX"), + // ServiceTag: to.Ptr("ST1219XXX"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Delete.json func ExampleBareMetalMachinesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -424,7 +512,7 @@ func ExampleBareMetalMachinesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Patch.json func ExampleBareMetalMachinesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -503,25 +591,47 @@ func ExampleBareMetalMachinesClient_BeginUpdate() { // Result: to.Ptr(armnetworkcloud.BareMetalMachineHardwareValidationResultPass), // }, // KubernetesNodeName: to.Ptr("node01"), - // KubernetesVersion: to.Ptr("1.21"), + // KubernetesVersion: to.Ptr("1.28.3"), + // MachineClusterVersion: to.Ptr("3.8.7"), // MachineDetails: to.Ptr("User-provided machine details."), // MachineName: to.Ptr("r01c001"), - // MachineSKUID: to.Ptr("684E-3B16-399E"), - // OamIPv4Address: to.Ptr("192.0.2.1"), - // OamIPv6Address: to.Ptr("0:0:0:0:0:FFFF:7F00:0001"), - // OSImage: to.Ptr("v20220805e"), - // PowerState: to.Ptr(armnetworkcloud.BareMetalMachinePowerStateOn), - // ProvisioningState: to.Ptr(armnetworkcloud.BareMetalMachineProvisioningStateSucceeded), - // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), - // RackSlot: to.Ptr[int64](1), - // ReadyState: to.Ptr(armnetworkcloud.BareMetalMachineReadyStateTrue), - // SerialNumber: to.Ptr("BM1219XXX"), - // ServiceTag: to.Ptr("ST1219XXX"), - // }, - // } + // MachineRoles: []*string{ + // to.Ptr("platform.afo-nc.microsoft.com/management-plane=true")}, + // MachineSKUID: to.Ptr("684E-3B16-399E"), + // OamIPv4Address: to.Ptr("192.0.2.1"), + // OamIPv6Address: to.Ptr("0:0:0:0:0:FFFF:7F00:0001"), + // OSImage: to.Ptr("v20220805e"), + // PowerState: to.Ptr(armnetworkcloud.BareMetalMachinePowerStateOn), + // ProvisioningState: to.Ptr(armnetworkcloud.BareMetalMachineProvisioningStateSucceeded), + // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), + // RackSlot: to.Ptr[int64](1), + // ReadyState: to.Ptr(armnetworkcloud.BareMetalMachineReadyStateTrue), + // RuntimeProtectionStatus: &armnetworkcloud.RuntimeProtectionStatus{ + // DefinitionsLastUpdated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-28T13:27:03.008Z"); return t}()), + // DefinitionsVersion: to.Ptr("1.2.3"), + // ScanCompletedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // ScanScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-10-01T13:00:00.000Z"); return t}()), + // ScanStartedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:00:03.008Z"); return t}()), + // }, + // SecretRotationStatus: []*armnetworkcloud.SecretRotationStatus{ + // { + // ExpirePeriodDays: to.Ptr[int64](90), + // LastRotationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // RotationPeriodDays: to.Ptr[int64](60), + // SecretArchiveReference: &armnetworkcloud.SecretArchiveReference{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // SecretName: to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff-resource-group-cluster-1679871-console-credential-manager-ffffffff"), + // SecretVersion: to.Ptr("02ab6c1f9c0f4982b0632b0d5d74a33b"), + // }, + // SecretType: to.Ptr("Bare Metal Machine Identity - console"), + // }}, + // SerialNumber: to.Ptr("BM1219XXX"), + // ServiceTag: to.Ptr("ST1219XXX"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Cordon.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Cordon.json func ExampleBareMetalMachinesClient_BeginCordon() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -545,7 +655,7 @@ func ExampleBareMetalMachinesClient_BeginCordon() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_PowerOff.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_PowerOff.json func ExampleBareMetalMachinesClient_BeginPowerOff() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -569,7 +679,7 @@ func ExampleBareMetalMachinesClient_BeginPowerOff() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Reimage.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Reimage.json func ExampleBareMetalMachinesClient_BeginReimage() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -590,7 +700,7 @@ func ExampleBareMetalMachinesClient_BeginReimage() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Replace.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Replace.json func ExampleBareMetalMachinesClient_BeginReplace() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -621,7 +731,7 @@ func ExampleBareMetalMachinesClient_BeginReplace() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Restart.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Restart.json func ExampleBareMetalMachinesClient_BeginRestart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -642,7 +752,7 @@ func ExampleBareMetalMachinesClient_BeginRestart() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunCommand.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunCommand.json func ExampleBareMetalMachinesClient_BeginRunCommand() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -669,7 +779,7 @@ func ExampleBareMetalMachinesClient_BeginRunCommand() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunDataExtracts.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunDataExtracts.json func ExampleBareMetalMachinesClient_BeginRunDataExtracts() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -699,7 +809,7 @@ func ExampleBareMetalMachinesClient_BeginRunDataExtracts() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_RunReadCommands.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_RunReadCommands.json func ExampleBareMetalMachinesClient_BeginRunReadCommands() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -736,7 +846,7 @@ func ExampleBareMetalMachinesClient_BeginRunReadCommands() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Start.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Start.json func ExampleBareMetalMachinesClient_BeginStart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -757,7 +867,7 @@ func ExampleBareMetalMachinesClient_BeginStart() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BareMetalMachines_Uncordon.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BareMetalMachines_Uncordon.json func ExampleBareMetalMachinesClient_BeginUncordon() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client.go index 60df79fb9f8e..4acf9fdb06e0 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client.go @@ -47,7 +47,7 @@ func NewBmcKeySetsClient(subscriptionID string, credential azcore.TokenCredentia // cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bmcKeySetName - The name of the baseboard management controller key set. @@ -75,7 +75,7 @@ func (client *BmcKeySetsClient) BeginCreateOrUpdate(ctx context.Context, resourc // CreateOrUpdate - Create a new baseboard management controller key set or update the existing one for the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BmcKeySetsClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, bmcKeySetName string, bmcKeySetParameters BmcKeySet, options *BmcKeySetsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "BmcKeySetsClient.BeginCreateOrUpdate" @@ -121,7 +121,7 @@ func (client *BmcKeySetsClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, bmcKeySetParameters); err != nil { @@ -133,7 +133,7 @@ func (client *BmcKeySetsClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Delete the baseboard management controller key set of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bmcKeySetName - The name of the baseboard management controller key set. @@ -159,7 +159,7 @@ func (client *BmcKeySetsClient) BeginDelete(ctx context.Context, resourceGroupNa // Delete - Delete the baseboard management controller key set of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BmcKeySetsClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, bmcKeySetName string, options *BmcKeySetsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "BmcKeySetsClient.BeginDelete" @@ -205,7 +205,7 @@ func (client *BmcKeySetsClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -214,7 +214,7 @@ func (client *BmcKeySetsClient) deleteCreateRequest(ctx context.Context, resourc // Get - Get baseboard management controller key set of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bmcKeySetName - The name of the baseboard management controller key set. @@ -265,7 +265,7 @@ func (client *BmcKeySetsClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -282,7 +282,7 @@ func (client *BmcKeySetsClient) getHandleResponse(resp *http.Response) (BmcKeySe // NewListByClusterPager - Get a list of baseboard management controller key sets for the provided cluster. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - options - BmcKeySetsClientListByClusterOptions contains the optional parameters for the BmcKeySetsClient.NewListByClusterPager @@ -330,7 +330,7 @@ func (client *BmcKeySetsClient) listByClusterCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -349,7 +349,7 @@ func (client *BmcKeySetsClient) listByClusterHandleResponse(resp *http.Response) // associated with it. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - bmcKeySetName - The name of the baseboard management controller key set. @@ -377,7 +377,7 @@ func (client *BmcKeySetsClient) BeginUpdate(ctx context.Context, resourceGroupNa // with it. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *BmcKeySetsClient) update(ctx context.Context, resourceGroupName string, clusterName string, bmcKeySetName string, bmcKeySetUpdateParameters BmcKeySetPatchParameters, options *BmcKeySetsClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "BmcKeySetsClient.BeginUpdate" @@ -423,7 +423,7 @@ func (client *BmcKeySetsClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, bmcKeySetUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client_example_test.go index ec0215d48f6f..62d519d3dc0f 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/bmckeysets_client_example_test.go @@ -20,7 +20,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_ListByCluster.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_ListByCluster.json func ExampleBmcKeySetsClient_NewListByClusterPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -68,7 +68,7 @@ func ExampleBmcKeySetsClient_NewListByClusterPager() { // Properties: &armnetworkcloud.BmcKeySetProperties{ // AzureGroupID: to.Ptr("f110271b-XXXX-4163-9b99-214d91660f0e"), // DetailedStatus: to.Ptr(armnetworkcloud.BmcKeySetDetailedStatusSomeInvalid), - // DetailedStatusMessage: to.Ptr("Inalid Azure user(s) were provided: userXYZ"), + // DetailedStatusMessage: to.Ptr("Invalid Azure user(s) were provided: userXYZ"), // Expiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-31T23:59:59.008Z"); return t}()), // LastValidation: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-12T12:00:00.008Z"); return t}()), // PrivilegeLevel: to.Ptr(armnetworkcloud.BmcKeySetPrivilegeLevelAdministrator), @@ -80,6 +80,7 @@ func ExampleBmcKeySetsClient_NewListByClusterPager() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userABC@contoso.com"), // }, // { // Description: to.Ptr("Needs access for troubleshooting as a part of the support team"), @@ -87,6 +88,7 @@ func ExampleBmcKeySetsClient_NewListByClusterPager() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userXYZ@contoso.com"), // }}, // UserListStatus: []*armnetworkcloud.KeySetUserStatus{ // { @@ -105,7 +107,7 @@ func ExampleBmcKeySetsClient_NewListByClusterPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Get.json func ExampleBmcKeySetsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -147,7 +149,7 @@ func ExampleBmcKeySetsClient_Get() { // Properties: &armnetworkcloud.BmcKeySetProperties{ // AzureGroupID: to.Ptr("f110271b-XXXX-4163-9b99-214d91660f0e"), // DetailedStatus: to.Ptr(armnetworkcloud.BmcKeySetDetailedStatusSomeInvalid), - // DetailedStatusMessage: to.Ptr("Inalid Azure user(s) were provided: userXYZ"), + // DetailedStatusMessage: to.Ptr("Invalid Azure user(s) were provided: userXYZ"), // Expiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-31T23:59:59.008Z"); return t}()), // LastValidation: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-12T12:00:00.008Z"); return t}()), // PrivilegeLevel: to.Ptr(armnetworkcloud.BmcKeySetPrivilegeLevelAdministrator), @@ -159,6 +161,7 @@ func ExampleBmcKeySetsClient_Get() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userABC@contoso.com"), // }, // { // Description: to.Ptr("Needs access for troubleshooting as a part of the support team"), @@ -166,6 +169,7 @@ func ExampleBmcKeySetsClient_Get() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userXYZ@contoso.com"), // }}, // UserListStatus: []*armnetworkcloud.KeySetUserStatus{ // { @@ -182,7 +186,7 @@ func ExampleBmcKeySetsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Create.json func ExampleBmcKeySetsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -214,6 +218,7 @@ func ExampleBmcKeySetsClient_BeginCreateOrUpdate() { SSHPublicKey: &armnetworkcloud.SSHPublicKey{ KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), }, + UserPrincipalName: to.Ptr("userABC@contoso.com"), }, { Description: to.Ptr("Needs access for troubleshooting as a part of the support team"), @@ -221,6 +226,7 @@ func ExampleBmcKeySetsClient_BeginCreateOrUpdate() { SSHPublicKey: &armnetworkcloud.SSHPublicKey{ KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), }, + UserPrincipalName: to.Ptr("userABC@contoso.com"), }}, }, }, nil) @@ -258,7 +264,7 @@ func ExampleBmcKeySetsClient_BeginCreateOrUpdate() { // Properties: &armnetworkcloud.BmcKeySetProperties{ // AzureGroupID: to.Ptr("f110271b-XXXX-4163-9b99-214d91660f0e"), // DetailedStatus: to.Ptr(armnetworkcloud.BmcKeySetDetailedStatusSomeInvalid), - // DetailedStatusMessage: to.Ptr("Inalid Azure user(s) were provided: userXYZ"), + // DetailedStatusMessage: to.Ptr("Invalid Azure user(s) were provided: userXYZ"), // Expiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-31T23:59:59.008Z"); return t}()), // LastValidation: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-12T12:00:00.008Z"); return t}()), // PrivilegeLevel: to.Ptr(armnetworkcloud.BmcKeySetPrivilegeLevelAdministrator), @@ -270,6 +276,7 @@ func ExampleBmcKeySetsClient_BeginCreateOrUpdate() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userABC@contoso.com"), // }, // { // Description: to.Ptr("Needs access for troubleshooting as a part of the support team"), @@ -277,6 +284,7 @@ func ExampleBmcKeySetsClient_BeginCreateOrUpdate() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userXYZ@contoso.com"), // }}, // UserListStatus: []*armnetworkcloud.KeySetUserStatus{ // { @@ -293,7 +301,7 @@ func ExampleBmcKeySetsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Delete.json func ExampleBmcKeySetsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -314,7 +322,7 @@ func ExampleBmcKeySetsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/BmcKeySets_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/BmcKeySets_Patch.json func ExampleBmcKeySetsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -335,6 +343,7 @@ func ExampleBmcKeySetsClient_BeginUpdate() { SSHPublicKey: &armnetworkcloud.SSHPublicKey{ KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), }, + UserPrincipalName: to.Ptr("userABC@contoso.com"), }, { Description: to.Ptr("Needs access for troubleshooting as a part of the support team"), @@ -342,6 +351,7 @@ func ExampleBmcKeySetsClient_BeginUpdate() { SSHPublicKey: &armnetworkcloud.SSHPublicKey{ KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), }, + UserPrincipalName: to.Ptr("userABC@contoso.com"), }}, }, Tags: map[string]*string{ @@ -383,7 +393,7 @@ func ExampleBmcKeySetsClient_BeginUpdate() { // Properties: &armnetworkcloud.BmcKeySetProperties{ // AzureGroupID: to.Ptr("f110271b-XXXX-4163-9b99-214d91660f0e"), // DetailedStatus: to.Ptr(armnetworkcloud.BmcKeySetDetailedStatusSomeInvalid), - // DetailedStatusMessage: to.Ptr("Inalid Azure user(s) were provided: userXYZ"), + // DetailedStatusMessage: to.Ptr("Invalid Azure user(s) were provided: userXYZ"), // Expiration: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-31T23:59:59.008Z"); return t}()), // LastValidation: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-12-12T12:00:00.008Z"); return t}()), // PrivilegeLevel: to.Ptr(armnetworkcloud.BmcKeySetPrivilegeLevelAdministrator), @@ -395,6 +405,7 @@ func ExampleBmcKeySetsClient_BeginUpdate() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userABC@contoso.com"), // }, // { // Description: to.Ptr("Needs access for troubleshooting as a part of the support team"), @@ -402,6 +413,7 @@ func ExampleBmcKeySetsClient_BeginUpdate() { // SSHPublicKey: &armnetworkcloud.SSHPublicKey{ // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), // }, + // UserPrincipalName: to.Ptr("userXYZ@contoso.com"), // }}, // UserListStatus: []*armnetworkcloud.KeySetUserStatus{ // { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/client_factory.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/client_factory.go index e9c7b4c3e412..e8bf4a37f815 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/client_factory.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/client_factory.go @@ -17,8 +17,7 @@ import ( // Don't use this type directly, use NewClientFactory instead. type ClientFactory struct { subscriptionID string - credential azcore.TokenCredential - options *arm.ClientOptions + internal *arm.Client } // NewClientFactory creates a new instance of ClientFactory with the specified values. @@ -27,126 +26,171 @@ type ClientFactory struct { // - credential - used to authorize requests. Usually a credential from azidentity. // - options - pass nil to accept the default values. func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) { - _, err := arm.NewClient(moduleName, moduleVersion, credential, options) + internal, err := arm.NewClient(moduleName, moduleVersion, credential, options) if err != nil { return nil, err } return &ClientFactory{ - subscriptionID: subscriptionID, credential: credential, - options: options.Clone(), + subscriptionID: subscriptionID, + internal: internal, }, nil } // NewAgentPoolsClient creates a new instance of AgentPoolsClient. func (c *ClientFactory) NewAgentPoolsClient() *AgentPoolsClient { - subClient, _ := NewAgentPoolsClient(c.subscriptionID, c.credential, c.options) - return subClient + return &AgentPoolsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewBareMetalMachineKeySetsClient creates a new instance of BareMetalMachineKeySetsClient. func (c *ClientFactory) NewBareMetalMachineKeySetsClient() *BareMetalMachineKeySetsClient { - subClient, _ := NewBareMetalMachineKeySetsClient(c.subscriptionID, c.credential, c.options) - return subClient + return &BareMetalMachineKeySetsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewBareMetalMachinesClient creates a new instance of BareMetalMachinesClient. func (c *ClientFactory) NewBareMetalMachinesClient() *BareMetalMachinesClient { - subClient, _ := NewBareMetalMachinesClient(c.subscriptionID, c.credential, c.options) - return subClient + return &BareMetalMachinesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewBmcKeySetsClient creates a new instance of BmcKeySetsClient. func (c *ClientFactory) NewBmcKeySetsClient() *BmcKeySetsClient { - subClient, _ := NewBmcKeySetsClient(c.subscriptionID, c.credential, c.options) - return subClient + return &BmcKeySetsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewCloudServicesNetworksClient creates a new instance of CloudServicesNetworksClient. func (c *ClientFactory) NewCloudServicesNetworksClient() *CloudServicesNetworksClient { - subClient, _ := NewCloudServicesNetworksClient(c.subscriptionID, c.credential, c.options) - return subClient + return &CloudServicesNetworksClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewClusterManagersClient creates a new instance of ClusterManagersClient. func (c *ClientFactory) NewClusterManagersClient() *ClusterManagersClient { - subClient, _ := NewClusterManagersClient(c.subscriptionID, c.credential, c.options) - return subClient + return &ClusterManagersClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewClustersClient creates a new instance of ClustersClient. func (c *ClientFactory) NewClustersClient() *ClustersClient { - subClient, _ := NewClustersClient(c.subscriptionID, c.credential, c.options) - return subClient + return &ClustersClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewConsolesClient creates a new instance of ConsolesClient. func (c *ClientFactory) NewConsolesClient() *ConsolesClient { - subClient, _ := NewConsolesClient(c.subscriptionID, c.credential, c.options) - return subClient + return &ConsolesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } +} + +// NewKubernetesClusterFeaturesClient creates a new instance of KubernetesClusterFeaturesClient. +func (c *ClientFactory) NewKubernetesClusterFeaturesClient() *KubernetesClusterFeaturesClient { + return &KubernetesClusterFeaturesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewKubernetesClustersClient creates a new instance of KubernetesClustersClient. func (c *ClientFactory) NewKubernetesClustersClient() *KubernetesClustersClient { - subClient, _ := NewKubernetesClustersClient(c.subscriptionID, c.credential, c.options) - return subClient + return &KubernetesClustersClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewL2NetworksClient creates a new instance of L2NetworksClient. func (c *ClientFactory) NewL2NetworksClient() *L2NetworksClient { - subClient, _ := NewL2NetworksClient(c.subscriptionID, c.credential, c.options) - return subClient + return &L2NetworksClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewL3NetworksClient creates a new instance of L3NetworksClient. func (c *ClientFactory) NewL3NetworksClient() *L3NetworksClient { - subClient, _ := NewL3NetworksClient(c.subscriptionID, c.credential, c.options) - return subClient + return &L3NetworksClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewMetricsConfigurationsClient creates a new instance of MetricsConfigurationsClient. func (c *ClientFactory) NewMetricsConfigurationsClient() *MetricsConfigurationsClient { - subClient, _ := NewMetricsConfigurationsClient(c.subscriptionID, c.credential, c.options) - return subClient + return &MetricsConfigurationsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewOperationsClient creates a new instance of OperationsClient. func (c *ClientFactory) NewOperationsClient() *OperationsClient { - subClient, _ := NewOperationsClient(c.credential, c.options) - return subClient + return &OperationsClient{ + internal: c.internal, + } } // NewRackSKUsClient creates a new instance of RackSKUsClient. func (c *ClientFactory) NewRackSKUsClient() *RackSKUsClient { - subClient, _ := NewRackSKUsClient(c.subscriptionID, c.credential, c.options) - return subClient + return &RackSKUsClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewRacksClient creates a new instance of RacksClient. func (c *ClientFactory) NewRacksClient() *RacksClient { - subClient, _ := NewRacksClient(c.subscriptionID, c.credential, c.options) - return subClient + return &RacksClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewStorageAppliancesClient creates a new instance of StorageAppliancesClient. func (c *ClientFactory) NewStorageAppliancesClient() *StorageAppliancesClient { - subClient, _ := NewStorageAppliancesClient(c.subscriptionID, c.credential, c.options) - return subClient + return &StorageAppliancesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewTrunkedNetworksClient creates a new instance of TrunkedNetworksClient. func (c *ClientFactory) NewTrunkedNetworksClient() *TrunkedNetworksClient { - subClient, _ := NewTrunkedNetworksClient(c.subscriptionID, c.credential, c.options) - return subClient + return &TrunkedNetworksClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewVirtualMachinesClient creates a new instance of VirtualMachinesClient. func (c *ClientFactory) NewVirtualMachinesClient() *VirtualMachinesClient { - subClient, _ := NewVirtualMachinesClient(c.subscriptionID, c.credential, c.options) - return subClient + return &VirtualMachinesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } // NewVolumesClient creates a new instance of VolumesClient. func (c *ClientFactory) NewVolumesClient() *VolumesClient { - subClient, _ := NewVolumesClient(c.subscriptionID, c.credential, c.options) - return subClient + return &VolumesClient{ + subscriptionID: c.subscriptionID, + internal: c.internal, + } } diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client.go index 3fa3e32aa6b7..f535e7d44482 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client.go @@ -46,7 +46,7 @@ func NewCloudServicesNetworksClient(subscriptionID string, credential azcore.Tok // BeginCreateOrUpdate - Create a new cloud services network or update the properties of the existing cloud services network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - cloudServicesNetworkName - The name of the cloud services network. // - cloudServicesNetworkParameters - The request body. @@ -73,7 +73,7 @@ func (client *CloudServicesNetworksClient) BeginCreateOrUpdate(ctx context.Conte // CreateOrUpdate - Create a new cloud services network or update the properties of the existing cloud services network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *CloudServicesNetworksClient) createOrUpdate(ctx context.Context, resourceGroupName string, cloudServicesNetworkName string, cloudServicesNetworkParameters CloudServicesNetwork, options *CloudServicesNetworksClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "CloudServicesNetworksClient.BeginCreateOrUpdate" @@ -115,7 +115,7 @@ func (client *CloudServicesNetworksClient) createOrUpdateCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, cloudServicesNetworkParameters); err != nil { @@ -127,7 +127,7 @@ func (client *CloudServicesNetworksClient) createOrUpdateCreateRequest(ctx conte // BeginDelete - Delete the provided cloud services network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - cloudServicesNetworkName - The name of the cloud services network. // - options - CloudServicesNetworksClientBeginDeleteOptions contains the optional parameters for the CloudServicesNetworksClient.BeginDelete @@ -153,7 +153,7 @@ func (client *CloudServicesNetworksClient) BeginDelete(ctx context.Context, reso // Delete - Delete the provided cloud services network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *CloudServicesNetworksClient) deleteOperation(ctx context.Context, resourceGroupName string, cloudServicesNetworkName string, options *CloudServicesNetworksClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "CloudServicesNetworksClient.BeginDelete" @@ -195,7 +195,7 @@ func (client *CloudServicesNetworksClient) deleteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -204,7 +204,7 @@ func (client *CloudServicesNetworksClient) deleteCreateRequest(ctx context.Conte // Get - Get properties of the provided cloud services network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - cloudServicesNetworkName - The name of the cloud services network. // - options - CloudServicesNetworksClientGetOptions contains the optional parameters for the CloudServicesNetworksClient.Get @@ -251,7 +251,7 @@ func (client *CloudServicesNetworksClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -268,7 +268,7 @@ func (client *CloudServicesNetworksClient) getHandleResponse(resp *http.Response // NewListByResourceGroupPager - Get a list of cloud services networks in the provided resource group. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - CloudServicesNetworksClientListByResourceGroupOptions contains the optional parameters for the CloudServicesNetworksClient.NewListByResourceGroupPager // method. @@ -311,7 +311,7 @@ func (client *CloudServicesNetworksClient) listByResourceGroupCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -328,7 +328,7 @@ func (client *CloudServicesNetworksClient) listByResourceGroupHandleResponse(res // NewListBySubscriptionPager - Get a list of cloud services networks in the provided subscription. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - options - CloudServicesNetworksClientListBySubscriptionOptions contains the optional parameters for the CloudServicesNetworksClient.NewListBySubscriptionPager // method. func (client *CloudServicesNetworksClient) NewListBySubscriptionPager(options *CloudServicesNetworksClientListBySubscriptionOptions) *runtime.Pager[CloudServicesNetworksClientListBySubscriptionResponse] { @@ -366,7 +366,7 @@ func (client *CloudServicesNetworksClient) listBySubscriptionCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -385,7 +385,7 @@ func (client *CloudServicesNetworksClient) listBySubscriptionHandleResponse(resp // and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - cloudServicesNetworkName - The name of the cloud services network. // - cloudServicesNetworkUpdateParameters - The request body. @@ -413,7 +413,7 @@ func (client *CloudServicesNetworksClient) BeginUpdate(ctx context.Context, reso // tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *CloudServicesNetworksClient) update(ctx context.Context, resourceGroupName string, cloudServicesNetworkName string, cloudServicesNetworkUpdateParameters CloudServicesNetworkPatchParameters, options *CloudServicesNetworksClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "CloudServicesNetworksClient.BeginUpdate" @@ -455,7 +455,7 @@ func (client *CloudServicesNetworksClient) updateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, cloudServicesNetworkUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client_example_test.go index dd96cf00ea87..ab045faa4273 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/cloudservicesnetworks_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_ListBySubscription.json func ExampleCloudServicesNetworksClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -69,7 +69,7 @@ func ExampleCloudServicesNetworksClient_NewListBySubscriptionPager() { // Category: to.Ptr("azure-resource-management"), // Endpoints: []*armnetworkcloud.EndpointDependency{ // { - // DomainName: to.Ptr("https://storageaccountex.blob.core.windows.net"), + // DomainName: to.Ptr("storageaccountex.blob.core.windows.net"), // Port: to.Ptr[int64](443), // }}, // }}, @@ -84,7 +84,7 @@ func ExampleCloudServicesNetworksClient_NewListBySubscriptionPager() { // Category: to.Ptr("azure-resource-management"), // Endpoints: []*armnetworkcloud.EndpointDependency{ // { - // DomainName: to.Ptr("https://storageaccountex.blob.core.windows.net"), + // DomainName: to.Ptr("storageaccountex.blob.core.windows.net"), // Port: to.Ptr[int64](443), // }}, // }}, @@ -96,7 +96,7 @@ func ExampleCloudServicesNetworksClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_ListByResourceGroup.json func ExampleCloudServicesNetworksClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -147,7 +147,7 @@ func ExampleCloudServicesNetworksClient_NewListByResourceGroupPager() { // Category: to.Ptr("azure-resource-management"), // Endpoints: []*armnetworkcloud.EndpointDependency{ // { - // DomainName: to.Ptr("https://storageaccountex.blob.core.windows.net"), + // DomainName: to.Ptr("storageaccountex.blob.core.windows.net"), // Port: to.Ptr[int64](443), // }}, // }}, @@ -162,7 +162,7 @@ func ExampleCloudServicesNetworksClient_NewListByResourceGroupPager() { // Category: to.Ptr("azure-resource-management"), // Endpoints: []*armnetworkcloud.EndpointDependency{ // { - // DomainName: to.Ptr("https://storageaccountex.blob.core.windows.net"), + // DomainName: to.Ptr("storageaccountex.blob.core.windows.net"), // Port: to.Ptr[int64](443), // }}, // }}, @@ -174,7 +174,7 @@ func ExampleCloudServicesNetworksClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Get.json func ExampleCloudServicesNetworksClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -219,7 +219,7 @@ func ExampleCloudServicesNetworksClient_Get() { // Category: to.Ptr("azure-resource-management"), // Endpoints: []*armnetworkcloud.EndpointDependency{ // { - // DomainName: to.Ptr("https://storageaccountex.blob.core.windows.net"), + // DomainName: to.Ptr("storageaccountex.blob.core.windows.net"), // Port: to.Ptr[int64](443), // }}, // }}, @@ -234,7 +234,7 @@ func ExampleCloudServicesNetworksClient_Get() { // Category: to.Ptr("azure-resource-management"), // Endpoints: []*armnetworkcloud.EndpointDependency{ // { - // DomainName: to.Ptr("https://storageaccountex.blob.core.windows.net"), + // DomainName: to.Ptr("storageaccountex.blob.core.windows.net"), // Port: to.Ptr[int64](443), // }}, // }}, @@ -244,7 +244,7 @@ func ExampleCloudServicesNetworksClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Create.json func ExampleCloudServicesNetworksClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -271,7 +271,7 @@ func ExampleCloudServicesNetworksClient_BeginCreateOrUpdate() { Category: to.Ptr("azure-resource-management"), Endpoints: []*armnetworkcloud.EndpointDependency{ { - DomainName: to.Ptr("https://storageaccountex.blob.core.windows.net"), + DomainName: to.Ptr("storageaccountex.blob.core.windows.net"), Port: to.Ptr[int64](443), }}, }}, @@ -315,7 +315,7 @@ func ExampleCloudServicesNetworksClient_BeginCreateOrUpdate() { // Category: to.Ptr("azure-resource-management"), // Endpoints: []*armnetworkcloud.EndpointDependency{ // { - // DomainName: to.Ptr("https://storageaccountex.blob.core.windows.net"), + // DomainName: to.Ptr("storageaccountex.blob.core.windows.net"), // Port: to.Ptr[int64](443), // }}, // }}, @@ -330,7 +330,7 @@ func ExampleCloudServicesNetworksClient_BeginCreateOrUpdate() { // Category: to.Ptr("azure-resource-management"), // Endpoints: []*armnetworkcloud.EndpointDependency{ // { - // DomainName: to.Ptr("https://storageaccountex.blob.core.windows.net"), + // DomainName: to.Ptr("storageaccountex.blob.core.windows.net"), // Port: to.Ptr[int64](443), // }}, // }}, @@ -340,7 +340,7 @@ func ExampleCloudServicesNetworksClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Delete.json func ExampleCloudServicesNetworksClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -361,7 +361,7 @@ func ExampleCloudServicesNetworksClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/CloudServicesNetworks_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/CloudServicesNetworks_Patch.json func ExampleCloudServicesNetworksClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -379,7 +379,7 @@ func ExampleCloudServicesNetworksClient_BeginUpdate() { Category: to.Ptr("azure-resource-management"), Endpoints: []*armnetworkcloud.EndpointDependency{ { - DomainName: to.Ptr("https://storageaccountex.blob.core.windows.net"), + DomainName: to.Ptr("storageaccountex.blob.core.windows.net"), Port: to.Ptr[int64](443), }}, }}, @@ -427,7 +427,7 @@ func ExampleCloudServicesNetworksClient_BeginUpdate() { // Category: to.Ptr("azure-resource-management"), // Endpoints: []*armnetworkcloud.EndpointDependency{ // { - // DomainName: to.Ptr("https://storageaccountex.blob.core.windows.net"), + // DomainName: to.Ptr("storageaccountex.blob.core.windows.net"), // Port: to.Ptr[int64](443), // }}, // }}, @@ -442,7 +442,7 @@ func ExampleCloudServicesNetworksClient_BeginUpdate() { // Category: to.Ptr("azure-resource-management"), // Endpoints: []*armnetworkcloud.EndpointDependency{ // { - // DomainName: to.Ptr("https://storageaccountex.blob.core.windows.net"), + // DomainName: to.Ptr("storageaccountex.blob.core.windows.net"), // Port: to.Ptr[int64](443), // }}, // }}, diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client.go index e66bd4056550..093367e9cc4e 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client.go @@ -46,7 +46,7 @@ func NewClusterManagersClient(subscriptionID string, credential azcore.TokenCred // BeginCreateOrUpdate - Create a new cluster manager or update properties of the cluster manager if it exists. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterManagerName - The name of the cluster manager. // - clusterManagerParameters - The request body. @@ -73,7 +73,7 @@ func (client *ClusterManagersClient) BeginCreateOrUpdate(ctx context.Context, re // CreateOrUpdate - Create a new cluster manager or update properties of the cluster manager if it exists. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *ClusterManagersClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterManagerName string, clusterManagerParameters ClusterManager, options *ClusterManagersClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "ClusterManagersClient.BeginCreateOrUpdate" @@ -115,7 +115,7 @@ func (client *ClusterManagersClient) createOrUpdateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, clusterManagerParameters); err != nil { @@ -127,7 +127,7 @@ func (client *ClusterManagersClient) createOrUpdateCreateRequest(ctx context.Con // BeginDelete - Delete the provided cluster manager. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterManagerName - The name of the cluster manager. // - options - ClusterManagersClientBeginDeleteOptions contains the optional parameters for the ClusterManagersClient.BeginDelete @@ -153,7 +153,7 @@ func (client *ClusterManagersClient) BeginDelete(ctx context.Context, resourceGr // Delete - Delete the provided cluster manager. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *ClusterManagersClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterManagerName string, options *ClusterManagersClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "ClusterManagersClient.BeginDelete" @@ -195,7 +195,7 @@ func (client *ClusterManagersClient) deleteCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -204,7 +204,7 @@ func (client *ClusterManagersClient) deleteCreateRequest(ctx context.Context, re // Get - Get the properties of the provided cluster manager. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterManagerName - The name of the cluster manager. // - options - ClusterManagersClientGetOptions contains the optional parameters for the ClusterManagersClient.Get method. @@ -250,7 +250,7 @@ func (client *ClusterManagersClient) getCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -267,7 +267,7 @@ func (client *ClusterManagersClient) getHandleResponse(resp *http.Response) (Clu // NewListByResourceGroupPager - Get a list of cluster managers in the provided resource group. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - ClusterManagersClientListByResourceGroupOptions contains the optional parameters for the ClusterManagersClient.NewListByResourceGroupPager // method. @@ -310,7 +310,7 @@ func (client *ClusterManagersClient) listByResourceGroupCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -327,7 +327,7 @@ func (client *ClusterManagersClient) listByResourceGroupHandleResponse(resp *htt // NewListBySubscriptionPager - Get a list of cluster managers in the provided subscription. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - options - ClusterManagersClientListBySubscriptionOptions contains the optional parameters for the ClusterManagersClient.NewListBySubscriptionPager // method. func (client *ClusterManagersClient) NewListBySubscriptionPager(options *ClusterManagersClientListBySubscriptionOptions) *runtime.Pager[ClusterManagersClientListBySubscriptionResponse] { @@ -365,7 +365,7 @@ func (client *ClusterManagersClient) listBySubscriptionCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -384,7 +384,7 @@ func (client *ClusterManagersClient) listBySubscriptionHandleResponse(resp *http // and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterManagerName - The name of the cluster manager. // - clusterManagerUpdateParameters - The request body. @@ -431,7 +431,7 @@ func (client *ClusterManagersClient) updateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, clusterManagerUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client_example_test.go index e90a625d591d..6049cf64a5df 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/clustermanagers_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_ListBySubscription.json func ExampleClusterManagersClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -59,6 +59,11 @@ func ExampleClusterManagersClient_NewListBySubscriptionPager() { // "key1": to.Ptr("myvalue1"), // "key2": to.Ptr("myvalue2"), // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("321e7654-e89b-12d3-a456-426655449999"), + // TenantID: to.Ptr("199e9999-e89b-12d3-a456-426655441111"), + // }, // Properties: &armnetworkcloud.ClusterManagerProperties{ // AnalyticsWorkspaceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName"), // ClusterVersions: []*armnetworkcloud.ClusterAvailableVersion{ @@ -88,7 +93,7 @@ func ExampleClusterManagersClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_ListByResourceGroup.json func ExampleClusterManagersClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -129,6 +134,11 @@ func ExampleClusterManagersClient_NewListByResourceGroupPager() { // "key1": to.Ptr("myvalue1"), // "key2": to.Ptr("myvalue2"), // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("321e7654-e89b-12d3-a456-426655449999"), + // TenantID: to.Ptr("199e9999-e89b-12d3-a456-426655441111"), + // }, // Properties: &armnetworkcloud.ClusterManagerProperties{ // AnalyticsWorkspaceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName"), // ClusterVersions: []*armnetworkcloud.ClusterAvailableVersion{ @@ -158,7 +168,7 @@ func ExampleClusterManagersClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Get.json func ExampleClusterManagersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -193,6 +203,11 @@ func ExampleClusterManagersClient_Get() { // "key1": to.Ptr("myvalue1"), // "key2": to.Ptr("myvalue2"), // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("321e7654-e89b-12d3-a456-426655449999"), + // TenantID: to.Ptr("199e9999-e89b-12d3-a456-426655441111"), + // }, // Properties: &armnetworkcloud.ClusterManagerProperties{ // AnalyticsWorkspaceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName"), // ClusterVersions: []*armnetworkcloud.ClusterAvailableVersion{ @@ -220,8 +235,8 @@ func ExampleClusterManagersClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Create.json -func ExampleClusterManagersClient_BeginCreateOrUpdate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Create.json +func ExampleClusterManagersClient_BeginCreateOrUpdate_createOrUpdateClusterManager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -237,6 +252,9 @@ func ExampleClusterManagersClient_BeginCreateOrUpdate() { "key1": to.Ptr("myvalue1"), "key2": to.Ptr("myvalue2"), }, + Identity: &armnetworkcloud.ManagedServiceIdentity{ + Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeSystemAssigned), + }, Properties: &armnetworkcloud.ClusterManagerProperties{ AnalyticsWorkspaceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName"), FabricControllerID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName"), @@ -273,6 +291,11 @@ func ExampleClusterManagersClient_BeginCreateOrUpdate() { // "key1": to.Ptr("myvalue1"), // "key2": to.Ptr("myvalue2"), // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("321e7654-e89b-12d3-a456-426655449999"), + // TenantID: to.Ptr("199e9999-e89b-12d3-a456-426655441111"), + // }, // Properties: &armnetworkcloud.ClusterManagerProperties{ // AnalyticsWorkspaceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName"), // ClusterVersions: []*armnetworkcloud.ClusterAvailableVersion{ @@ -300,7 +323,102 @@ func ExampleClusterManagersClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Create_Uami.json +func ExampleClusterManagersClient_BeginCreateOrUpdate_createOrUpdateClusterManagerWithUserAssignedIdentity() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armnetworkcloud.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewClusterManagersClient().BeginCreateOrUpdate(ctx, "resourceGroupName", "clusterManagerName", armnetworkcloud.ClusterManager{ + Location: to.Ptr("location"), + Tags: map[string]*string{ + "key1": to.Ptr("myvalue1"), + "key2": to.Ptr("myvalue2"), + }, + Identity: &armnetworkcloud.ManagedServiceIdentity{ + Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1": {}, + }, + }, + Properties: &armnetworkcloud.ClusterManagerProperties{ + AnalyticsWorkspaceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName"), + FabricControllerID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName"), + ManagedResourceGroupConfiguration: &armnetworkcloud.ManagedResourceGroupConfiguration{ + Name: to.Ptr("my-managed-rg"), + Location: to.Ptr("East US"), + }, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + res, err := poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ClusterManager = armnetworkcloud.ClusterManager{ + // Name: to.Ptr("clusterManagerName"), + // Type: to.Ptr("Microsoft.NetworkCloud/clusterManagers"), + // ID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusterManagers/clusterManagerName"), + // SystemData: &armnetworkcloud.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:27:03.008Z"); return t}()), + // CreatedBy: to.Ptr("identityA"), + // CreatedByType: to.Ptr(armnetworkcloud.CreatedByTypeApplication), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:29:03.001Z"); return t}()), + // LastModifiedBy: to.Ptr("identityB"), + // LastModifiedByType: to.Ptr(armnetworkcloud.CreatedByTypeUser), + // }, + // Location: to.Ptr("location"), + // Tags: map[string]*string{ + // "key1": to.Ptr("myvalue1"), + // "key2": to.Ptr("myvalue2"), + // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + // "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1": &armnetworkcloud.UserAssignedIdentity{ + // ClientID: to.Ptr("200e0000-e89b-12d3-a456-426655440000"), + // PrincipalID: to.Ptr("321e7654-e89b-12d3-a456-426655449999"), + // }, + // }, + // }, + // Properties: &armnetworkcloud.ClusterManagerProperties{ + // AnalyticsWorkspaceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName"), + // ClusterVersions: []*armnetworkcloud.ClusterAvailableVersion{ + // { + // SupportExpiryDate: to.Ptr("2023-04-29"), + // TargetClusterVersion: to.Ptr("1.0.0"), + // }, + // { + // SupportExpiryDate: to.Ptr("2025-01-01"), + // TargetClusterVersion: to.Ptr("1.0.2"), + // }}, + // DetailedStatus: to.Ptr(armnetworkcloud.ClusterManagerDetailedStatusAvailable), + // DetailedStatusMessage: to.Ptr("cluster manager is up and running"), + // FabricControllerID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabricControllers/fabricControllerName"), + // ManagedResourceGroupConfiguration: &armnetworkcloud.ManagedResourceGroupConfiguration{ + // Name: to.Ptr("my-managed-rg"), + // Location: to.Ptr("East US"), + // }, + // ManagerExtendedLocation: &armnetworkcloud.ExtendedLocation{ + // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName"), + // Type: to.Ptr("CustomLocation"), + // }, + // ProvisioningState: to.Ptr(armnetworkcloud.ClusterManagerProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Delete.json func ExampleClusterManagersClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -321,7 +439,7 @@ func ExampleClusterManagersClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterManagers_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterManagers_Patch.json func ExampleClusterManagersClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -333,6 +451,13 @@ func ExampleClusterManagersClient_Update() { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewClusterManagersClient().Update(ctx, "resourceGroupName", "clusterManagerName", armnetworkcloud.ClusterManagerPatchParameters{ + Identity: &armnetworkcloud.ManagedServiceIdentity{ + Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1": nil, + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2": {}, + }, + }, Tags: map[string]*string{ "key1": to.Ptr("myvalue1"), "key2": to.Ptr("myvalue2"), @@ -361,6 +486,15 @@ func ExampleClusterManagersClient_Update() { // "key1": to.Ptr("myvalue1"), // "key2": to.Ptr("myvalue2"), // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + // "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2": &armnetworkcloud.UserAssignedIdentity{ + // ClientID: to.Ptr("200e0000-e89b-12d3-a456-426655440000"), + // PrincipalID: to.Ptr("321e7654-e89b-12d3-a456-426655449999"), + // }, + // }, + // }, // Properties: &armnetworkcloud.ClusterManagerProperties{ // AnalyticsWorkspaceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName"), // ClusterVersions: []*armnetworkcloud.ClusterAvailableVersion{ diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client.go index 2c9786f60862..d29574cef86c 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client.go @@ -43,10 +43,93 @@ func NewClustersClient(subscriptionID string, credential azcore.TokenCredential, return client, nil } +// BeginContinueUpdateVersion - Trigger the continuation of an update for a cluster with a matching update strategy that has +// paused after completing a segment of the update. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-06-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - The name of the cluster. +// - clusterContinueUpdateVersionParameters - The request body. +// - options - ClustersClientBeginContinueUpdateVersionOptions contains the optional parameters for the ClustersClient.BeginContinueUpdateVersion +// method. +func (client *ClustersClient) BeginContinueUpdateVersion(ctx context.Context, resourceGroupName string, clusterName string, clusterContinueUpdateVersionParameters ClusterContinueUpdateVersionParameters, options *ClustersClientBeginContinueUpdateVersionOptions) (*runtime.Poller[ClustersClientContinueUpdateVersionResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.continueUpdateVersion(ctx, resourceGroupName, clusterName, clusterContinueUpdateVersionParameters, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ClustersClientContinueUpdateVersionResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ClustersClientContinueUpdateVersionResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// ContinueUpdateVersion - Trigger the continuation of an update for a cluster with a matching update strategy that has paused +// after completing a segment of the update. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-06-01-preview +func (client *ClustersClient) continueUpdateVersion(ctx context.Context, resourceGroupName string, clusterName string, clusterContinueUpdateVersionParameters ClusterContinueUpdateVersionParameters, options *ClustersClientBeginContinueUpdateVersionOptions) (*http.Response, error) { + var err error + const operationName = "ClustersClient.BeginContinueUpdateVersion" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.continueUpdateVersionCreateRequest(ctx, resourceGroupName, clusterName, clusterContinueUpdateVersionParameters, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// continueUpdateVersionCreateRequest creates the ContinueUpdateVersion request. +func (client *ClustersClient) continueUpdateVersionCreateRequest(ctx context.Context, resourceGroupName string, clusterName string, clusterContinueUpdateVersionParameters ClusterContinueUpdateVersionParameters, options *ClustersClientBeginContinueUpdateVersionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/continueUpdateVersion" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if clusterName == "" { + return nil, errors.New("parameter clusterName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{clusterName}", url.PathEscape(clusterName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-06-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, clusterContinueUpdateVersionParameters); err != nil { + return nil, err + } + return req, nil +} + // BeginCreateOrUpdate - Create a new cluster or update the properties of the cluster if it exists. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - clusterParameters - The request body. @@ -73,7 +156,7 @@ func (client *ClustersClient) BeginCreateOrUpdate(ctx context.Context, resourceG // CreateOrUpdate - Create a new cluster or update the properties of the cluster if it exists. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *ClustersClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, clusterParameters Cluster, options *ClustersClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "ClustersClient.BeginCreateOrUpdate" @@ -115,7 +198,7 @@ func (client *ClustersClient) createOrUpdateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, clusterParameters); err != nil { @@ -127,7 +210,7 @@ func (client *ClustersClient) createOrUpdateCreateRequest(ctx context.Context, r // BeginDelete - Delete the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - options - ClustersClientBeginDeleteOptions contains the optional parameters for the ClustersClient.BeginDelete method. @@ -152,7 +235,7 @@ func (client *ClustersClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Delete the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *ClustersClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "ClustersClient.BeginDelete" @@ -194,16 +277,16 @@ func (client *ClustersClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// BeginDeploy - Deploy the cluster to the provided rack. +// BeginDeploy - Deploy the cluster using the rack configuration provided during creation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - options - ClustersClientBeginDeployOptions contains the optional parameters for the ClustersClient.BeginDeploy method. @@ -225,10 +308,10 @@ func (client *ClustersClient) BeginDeploy(ctx context.Context, resourceGroupName } } -// Deploy - Deploy the cluster to the provided rack. +// Deploy - Deploy the cluster using the rack configuration provided during creation. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *ClustersClient) deploy(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginDeployOptions) (*http.Response, error) { var err error const operationName = "ClustersClient.BeginDeploy" @@ -243,7 +326,7 @@ func (client *ClustersClient) deploy(ctx context.Context, resourceGroupName stri if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -270,7 +353,7 @@ func (client *ClustersClient) deployCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.ClusterDeployParameters != nil { @@ -285,7 +368,7 @@ func (client *ClustersClient) deployCreateRequest(ctx context.Context, resourceG // Get - Get properties of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - options - ClustersClientGetOptions contains the optional parameters for the ClustersClient.Get method. @@ -331,7 +414,7 @@ func (client *ClustersClient) getCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -348,7 +431,7 @@ func (client *ClustersClient) getHandleResponse(resp *http.Response) (ClustersCl // NewListByResourceGroupPager - Get a list of clusters in the provided resource group. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - ClustersClientListByResourceGroupOptions contains the optional parameters for the ClustersClient.NewListByResourceGroupPager // method. @@ -391,7 +474,7 @@ func (client *ClustersClient) listByResourceGroupCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -408,7 +491,7 @@ func (client *ClustersClient) listByResourceGroupHandleResponse(resp *http.Respo // NewListBySubscriptionPager - Get a list of clusters in the provided subscription. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - options - ClustersClientListBySubscriptionOptions contains the optional parameters for the ClustersClient.NewListBySubscriptionPager // method. func (client *ClustersClient) NewListBySubscriptionPager(options *ClustersClientListBySubscriptionOptions) *runtime.Pager[ClustersClientListBySubscriptionResponse] { @@ -446,7 +529,7 @@ func (client *ClustersClient) listBySubscriptionCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -461,11 +544,96 @@ func (client *ClustersClient) listBySubscriptionHandleResponse(resp *http.Respon return result, nil } +// BeginScanRuntime - Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance +// with the cluster configuration. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-06-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - The name of the cluster. +// - options - ClustersClientBeginScanRuntimeOptions contains the optional parameters for the ClustersClient.BeginScanRuntime +// method. +func (client *ClustersClient) BeginScanRuntime(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginScanRuntimeOptions) (*runtime.Poller[ClustersClientScanRuntimeResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.scanRuntime(ctx, resourceGroupName, clusterName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[ClustersClientScanRuntimeResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[ClustersClientScanRuntimeResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// ScanRuntime - Triggers the execution of a runtime protection scan to detect and remediate detected issues, in accordance +// with the cluster configuration. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-06-01-preview +func (client *ClustersClient) scanRuntime(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginScanRuntimeOptions) (*http.Response, error) { + var err error + const operationName = "ClustersClient.BeginScanRuntime" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.scanRuntimeCreateRequest(ctx, resourceGroupName, clusterName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// scanRuntimeCreateRequest creates the ScanRuntime request. +func (client *ClustersClient) scanRuntimeCreateRequest(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginScanRuntimeOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/clusters/{clusterName}/scanRuntime" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if clusterName == "" { + return nil, errors.New("parameter clusterName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{clusterName}", url.PathEscape(clusterName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-06-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.ClusterScanRuntimeParameters != nil { + if err := runtime.MarshalAsJSON(req, *options.ClusterScanRuntimeParameters); err != nil { + return nil, err + } + return req, nil + } + return req, nil +} + // BeginUpdate - Patch the properties of the provided cluster, or update the tags associated with the cluster. Properties // and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - clusterUpdateParameters - The request body. @@ -492,7 +660,7 @@ func (client *ClustersClient) BeginUpdate(ctx context.Context, resourceGroupName // updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *ClustersClient) update(ctx context.Context, resourceGroupName string, clusterName string, clusterUpdateParameters ClusterPatchParameters, options *ClustersClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "ClustersClient.BeginUpdate" @@ -534,7 +702,7 @@ func (client *ClustersClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, clusterUpdateParameters); err != nil { @@ -546,7 +714,7 @@ func (client *ClustersClient) updateCreateRequest(ctx context.Context, resourceG // BeginUpdateVersion - Update the version of the provided cluster to one of the available supported versions. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - clusterUpdateVersionParameters - The request body. @@ -573,7 +741,7 @@ func (client *ClustersClient) BeginUpdateVersion(ctx context.Context, resourceGr // UpdateVersion - Update the version of the provided cluster to one of the available supported versions. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *ClustersClient) updateVersion(ctx context.Context, resourceGroupName string, clusterName string, clusterUpdateVersionParameters ClusterUpdateVersionParameters, options *ClustersClientBeginUpdateVersionOptions) (*http.Response, error) { var err error const operationName = "ClustersClient.BeginUpdateVersion" @@ -588,7 +756,7 @@ func (client *ClustersClient) updateVersion(ctx context.Context, resourceGroupNa if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -615,7 +783,7 @@ func (client *ClustersClient) updateVersionCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, clusterUpdateVersionParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client_example_test.go index 51653d0d3368..76d08c9609d9 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/clusters_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ListBySubscription.json func ExampleClustersClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -63,6 +63,13 @@ func ExampleClustersClient_NewListBySubscriptionPager() { // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName"), // Type: to.Ptr("CustomLocation"), // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + // "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1": &armnetworkcloud.UserAssignedIdentity{ + // }, + // }, + // }, // Properties: &armnetworkcloud.ClusterProperties{ // AggregatorOrSingleRackDefinition: &armnetworkcloud.RackDefinition{ // BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ @@ -139,6 +146,13 @@ func ExampleClustersClient_NewListBySubscriptionPager() { // }, // ClusterType: to.Ptr(armnetworkcloud.ClusterTypeSingleRack), // ClusterVersion: to.Ptr("1.0.0"), + // CommandOutputSettings: &armnetworkcloud.CommandOutputSettings{ + // AssociatedIdentity: &armnetworkcloud.IdentitySelector{ + // IdentityType: to.Ptr(armnetworkcloud.ManagedServiceIdentitySelectorTypeUserAssignedIdentity), + // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1"), + // }, + // ContainerURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer?restype=container"), + // }, // ComputeDeploymentThreshold: &armnetworkcloud.ValidationThreshold{ // Type: to.Ptr(armnetworkcloud.ValidationThresholdTypePercentSuccess), // Grouping: to.Ptr(armnetworkcloud.ValidationThresholdGroupingPerCluster), @@ -194,7 +208,21 @@ func ExampleClustersClient_NewListBySubscriptionPager() { // ManualActionCount: to.Ptr[int64](0), // NetworkFabricID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName"), // ProvisioningState: to.Ptr(armnetworkcloud.ClusterProvisioningStateSucceeded), + // RuntimeProtectionConfiguration: &armnetworkcloud.RuntimeProtectionConfiguration{ + // EnforcementLevel: to.Ptr(armnetworkcloud.RuntimeProtectionEnforcementLevelOnDemand), + // }, + // SecretArchive: &armnetworkcloud.ClusterSecretArchive{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // UseKeyVault: to.Ptr(armnetworkcloud.ClusterSecretArchiveEnabledTrue), + // }, // SupportExpiryDate: to.Ptr("2023-04-29"), + // UpdateStrategy: &armnetworkcloud.ClusterUpdateStrategy{ + // MaxUnavailable: to.Ptr[int64](4), + // StrategyType: to.Ptr(armnetworkcloud.ClusterUpdateStrategyTypeRack), + // ThresholdType: to.Ptr(armnetworkcloud.ValidationThresholdTypeCountSuccess), + // ThresholdValue: to.Ptr[int64](4), + // WaitTimeMinutes: to.Ptr[int64](10), + // }, // WorkloadResourceIDs: []*string{ // to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName")}, // }, @@ -203,7 +231,7 @@ func ExampleClustersClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ListByResourceGroup.json func ExampleClustersClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -248,6 +276,13 @@ func ExampleClustersClient_NewListByResourceGroupPager() { // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName"), // Type: to.Ptr("CustomLocation"), // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + // "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1": &armnetworkcloud.UserAssignedIdentity{ + // }, + // }, + // }, // Properties: &armnetworkcloud.ClusterProperties{ // AggregatorOrSingleRackDefinition: &armnetworkcloud.RackDefinition{ // BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ @@ -324,6 +359,13 @@ func ExampleClustersClient_NewListByResourceGroupPager() { // }, // ClusterType: to.Ptr(armnetworkcloud.ClusterTypeSingleRack), // ClusterVersion: to.Ptr("1.0.0"), + // CommandOutputSettings: &armnetworkcloud.CommandOutputSettings{ + // AssociatedIdentity: &armnetworkcloud.IdentitySelector{ + // IdentityType: to.Ptr(armnetworkcloud.ManagedServiceIdentitySelectorTypeUserAssignedIdentity), + // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1"), + // }, + // ContainerURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer?restype=container"), + // }, // ComputeDeploymentThreshold: &armnetworkcloud.ValidationThreshold{ // Type: to.Ptr(armnetworkcloud.ValidationThresholdTypePercentSuccess), // Grouping: to.Ptr(armnetworkcloud.ValidationThresholdGroupingPerCluster), @@ -379,7 +421,21 @@ func ExampleClustersClient_NewListByResourceGroupPager() { // ManualActionCount: to.Ptr[int64](0), // NetworkFabricID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName"), // ProvisioningState: to.Ptr(armnetworkcloud.ClusterProvisioningStateSucceeded), + // RuntimeProtectionConfiguration: &armnetworkcloud.RuntimeProtectionConfiguration{ + // EnforcementLevel: to.Ptr(armnetworkcloud.RuntimeProtectionEnforcementLevelOnDemand), + // }, + // SecretArchive: &armnetworkcloud.ClusterSecretArchive{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // UseKeyVault: to.Ptr(armnetworkcloud.ClusterSecretArchiveEnabledTrue), + // }, // SupportExpiryDate: to.Ptr("2023-04-29"), + // UpdateStrategy: &armnetworkcloud.ClusterUpdateStrategy{ + // MaxUnavailable: to.Ptr[int64](4), + // StrategyType: to.Ptr(armnetworkcloud.ClusterUpdateStrategyTypeRack), + // ThresholdType: to.Ptr(armnetworkcloud.ValidationThresholdTypeCountSuccess), + // ThresholdValue: to.Ptr[int64](4), + // WaitTimeMinutes: to.Ptr[int64](10), + // }, // WorkloadResourceIDs: []*string{ // to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName")}, // }, @@ -388,7 +444,7 @@ func ExampleClustersClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Get.json func ExampleClustersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -427,6 +483,13 @@ func ExampleClustersClient_Get() { // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName"), // Type: to.Ptr("CustomLocation"), // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + // "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1": &armnetworkcloud.UserAssignedIdentity{ + // }, + // }, + // }, // Properties: &armnetworkcloud.ClusterProperties{ // AggregatorOrSingleRackDefinition: &armnetworkcloud.RackDefinition{ // BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ @@ -503,6 +566,13 @@ func ExampleClustersClient_Get() { // }, // ClusterType: to.Ptr(armnetworkcloud.ClusterTypeSingleRack), // ClusterVersion: to.Ptr("1.0.0"), + // CommandOutputSettings: &armnetworkcloud.CommandOutputSettings{ + // AssociatedIdentity: &armnetworkcloud.IdentitySelector{ + // IdentityType: to.Ptr(armnetworkcloud.ManagedServiceIdentitySelectorTypeUserAssignedIdentity), + // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1"), + // }, + // ContainerURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer?restype=container"), + // }, // ComputeDeploymentThreshold: &armnetworkcloud.ValidationThreshold{ // Type: to.Ptr(armnetworkcloud.ValidationThresholdTypePercentSuccess), // Grouping: to.Ptr(armnetworkcloud.ValidationThresholdGroupingPerCluster), @@ -558,14 +628,28 @@ func ExampleClustersClient_Get() { // ManualActionCount: to.Ptr[int64](0), // NetworkFabricID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName"), // ProvisioningState: to.Ptr(armnetworkcloud.ClusterProvisioningStateSucceeded), + // RuntimeProtectionConfiguration: &armnetworkcloud.RuntimeProtectionConfiguration{ + // EnforcementLevel: to.Ptr(armnetworkcloud.RuntimeProtectionEnforcementLevelOnDemand), + // }, + // SecretArchive: &armnetworkcloud.ClusterSecretArchive{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // UseKeyVault: to.Ptr(armnetworkcloud.ClusterSecretArchiveEnabledTrue), + // }, // SupportExpiryDate: to.Ptr("2023-04-29"), + // UpdateStrategy: &armnetworkcloud.ClusterUpdateStrategy{ + // MaxUnavailable: to.Ptr[int64](4), + // StrategyType: to.Ptr(armnetworkcloud.ClusterUpdateStrategyTypeRack), + // ThresholdType: to.Ptr(armnetworkcloud.ValidationThresholdTypeCountSuccess), + // ThresholdValue: to.Ptr[int64](4), + // WaitTimeMinutes: to.Ptr[int64](10), + // }, // WorkloadResourceIDs: []*string{ // to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName")}, // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Create.json func ExampleClustersClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -586,6 +670,12 @@ func ExampleClustersClient_BeginCreateOrUpdate() { Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName"), Type: to.Ptr("CustomLocation"), }, + Identity: &armnetworkcloud.ManagedServiceIdentity{ + Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1": {}, + }, + }, Properties: &armnetworkcloud.ClusterProperties{ AggregatorOrSingleRackDefinition: &armnetworkcloud.RackDefinition{ BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ @@ -638,6 +728,13 @@ func ExampleClustersClient_BeginCreateOrUpdate() { }, ClusterType: to.Ptr(armnetworkcloud.ClusterTypeSingleRack), ClusterVersion: to.Ptr("1.0.0"), + CommandOutputSettings: &armnetworkcloud.CommandOutputSettings{ + AssociatedIdentity: &armnetworkcloud.IdentitySelector{ + IdentityType: to.Ptr(armnetworkcloud.ManagedServiceIdentitySelectorTypeUserAssignedIdentity), + UserAssignedIdentityResourceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1"), + }, + ContainerURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer?restype=container"), + }, ComputeDeploymentThreshold: &armnetworkcloud.ValidationThreshold{ Type: to.Ptr(armnetworkcloud.ValidationThresholdTypePercentSuccess), Grouping: to.Ptr(armnetworkcloud.ValidationThresholdGroupingPerCluster), @@ -690,6 +787,20 @@ func ExampleClustersClient_BeginCreateOrUpdate() { Location: to.Ptr("East US"), }, NetworkFabricID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName"), + RuntimeProtectionConfiguration: &armnetworkcloud.RuntimeProtectionConfiguration{ + EnforcementLevel: to.Ptr(armnetworkcloud.RuntimeProtectionEnforcementLevelOnDemand), + }, + SecretArchive: &armnetworkcloud.ClusterSecretArchive{ + KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + UseKeyVault: to.Ptr(armnetworkcloud.ClusterSecretArchiveEnabledTrue), + }, + UpdateStrategy: &armnetworkcloud.ClusterUpdateStrategy{ + MaxUnavailable: to.Ptr[int64](4), + StrategyType: to.Ptr(armnetworkcloud.ClusterUpdateStrategyTypeRack), + ThresholdType: to.Ptr(armnetworkcloud.ValidationThresholdTypeCountSuccess), + ThresholdValue: to.Ptr[int64](4), + WaitTimeMinutes: to.Ptr[int64](10), + }, }, }, nil) if err != nil { @@ -723,6 +834,13 @@ func ExampleClustersClient_BeginCreateOrUpdate() { // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName"), // Type: to.Ptr("CustomLocation"), // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + // "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1": &armnetworkcloud.UserAssignedIdentity{ + // }, + // }, + // }, // Properties: &armnetworkcloud.ClusterProperties{ // AggregatorOrSingleRackDefinition: &armnetworkcloud.RackDefinition{ // BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ @@ -799,6 +917,13 @@ func ExampleClustersClient_BeginCreateOrUpdate() { // }, // ClusterType: to.Ptr(armnetworkcloud.ClusterTypeSingleRack), // ClusterVersion: to.Ptr("1.0.0"), + // CommandOutputSettings: &armnetworkcloud.CommandOutputSettings{ + // AssociatedIdentity: &armnetworkcloud.IdentitySelector{ + // IdentityType: to.Ptr(armnetworkcloud.ManagedServiceIdentitySelectorTypeUserAssignedIdentity), + // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1"), + // }, + // ContainerURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer?restype=container"), + // }, // ComputeDeploymentThreshold: &armnetworkcloud.ValidationThreshold{ // Type: to.Ptr(armnetworkcloud.ValidationThresholdTypePercentSuccess), // Grouping: to.Ptr(armnetworkcloud.ValidationThresholdGroupingPerCluster), @@ -854,14 +979,28 @@ func ExampleClustersClient_BeginCreateOrUpdate() { // ManualActionCount: to.Ptr[int64](0), // NetworkFabricID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName"), // ProvisioningState: to.Ptr(armnetworkcloud.ClusterProvisioningStateSucceeded), + // RuntimeProtectionConfiguration: &armnetworkcloud.RuntimeProtectionConfiguration{ + // EnforcementLevel: to.Ptr(armnetworkcloud.RuntimeProtectionEnforcementLevelOnDemand), + // }, + // SecretArchive: &armnetworkcloud.ClusterSecretArchive{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // UseKeyVault: to.Ptr(armnetworkcloud.ClusterSecretArchiveEnabledTrue), + // }, // SupportExpiryDate: to.Ptr("2023-04-29"), + // UpdateStrategy: &armnetworkcloud.ClusterUpdateStrategy{ + // MaxUnavailable: to.Ptr[int64](4), + // StrategyType: to.Ptr(armnetworkcloud.ClusterUpdateStrategyTypeRack), + // ThresholdType: to.Ptr(armnetworkcloud.ValidationThresholdTypeCountSuccess), + // ThresholdValue: to.Ptr[int64](4), + // WaitTimeMinutes: to.Ptr[int64](10), + // }, // WorkloadResourceIDs: []*string{ // to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName")}, // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Delete.json func ExampleClustersClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -882,7 +1021,7 @@ func ExampleClustersClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_AggregatorOrSingleRackDefinition.json func ExampleClustersClient_BeginUpdate_patchClusterAggregatorOrSingleRackDefinition() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -978,6 +1117,13 @@ func ExampleClustersClient_BeginUpdate_patchClusterAggregatorOrSingleRackDefinit // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName"), // Type: to.Ptr("CustomLocation"), // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + // "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1": &armnetworkcloud.UserAssignedIdentity{ + // }, + // }, + // }, // Properties: &armnetworkcloud.ClusterProperties{ // AggregatorOrSingleRackDefinition: &armnetworkcloud.RackDefinition{ // BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ @@ -1054,6 +1200,13 @@ func ExampleClustersClient_BeginUpdate_patchClusterAggregatorOrSingleRackDefinit // }, // ClusterType: to.Ptr(armnetworkcloud.ClusterTypeSingleRack), // ClusterVersion: to.Ptr("1.0.0"), + // CommandOutputSettings: &armnetworkcloud.CommandOutputSettings{ + // AssociatedIdentity: &armnetworkcloud.IdentitySelector{ + // IdentityType: to.Ptr(armnetworkcloud.ManagedServiceIdentitySelectorTypeUserAssignedIdentity), + // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1"), + // }, + // ContainerURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer?restype=container"), + // }, // ComputeDeploymentThreshold: &armnetworkcloud.ValidationThreshold{ // Type: to.Ptr(armnetworkcloud.ValidationThresholdTypePercentSuccess), // Grouping: to.Ptr(armnetworkcloud.ValidationThresholdGroupingPerCluster), @@ -1109,15 +1262,29 @@ func ExampleClustersClient_BeginUpdate_patchClusterAggregatorOrSingleRackDefinit // ManualActionCount: to.Ptr[int64](0), // NetworkFabricID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName"), // ProvisioningState: to.Ptr(armnetworkcloud.ClusterProvisioningStateSucceeded), + // RuntimeProtectionConfiguration: &armnetworkcloud.RuntimeProtectionConfiguration{ + // EnforcementLevel: to.Ptr(armnetworkcloud.RuntimeProtectionEnforcementLevelOnDemand), + // }, + // SecretArchive: &armnetworkcloud.ClusterSecretArchive{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // UseKeyVault: to.Ptr(armnetworkcloud.ClusterSecretArchiveEnabledTrue), + // }, // SupportExpiryDate: to.Ptr("2023-04-29"), + // UpdateStrategy: &armnetworkcloud.ClusterUpdateStrategy{ + // MaxUnavailable: to.Ptr[int64](4), + // StrategyType: to.Ptr(armnetworkcloud.ClusterUpdateStrategyTypeRack), + // ThresholdType: to.Ptr(armnetworkcloud.ValidationThresholdTypeCountSuccess), + // ThresholdValue: to.Ptr[int64](4), + // WaitTimeMinutes: to.Ptr[int64](10), + // }, // WorkloadResourceIDs: []*string{ // to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName")}, // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Patch_Location.json -func ExampleClustersClient_BeginUpdate_patchClusterLocation() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_CommandOutput.json +func ExampleClustersClient_BeginUpdate_patchClusterCommandOutput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -1128,8 +1295,21 @@ func ExampleClustersClient_BeginUpdate_patchClusterLocation() { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewClustersClient().BeginUpdate(ctx, "resourceGroupName", "clusterName", armnetworkcloud.ClusterPatchParameters{ + Identity: &armnetworkcloud.ManagedServiceIdentity{ + Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1": nil, + "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2": {}, + }, + }, Properties: &armnetworkcloud.ClusterPatchProperties{ - ClusterLocation: to.Ptr("Foo Street, 3rd Floor, row 9"), + CommandOutputSettings: &armnetworkcloud.CommandOutputSettings{ + AssociatedIdentity: &armnetworkcloud.IdentitySelector{ + IdentityType: to.Ptr(armnetworkcloud.ManagedServiceIdentitySelectorTypeUserAssignedIdentity), + UserAssignedIdentityResourceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2"), + }, + ContainerURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer?restype=container"), + }, }, Tags: map[string]*string{ "key1": to.Ptr("myvalue1"), @@ -1167,6 +1347,15 @@ func ExampleClustersClient_BeginUpdate_patchClusterLocation() { // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName"), // Type: to.Ptr("CustomLocation"), // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + // "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2": &armnetworkcloud.UserAssignedIdentity{ + // ClientID: to.Ptr("200e0000-e89b-12d3-a456-426655440000"), + // PrincipalID: to.Ptr("321e7654-e89b-12d3-a456-426655449999"), + // }, + // }, + // }, // Properties: &armnetworkcloud.ClusterProperties{ // AggregatorOrSingleRackDefinition: &armnetworkcloud.RackDefinition{ // BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ @@ -1243,6 +1432,13 @@ func ExampleClustersClient_BeginUpdate_patchClusterLocation() { // }, // ClusterType: to.Ptr(armnetworkcloud.ClusterTypeSingleRack), // ClusterVersion: to.Ptr("1.0.0"), + // CommandOutputSettings: &armnetworkcloud.CommandOutputSettings{ + // AssociatedIdentity: &armnetworkcloud.IdentitySelector{ + // IdentityType: to.Ptr(armnetworkcloud.ManagedServiceIdentitySelectorTypeUserAssignedIdentity), + // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity2"), + // }, + // ContainerURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer?restype=container"), + // }, // ComputeDeploymentThreshold: &armnetworkcloud.ValidationThreshold{ // Type: to.Ptr(armnetworkcloud.ValidationThresholdTypePercentSuccess), // Grouping: to.Ptr(armnetworkcloud.ValidationThresholdGroupingPerCluster), @@ -1298,15 +1494,29 @@ func ExampleClustersClient_BeginUpdate_patchClusterLocation() { // ManualActionCount: to.Ptr[int64](0), // NetworkFabricID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName"), // ProvisioningState: to.Ptr(armnetworkcloud.ClusterProvisioningStateSucceeded), + // RuntimeProtectionConfiguration: &armnetworkcloud.RuntimeProtectionConfiguration{ + // EnforcementLevel: to.Ptr(armnetworkcloud.RuntimeProtectionEnforcementLevelOnDemand), + // }, + // SecretArchive: &armnetworkcloud.ClusterSecretArchive{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // UseKeyVault: to.Ptr(armnetworkcloud.ClusterSecretArchiveEnabledTrue), + // }, // SupportExpiryDate: to.Ptr("2023-04-29"), + // UpdateStrategy: &armnetworkcloud.ClusterUpdateStrategy{ + // MaxUnavailable: to.Ptr[int64](4), + // StrategyType: to.Ptr(armnetworkcloud.ClusterUpdateStrategyTypeRack), + // ThresholdType: to.Ptr(armnetworkcloud.ValidationThresholdTypeCountSuccess), + // ThresholdValue: to.Ptr[int64](4), + // WaitTimeMinutes: to.Ptr[int64](10), + // }, // WorkloadResourceIDs: []*string{ // to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName")}, // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy.json -func ExampleClustersClient_BeginDeploy_deployCluster() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_Location.json +func ExampleClustersClient_BeginUpdate_patchClusterLocation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -1316,18 +1526,214 @@ func ExampleClustersClient_BeginDeploy_deployCluster() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := clientFactory.NewClustersClient().BeginDeploy(ctx, "resourceGroupName", "clusterName", &armnetworkcloud.ClustersClientBeginDeployOptions{ClusterDeployParameters: &armnetworkcloud.ClusterDeployParameters{}}) + poller, err := clientFactory.NewClustersClient().BeginUpdate(ctx, "resourceGroupName", "clusterName", armnetworkcloud.ClusterPatchParameters{ + Properties: &armnetworkcloud.ClusterPatchProperties{ + ClusterLocation: to.Ptr("Foo Street, 3rd Floor, row 9"), + }, + Tags: map[string]*string{ + "key1": to.Ptr("myvalue1"), + "key2": to.Ptr("myvalue2"), + }, + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - _, err = poller.PollUntilDone(ctx, nil) + res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Cluster = armnetworkcloud.Cluster{ + // Name: to.Ptr("clusterName"), + // Type: to.Ptr("Microsoft.NetworkCloud/clusters"), + // ID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusters/clusterName"), + // SystemData: &armnetworkcloud.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:27:03.008Z"); return t}()), + // CreatedBy: to.Ptr("identityA"), + // CreatedByType: to.Ptr(armnetworkcloud.CreatedByTypeApplication), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:29:03.001Z"); return t}()), + // LastModifiedBy: to.Ptr("identityB"), + // LastModifiedByType: to.Ptr(armnetworkcloud.CreatedByTypeUser), + // }, + // Location: to.Ptr("location"), + // Tags: map[string]*string{ + // "key1": to.Ptr("myvalue1"), + // "key2": to.Ptr("myvalue2"), + // }, + // ExtendedLocation: &armnetworkcloud.ExtendedLocation{ + // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName"), + // Type: to.Ptr("CustomLocation"), + // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + // "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1": &armnetworkcloud.UserAssignedIdentity{ + // }, + // }, + // }, + // Properties: &armnetworkcloud.ClusterProperties{ + // AggregatorOrSingleRackDefinition: &armnetworkcloud.RackDefinition{ + // BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:FF"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:FF"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName1"), + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // }, + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:00"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:00"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName2"), + // RackSlot: to.Ptr[int64](2), + // SerialNumber: to.Ptr("BM1219YYY"), + // }}, + // NetworkRackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName"), + // RackLocation: to.Ptr("Foo Datacenter, Floor 3, Aisle 9, Rack 2"), + // RackSerialNumber: to.Ptr("AA1234"), + // RackSKUID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName"), + // StorageApplianceConfigurationData: []*armnetworkcloud.StorageApplianceConfigurationData{ + // { + // AdminCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // StorageApplianceName: to.Ptr("vmName"), + // }}, + // }, + // AnalyticsWorkspaceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName"), + // AvailableUpgradeVersions: []*armnetworkcloud.ClusterAvailableUpgradeVersion{ + // { + // ControlImpact: to.Ptr(armnetworkcloud.ControlImpactFalse), + // ExpectedDuration: to.Ptr("0:0:30"), + // ImpactDescription: to.Ptr("can be done in place"), + // SupportExpiryDate: to.Ptr("2025-01-01"), + // TargetClusterVersion: to.Ptr("1.0.2"), + // WorkloadImpact: to.Ptr(armnetworkcloud.WorkloadImpactFalse), + // }}, + // ClusterCapacity: &armnetworkcloud.ClusterCapacity{ + // AvailableApplianceStorageGB: to.Ptr[int64](3), + // AvailableCoreCount: to.Ptr[int64](10), + // AvailableHostStorageGB: to.Ptr[int64](20), + // AvailableMemoryGB: to.Ptr[int64](20), + // TotalApplianceStorageGB: to.Ptr[int64](10), + // TotalCoreCount: to.Ptr[int64](10), + // TotalHostStorageGB: to.Ptr[int64](10), + // TotalMemoryGB: to.Ptr[int64](10), + // }, + // ClusterConnectionStatus: to.Ptr(armnetworkcloud.ClusterConnectionStatusConnected), + // ClusterExtendedLocation: &armnetworkcloud.ExtendedLocation{ + // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName"), + // Type: to.Ptr("CustomLocation"), + // }, + // ClusterLocation: to.Ptr("Foo Street, 3rd Floor, row 9"), + // ClusterManagerConnectionStatus: to.Ptr(armnetworkcloud.ClusterManagerConnectionStatusConnected), + // ClusterManagerID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusterManagers/clusterManagerName"), + // ClusterServicePrincipal: &armnetworkcloud.ServicePrincipalInformation{ + // ApplicationID: to.Ptr("12345678-1234-1234-1234-123456789012"), + // PrincipalID: to.Ptr("00000008-0004-0004-0004-000000000012"), + // TenantID: to.Ptr("80000000-4000-4000-4000-120000000000"), + // }, + // ClusterType: to.Ptr(armnetworkcloud.ClusterTypeSingleRack), + // ClusterVersion: to.Ptr("1.0.0"), + // CommandOutputSettings: &armnetworkcloud.CommandOutputSettings{ + // AssociatedIdentity: &armnetworkcloud.IdentitySelector{ + // IdentityType: to.Ptr(armnetworkcloud.ManagedServiceIdentitySelectorTypeUserAssignedIdentity), + // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1"), + // }, + // ContainerURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer?restype=container"), + // }, + // ComputeDeploymentThreshold: &armnetworkcloud.ValidationThreshold{ + // Type: to.Ptr(armnetworkcloud.ValidationThresholdTypePercentSuccess), + // Grouping: to.Ptr(armnetworkcloud.ValidationThresholdGroupingPerCluster), + // Value: to.Ptr[int64](90), + // }, + // ComputeRackDefinitions: []*armnetworkcloud.RackDefinition{ + // { + // BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:FF"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:FF"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName1"), + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // }, + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:00"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:00"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName2"), + // RackSlot: to.Ptr[int64](2), + // SerialNumber: to.Ptr("BM1219YYY"), + // }}, + // NetworkRackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName"), + // RackLocation: to.Ptr("Foo Datacenter, Floor 3, Aisle 9, Rack 2"), + // RackSerialNumber: to.Ptr("AA1234"), + // RackSKUID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName"), + // StorageApplianceConfigurationData: []*armnetworkcloud.StorageApplianceConfigurationData{ + // { + // AdminCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // StorageApplianceName: to.Ptr("vmName"), + // }}, + // }}, + // DetailedStatus: to.Ptr(armnetworkcloud.ClusterDetailedStatusRunning), + // DetailedStatusMessage: to.Ptr("Cluster is running and healthy"), + // ManagedResourceGroupConfiguration: &armnetworkcloud.ManagedResourceGroupConfiguration{ + // Name: to.Ptr("my-managed-rg"), + // Location: to.Ptr("East US"), + // }, + // ManualActionCount: to.Ptr[int64](0), + // NetworkFabricID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName"), + // ProvisioningState: to.Ptr(armnetworkcloud.ClusterProvisioningStateSucceeded), + // RuntimeProtectionConfiguration: &armnetworkcloud.RuntimeProtectionConfiguration{ + // EnforcementLevel: to.Ptr(armnetworkcloud.RuntimeProtectionEnforcementLevelOnDemand), + // }, + // SecretArchive: &armnetworkcloud.ClusterSecretArchive{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // UseKeyVault: to.Ptr(armnetworkcloud.ClusterSecretArchiveEnabledTrue), + // }, + // SupportExpiryDate: to.Ptr("2023-04-29"), + // UpdateStrategy: &armnetworkcloud.ClusterUpdateStrategy{ + // MaxUnavailable: to.Ptr[int64](4), + // StrategyType: to.Ptr(armnetworkcloud.ClusterUpdateStrategyTypeRack), + // ThresholdType: to.Ptr(armnetworkcloud.ValidationThresholdTypeCountSuccess), + // ThresholdValue: to.Ptr[int64](4), + // WaitTimeMinutes: to.Ptr[int64](10), + // }, + // WorkloadResourceIDs: []*string{ + // to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName")}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_Deploy_SkipValidation.json -func ExampleClustersClient_BeginDeploy_deployClusterSkippingValidation() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_RuntimeProtectionConfiguration.json +func ExampleClustersClient_BeginUpdate_patchRuntimeProtectionConfiguration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -1337,9 +1743,739 @@ func ExampleClustersClient_BeginDeploy_deployClusterSkippingValidation() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := clientFactory.NewClustersClient().BeginDeploy(ctx, "resourceGroupName", "clusterName", &armnetworkcloud.ClustersClientBeginDeployOptions{ClusterDeployParameters: &armnetworkcloud.ClusterDeployParameters{ - SkipValidationsForMachines: []*string{ - to.Ptr("bmmName1")}, + poller, err := clientFactory.NewClustersClient().BeginUpdate(ctx, "resourceGroupName", "clusterName", armnetworkcloud.ClusterPatchParameters{ + Properties: &armnetworkcloud.ClusterPatchProperties{ + RuntimeProtectionConfiguration: &armnetworkcloud.RuntimeProtectionConfiguration{ + EnforcementLevel: to.Ptr(armnetworkcloud.RuntimeProtectionEnforcementLevelOnDemand), + }, + }, + Tags: map[string]*string{ + "key1": to.Ptr("myvalue1"), + "key2": to.Ptr("myvalue2"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + res, err := poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Cluster = armnetworkcloud.Cluster{ + // Name: to.Ptr("clusterName"), + // Type: to.Ptr("Microsoft.NetworkCloud/clusters"), + // ID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusters/clusterName"), + // SystemData: &armnetworkcloud.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:27:03.008Z"); return t}()), + // CreatedBy: to.Ptr("identityA"), + // CreatedByType: to.Ptr(armnetworkcloud.CreatedByTypeApplication), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:29:03.001Z"); return t}()), + // LastModifiedBy: to.Ptr("identityB"), + // LastModifiedByType: to.Ptr(armnetworkcloud.CreatedByTypeUser), + // }, + // Location: to.Ptr("location"), + // Tags: map[string]*string{ + // "key1": to.Ptr("myvalue1"), + // "key2": to.Ptr("myvalue2"), + // }, + // ExtendedLocation: &armnetworkcloud.ExtendedLocation{ + // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName"), + // Type: to.Ptr("CustomLocation"), + // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + // "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1": &armnetworkcloud.UserAssignedIdentity{ + // }, + // }, + // }, + // Properties: &armnetworkcloud.ClusterProperties{ + // AggregatorOrSingleRackDefinition: &armnetworkcloud.RackDefinition{ + // BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:FF"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:FF"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName1"), + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // }, + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:00"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:00"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName2"), + // RackSlot: to.Ptr[int64](2), + // SerialNumber: to.Ptr("BM1219YYY"), + // }}, + // NetworkRackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName"), + // RackLocation: to.Ptr("Foo Datacenter, Floor 3, Aisle 9, Rack 2"), + // RackSerialNumber: to.Ptr("AA1234"), + // RackSKUID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName"), + // StorageApplianceConfigurationData: []*armnetworkcloud.StorageApplianceConfigurationData{ + // { + // AdminCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // StorageApplianceName: to.Ptr("vmName"), + // }}, + // }, + // AnalyticsWorkspaceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName"), + // AvailableUpgradeVersions: []*armnetworkcloud.ClusterAvailableUpgradeVersion{ + // { + // ControlImpact: to.Ptr(armnetworkcloud.ControlImpactFalse), + // ExpectedDuration: to.Ptr("0:0:30"), + // ImpactDescription: to.Ptr("can be done in place"), + // SupportExpiryDate: to.Ptr("2025-01-01"), + // TargetClusterVersion: to.Ptr("1.0.2"), + // WorkloadImpact: to.Ptr(armnetworkcloud.WorkloadImpactFalse), + // }}, + // ClusterCapacity: &armnetworkcloud.ClusterCapacity{ + // AvailableApplianceStorageGB: to.Ptr[int64](3), + // AvailableCoreCount: to.Ptr[int64](10), + // AvailableHostStorageGB: to.Ptr[int64](20), + // AvailableMemoryGB: to.Ptr[int64](20), + // TotalApplianceStorageGB: to.Ptr[int64](10), + // TotalCoreCount: to.Ptr[int64](10), + // TotalHostStorageGB: to.Ptr[int64](10), + // TotalMemoryGB: to.Ptr[int64](10), + // }, + // ClusterConnectionStatus: to.Ptr(armnetworkcloud.ClusterConnectionStatusConnected), + // ClusterExtendedLocation: &armnetworkcloud.ExtendedLocation{ + // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName"), + // Type: to.Ptr("CustomLocation"), + // }, + // ClusterLocation: to.Ptr("Foo Street, 3rd Floor, row 9"), + // ClusterManagerConnectionStatus: to.Ptr(armnetworkcloud.ClusterManagerConnectionStatusConnected), + // ClusterManagerID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusterManagers/clusterManagerName"), + // ClusterServicePrincipal: &armnetworkcloud.ServicePrincipalInformation{ + // ApplicationID: to.Ptr("12345678-1234-1234-1234-123456789012"), + // PrincipalID: to.Ptr("00000008-0004-0004-0004-000000000012"), + // TenantID: to.Ptr("80000000-4000-4000-4000-120000000000"), + // }, + // ClusterType: to.Ptr(armnetworkcloud.ClusterTypeSingleRack), + // ClusterVersion: to.Ptr("1.0.0"), + // CommandOutputSettings: &armnetworkcloud.CommandOutputSettings{ + // AssociatedIdentity: &armnetworkcloud.IdentitySelector{ + // IdentityType: to.Ptr(armnetworkcloud.ManagedServiceIdentitySelectorTypeUserAssignedIdentity), + // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1"), + // }, + // ContainerURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer?restype=container"), + // }, + // ComputeDeploymentThreshold: &armnetworkcloud.ValidationThreshold{ + // Type: to.Ptr(armnetworkcloud.ValidationThresholdTypePercentSuccess), + // Grouping: to.Ptr(armnetworkcloud.ValidationThresholdGroupingPerCluster), + // Value: to.Ptr[int64](90), + // }, + // ComputeRackDefinitions: []*armnetworkcloud.RackDefinition{ + // { + // BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:FF"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:FF"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName1"), + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // }, + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:00"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:00"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName2"), + // RackSlot: to.Ptr[int64](2), + // SerialNumber: to.Ptr("BM1219YYY"), + // }}, + // NetworkRackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName"), + // RackLocation: to.Ptr("Foo Datacenter, Floor 3, Aisle 9, Rack 2"), + // RackSerialNumber: to.Ptr("AA1234"), + // RackSKUID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName"), + // StorageApplianceConfigurationData: []*armnetworkcloud.StorageApplianceConfigurationData{ + // { + // AdminCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // StorageApplianceName: to.Ptr("vmName"), + // }}, + // }}, + // DetailedStatus: to.Ptr(armnetworkcloud.ClusterDetailedStatusRunning), + // DetailedStatusMessage: to.Ptr("Cluster is running and healthy"), + // ManagedResourceGroupConfiguration: &armnetworkcloud.ManagedResourceGroupConfiguration{ + // Name: to.Ptr("my-managed-rg"), + // Location: to.Ptr("East US"), + // }, + // ManualActionCount: to.Ptr[int64](0), + // NetworkFabricID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName"), + // ProvisioningState: to.Ptr(armnetworkcloud.ClusterProvisioningStateSucceeded), + // RuntimeProtectionConfiguration: &armnetworkcloud.RuntimeProtectionConfiguration{ + // EnforcementLevel: to.Ptr(armnetworkcloud.RuntimeProtectionEnforcementLevelOnDemand), + // }, + // SecretArchive: &armnetworkcloud.ClusterSecretArchive{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // UseKeyVault: to.Ptr(armnetworkcloud.ClusterSecretArchiveEnabledTrue), + // }, + // SupportExpiryDate: to.Ptr("2023-04-29"), + // UpdateStrategy: &armnetworkcloud.ClusterUpdateStrategy{ + // MaxUnavailable: to.Ptr[int64](4), + // StrategyType: to.Ptr(armnetworkcloud.ClusterUpdateStrategyTypeRack), + // ThresholdType: to.Ptr(armnetworkcloud.ValidationThresholdTypeCountSuccess), + // ThresholdValue: to.Ptr[int64](4), + // WaitTimeMinutes: to.Ptr[int64](10), + // }, + // WorkloadResourceIDs: []*string{ + // to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName")}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_SecretArchive.json +func ExampleClustersClient_BeginUpdate_patchSecretArchive() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armnetworkcloud.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewClustersClient().BeginUpdate(ctx, "resourceGroupName", "clusterName", armnetworkcloud.ClusterPatchParameters{ + Properties: &armnetworkcloud.ClusterPatchProperties{ + SecretArchive: &armnetworkcloud.ClusterSecretArchive{ + KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + UseKeyVault: to.Ptr(armnetworkcloud.ClusterSecretArchiveEnabledTrue), + }, + }, + Tags: map[string]*string{ + "key1": to.Ptr("myvalue1"), + "key2": to.Ptr("myvalue2"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + res, err := poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Cluster = armnetworkcloud.Cluster{ + // Name: to.Ptr("clusterName"), + // Type: to.Ptr("Microsoft.NetworkCloud/clusters"), + // ID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusters/clusterName"), + // SystemData: &armnetworkcloud.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:27:03.008Z"); return t}()), + // CreatedBy: to.Ptr("identityA"), + // CreatedByType: to.Ptr(armnetworkcloud.CreatedByTypeApplication), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:29:03.001Z"); return t}()), + // LastModifiedBy: to.Ptr("identityB"), + // LastModifiedByType: to.Ptr(armnetworkcloud.CreatedByTypeUser), + // }, + // Location: to.Ptr("location"), + // Tags: map[string]*string{ + // "key1": to.Ptr("myvalue1"), + // "key2": to.Ptr("myvalue2"), + // }, + // ExtendedLocation: &armnetworkcloud.ExtendedLocation{ + // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName"), + // Type: to.Ptr("CustomLocation"), + // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + // "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1": &armnetworkcloud.UserAssignedIdentity{ + // }, + // }, + // }, + // Properties: &armnetworkcloud.ClusterProperties{ + // AggregatorOrSingleRackDefinition: &armnetworkcloud.RackDefinition{ + // BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:FF"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:FF"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName1"), + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // }, + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:00"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:00"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName2"), + // RackSlot: to.Ptr[int64](2), + // SerialNumber: to.Ptr("BM1219YYY"), + // }}, + // NetworkRackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName"), + // RackLocation: to.Ptr("Foo Datacenter, Floor 3, Aisle 9, Rack 2"), + // RackSerialNumber: to.Ptr("AA1234"), + // RackSKUID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName"), + // StorageApplianceConfigurationData: []*armnetworkcloud.StorageApplianceConfigurationData{ + // { + // AdminCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // StorageApplianceName: to.Ptr("vmName"), + // }}, + // }, + // AnalyticsWorkspaceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName"), + // AvailableUpgradeVersions: []*armnetworkcloud.ClusterAvailableUpgradeVersion{ + // { + // ControlImpact: to.Ptr(armnetworkcloud.ControlImpactFalse), + // ExpectedDuration: to.Ptr("0:0:30"), + // ImpactDescription: to.Ptr("can be done in place"), + // SupportExpiryDate: to.Ptr("2025-01-01"), + // TargetClusterVersion: to.Ptr("1.0.2"), + // WorkloadImpact: to.Ptr(armnetworkcloud.WorkloadImpactFalse), + // }}, + // ClusterCapacity: &armnetworkcloud.ClusterCapacity{ + // AvailableApplianceStorageGB: to.Ptr[int64](3), + // AvailableCoreCount: to.Ptr[int64](10), + // AvailableHostStorageGB: to.Ptr[int64](20), + // AvailableMemoryGB: to.Ptr[int64](20), + // TotalApplianceStorageGB: to.Ptr[int64](10), + // TotalCoreCount: to.Ptr[int64](10), + // TotalHostStorageGB: to.Ptr[int64](10), + // TotalMemoryGB: to.Ptr[int64](10), + // }, + // ClusterConnectionStatus: to.Ptr(armnetworkcloud.ClusterConnectionStatusConnected), + // ClusterExtendedLocation: &armnetworkcloud.ExtendedLocation{ + // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName"), + // Type: to.Ptr("CustomLocation"), + // }, + // ClusterLocation: to.Ptr("Foo Street, 3rd Floor, row 9"), + // ClusterManagerConnectionStatus: to.Ptr(armnetworkcloud.ClusterManagerConnectionStatusConnected), + // ClusterManagerID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusterManagers/clusterManagerName"), + // ClusterServicePrincipal: &armnetworkcloud.ServicePrincipalInformation{ + // ApplicationID: to.Ptr("12345678-1234-1234-1234-123456789012"), + // PrincipalID: to.Ptr("00000008-0004-0004-0004-000000000012"), + // TenantID: to.Ptr("80000000-4000-4000-4000-120000000000"), + // }, + // ClusterType: to.Ptr(armnetworkcloud.ClusterTypeSingleRack), + // ClusterVersion: to.Ptr("1.0.0"), + // CommandOutputSettings: &armnetworkcloud.CommandOutputSettings{ + // AssociatedIdentity: &armnetworkcloud.IdentitySelector{ + // IdentityType: to.Ptr(armnetworkcloud.ManagedServiceIdentitySelectorTypeUserAssignedIdentity), + // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1"), + // }, + // ContainerURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer?restype=container"), + // }, + // ComputeDeploymentThreshold: &armnetworkcloud.ValidationThreshold{ + // Type: to.Ptr(armnetworkcloud.ValidationThresholdTypePercentSuccess), + // Grouping: to.Ptr(armnetworkcloud.ValidationThresholdGroupingPerCluster), + // Value: to.Ptr[int64](90), + // }, + // ComputeRackDefinitions: []*armnetworkcloud.RackDefinition{ + // { + // BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:FF"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:FF"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName1"), + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // }, + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:00"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:00"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName2"), + // RackSlot: to.Ptr[int64](2), + // SerialNumber: to.Ptr("BM1219YYY"), + // }}, + // NetworkRackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName"), + // RackLocation: to.Ptr("Foo Datacenter, Floor 3, Aisle 9, Rack 2"), + // RackSerialNumber: to.Ptr("AA1234"), + // RackSKUID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName"), + // StorageApplianceConfigurationData: []*armnetworkcloud.StorageApplianceConfigurationData{ + // { + // AdminCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // StorageApplianceName: to.Ptr("vmName"), + // }}, + // }}, + // DetailedStatus: to.Ptr(armnetworkcloud.ClusterDetailedStatusRunning), + // DetailedStatusMessage: to.Ptr("Cluster is running and healthy"), + // ManagedResourceGroupConfiguration: &armnetworkcloud.ManagedResourceGroupConfiguration{ + // Name: to.Ptr("my-managed-rg"), + // Location: to.Ptr("East US"), + // }, + // ManualActionCount: to.Ptr[int64](0), + // NetworkFabricID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName"), + // ProvisioningState: to.Ptr(armnetworkcloud.ClusterProvisioningStateSucceeded), + // RuntimeProtectionConfiguration: &armnetworkcloud.RuntimeProtectionConfiguration{ + // EnforcementLevel: to.Ptr(armnetworkcloud.RuntimeProtectionEnforcementLevelOnDemand), + // }, + // SecretArchive: &armnetworkcloud.ClusterSecretArchive{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // UseKeyVault: to.Ptr(armnetworkcloud.ClusterSecretArchiveEnabledTrue), + // }, + // SupportExpiryDate: to.Ptr("2023-04-29"), + // UpdateStrategy: &armnetworkcloud.ClusterUpdateStrategy{ + // MaxUnavailable: to.Ptr[int64](4), + // StrategyType: to.Ptr(armnetworkcloud.ClusterUpdateStrategyTypeRack), + // ThresholdType: to.Ptr(armnetworkcloud.ValidationThresholdTypeCountSuccess), + // ThresholdValue: to.Ptr[int64](4), + // WaitTimeMinutes: to.Ptr[int64](10), + // }, + // WorkloadResourceIDs: []*string{ + // to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName")}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Patch_UpdateStrategy.json +func ExampleClustersClient_BeginUpdate_patchUpdateStrategy() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armnetworkcloud.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewClustersClient().BeginUpdate(ctx, "resourceGroupName", "clusterName", armnetworkcloud.ClusterPatchParameters{ + Properties: &armnetworkcloud.ClusterPatchProperties{ + UpdateStrategy: &armnetworkcloud.ClusterUpdateStrategy{ + MaxUnavailable: to.Ptr[int64](4), + StrategyType: to.Ptr(armnetworkcloud.ClusterUpdateStrategyTypeRack), + ThresholdType: to.Ptr(armnetworkcloud.ValidationThresholdTypeCountSuccess), + ThresholdValue: to.Ptr[int64](4), + WaitTimeMinutes: to.Ptr[int64](10), + }, + }, + Tags: map[string]*string{ + "key1": to.Ptr("myvalue1"), + "key2": to.Ptr("myvalue2"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + res, err := poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Cluster = armnetworkcloud.Cluster{ + // Name: to.Ptr("clusterName"), + // Type: to.Ptr("Microsoft.NetworkCloud/clusters"), + // ID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusters/clusterName"), + // SystemData: &armnetworkcloud.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:27:03.008Z"); return t}()), + // CreatedBy: to.Ptr("identityA"), + // CreatedByType: to.Ptr(armnetworkcloud.CreatedByTypeApplication), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:29:03.001Z"); return t}()), + // LastModifiedBy: to.Ptr("identityB"), + // LastModifiedByType: to.Ptr(armnetworkcloud.CreatedByTypeUser), + // }, + // Location: to.Ptr("location"), + // Tags: map[string]*string{ + // "key1": to.Ptr("myvalue1"), + // "key2": to.Ptr("myvalue2"), + // }, + // ExtendedLocation: &armnetworkcloud.ExtendedLocation{ + // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName"), + // Type: to.Ptr("CustomLocation"), + // }, + // Identity: &armnetworkcloud.ManagedServiceIdentity{ + // Type: to.Ptr(armnetworkcloud.ManagedServiceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armnetworkcloud.UserAssignedIdentity{ + // "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1": &armnetworkcloud.UserAssignedIdentity{ + // }, + // }, + // }, + // Properties: &armnetworkcloud.ClusterProperties{ + // AggregatorOrSingleRackDefinition: &armnetworkcloud.RackDefinition{ + // BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:FF"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:FF"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName1"), + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // }, + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:00"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:00"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName2"), + // RackSlot: to.Ptr[int64](2), + // SerialNumber: to.Ptr("BM1219YYY"), + // }}, + // NetworkRackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName"), + // RackLocation: to.Ptr("Foo Datacenter, Floor 3, Aisle 9, Rack 2"), + // RackSerialNumber: to.Ptr("AA1234"), + // RackSKUID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName"), + // StorageApplianceConfigurationData: []*armnetworkcloud.StorageApplianceConfigurationData{ + // { + // AdminCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // StorageApplianceName: to.Ptr("vmName"), + // }}, + // }, + // AnalyticsWorkspaceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/microsoft.operationalInsights/workspaces/logAnalyticsWorkspaceName"), + // AvailableUpgradeVersions: []*armnetworkcloud.ClusterAvailableUpgradeVersion{ + // { + // ControlImpact: to.Ptr(armnetworkcloud.ControlImpactFalse), + // ExpectedDuration: to.Ptr("0:0:30"), + // ImpactDescription: to.Ptr("can be done in place"), + // SupportExpiryDate: to.Ptr("2025-01-01"), + // TargetClusterVersion: to.Ptr("1.0.2"), + // WorkloadImpact: to.Ptr(armnetworkcloud.WorkloadImpactFalse), + // }}, + // ClusterCapacity: &armnetworkcloud.ClusterCapacity{ + // AvailableApplianceStorageGB: to.Ptr[int64](3), + // AvailableCoreCount: to.Ptr[int64](10), + // AvailableHostStorageGB: to.Ptr[int64](20), + // AvailableMemoryGB: to.Ptr[int64](20), + // TotalApplianceStorageGB: to.Ptr[int64](10), + // TotalCoreCount: to.Ptr[int64](10), + // TotalHostStorageGB: to.Ptr[int64](10), + // TotalMemoryGB: to.Ptr[int64](10), + // }, + // ClusterConnectionStatus: to.Ptr(armnetworkcloud.ClusterConnectionStatusConnected), + // ClusterExtendedLocation: &armnetworkcloud.ExtendedLocation{ + // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName"), + // Type: to.Ptr("CustomLocation"), + // }, + // ClusterLocation: to.Ptr("Foo Street, 3rd Floor, row 9"), + // ClusterManagerConnectionStatus: to.Ptr(armnetworkcloud.ClusterManagerConnectionStatusConnected), + // ClusterManagerID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusterManagers/clusterManagerName"), + // ClusterServicePrincipal: &armnetworkcloud.ServicePrincipalInformation{ + // ApplicationID: to.Ptr("12345678-1234-1234-1234-123456789012"), + // PrincipalID: to.Ptr("00000008-0004-0004-0004-000000000012"), + // TenantID: to.Ptr("80000000-4000-4000-4000-120000000000"), + // }, + // ClusterType: to.Ptr(armnetworkcloud.ClusterTypeSingleRack), + // ClusterVersion: to.Ptr("1.0.0"), + // CommandOutputSettings: &armnetworkcloud.CommandOutputSettings{ + // AssociatedIdentity: &armnetworkcloud.IdentitySelector{ + // IdentityType: to.Ptr(armnetworkcloud.ManagedServiceIdentitySelectorTypeUserAssignedIdentity), + // UserAssignedIdentityResourceID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userIdentity1"), + // }, + // ContainerURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer?restype=container"), + // }, + // ComputeDeploymentThreshold: &armnetworkcloud.ValidationThreshold{ + // Type: to.Ptr(armnetworkcloud.ValidationThresholdTypePercentSuccess), + // Grouping: to.Ptr(armnetworkcloud.ValidationThresholdGroupingPerCluster), + // Value: to.Ptr[int64](90), + // }, + // ComputeRackDefinitions: []*armnetworkcloud.RackDefinition{ + // { + // BareMetalMachineConfigurationData: []*armnetworkcloud.BareMetalMachineConfigurationData{ + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:FF"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:FF"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName1"), + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // }, + // { + // BmcConnectionString: to.Ptr("bmcConnectionString"), + // BmcCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // BmcMacAddress: to.Ptr("AA:BB:CC:DD:EE:00"), + // BootMacAddress: to.Ptr("00:BB:CC:DD:EE:00"), + // MachineDetails: to.Ptr("extraDetails"), + // MachineName: to.Ptr("bmmName2"), + // RackSlot: to.Ptr[int64](2), + // SerialNumber: to.Ptr("BM1219YYY"), + // }}, + // NetworkRackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkRacks/networkRackName"), + // RackLocation: to.Ptr("Foo Datacenter, Floor 3, Aisle 9, Rack 2"), + // RackSerialNumber: to.Ptr("AA1234"), + // RackSKUID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName"), + // StorageApplianceConfigurationData: []*armnetworkcloud.StorageApplianceConfigurationData{ + // { + // AdminCredentials: &armnetworkcloud.AdministrativeCredentials{ + // Username: to.Ptr("username"), + // }, + // RackSlot: to.Ptr[int64](1), + // SerialNumber: to.Ptr("BM1219XXX"), + // StorageApplianceName: to.Ptr("vmName"), + // }}, + // }}, + // DetailedStatus: to.Ptr(armnetworkcloud.ClusterDetailedStatusRunning), + // DetailedStatusMessage: to.Ptr("Cluster is running and healthy"), + // ManagedResourceGroupConfiguration: &armnetworkcloud.ManagedResourceGroupConfiguration{ + // Name: to.Ptr("my-managed-rg"), + // Location: to.Ptr("East US"), + // }, + // ManualActionCount: to.Ptr[int64](0), + // NetworkFabricID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/networkFabrics/fabricName"), + // ProvisioningState: to.Ptr(armnetworkcloud.ClusterProvisioningStateSucceeded), + // RuntimeProtectionConfiguration: &armnetworkcloud.RuntimeProtectionConfiguration{ + // EnforcementLevel: to.Ptr(armnetworkcloud.RuntimeProtectionEnforcementLevelOnDemand), + // }, + // SecretArchive: &armnetworkcloud.ClusterSecretArchive{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // UseKeyVault: to.Ptr(armnetworkcloud.ClusterSecretArchiveEnabledTrue), + // }, + // SupportExpiryDate: to.Ptr("2023-04-29"), + // UpdateStrategy: &armnetworkcloud.ClusterUpdateStrategy{ + // MaxUnavailable: to.Ptr[int64](4), + // StrategyType: to.Ptr(armnetworkcloud.ClusterUpdateStrategyTypeRack), + // ThresholdType: to.Ptr(armnetworkcloud.ValidationThresholdTypeCountSuccess), + // ThresholdValue: to.Ptr[int64](4), + // WaitTimeMinutes: to.Ptr[int64](10), + // }, + // WorkloadResourceIDs: []*string{ + // to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName")}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ContinueUpdateVersion.json +func ExampleClustersClient_BeginContinueUpdateVersion() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armnetworkcloud.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewClustersClient().BeginContinueUpdateVersion(ctx, "resourceGroupName", "clusterName", armnetworkcloud.ClusterContinueUpdateVersionParameters{ + MachineGroupTargetingMode: to.Ptr(armnetworkcloud.ClusterContinueUpdateVersionMachineGroupTargetingModeAlphaByRack), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Deploy.json +func ExampleClustersClient_BeginDeploy_deployCluster() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armnetworkcloud.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewClustersClient().BeginDeploy(ctx, "resourceGroupName", "clusterName", &armnetworkcloud.ClustersClientBeginDeployOptions{ClusterDeployParameters: &armnetworkcloud.ClusterDeployParameters{}}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_Deploy_SkipValidation.json +func ExampleClustersClient_BeginDeploy_deployClusterSkippingValidation() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armnetworkcloud.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewClustersClient().BeginDeploy(ctx, "resourceGroupName", "clusterName", &armnetworkcloud.ClustersClientBeginDeployOptions{ClusterDeployParameters: &armnetworkcloud.ClusterDeployParameters{ + SkipValidationsForMachines: []*string{ + to.Ptr("bmmName1")}, + }, + }) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_ScanRuntime.json +func ExampleClustersClient_BeginScanRuntime() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armnetworkcloud.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewClustersClient().BeginScanRuntime(ctx, "resourceGroupName", "clusterName", &armnetworkcloud.ClustersClientBeginScanRuntimeOptions{ClusterScanRuntimeParameters: &armnetworkcloud.ClusterScanRuntimeParameters{ + ScanActivity: to.Ptr(armnetworkcloud.ClusterScanRuntimeParametersScanActivityScan), }, }) if err != nil { @@ -1351,7 +2487,7 @@ func ExampleClustersClient_BeginDeploy_deployClusterSkippingValidation() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Clusters_UpdateVersion.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Clusters_UpdateVersion.json func ExampleClustersClient_BeginUpdateVersion() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client.go index 41074ea057a7..14bb1fe41e76 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client.go @@ -46,7 +46,7 @@ func NewConsolesClient(subscriptionID string, credential azcore.TokenCredential, // BeginCreateOrUpdate - Create a new virtual machine console or update the properties of the existing virtual machine console. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - consoleName - The name of the virtual machine console. @@ -74,7 +74,7 @@ func (client *ConsolesClient) BeginCreateOrUpdate(ctx context.Context, resourceG // CreateOrUpdate - Create a new virtual machine console or update the properties of the existing virtual machine console. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *ConsolesClient) createOrUpdate(ctx context.Context, resourceGroupName string, virtualMachineName string, consoleName string, consoleParameters Console, options *ConsolesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "ConsolesClient.BeginCreateOrUpdate" @@ -120,7 +120,7 @@ func (client *ConsolesClient) createOrUpdateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, consoleParameters); err != nil { @@ -132,7 +132,7 @@ func (client *ConsolesClient) createOrUpdateCreateRequest(ctx context.Context, r // BeginDelete - Delete the provided virtual machine console. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - consoleName - The name of the virtual machine console. @@ -158,7 +158,7 @@ func (client *ConsolesClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Delete the provided virtual machine console. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *ConsolesClient) deleteOperation(ctx context.Context, resourceGroupName string, virtualMachineName string, consoleName string, options *ConsolesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "ConsolesClient.BeginDelete" @@ -204,7 +204,7 @@ func (client *ConsolesClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -213,7 +213,7 @@ func (client *ConsolesClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Get properties of the provided virtual machine console. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - consoleName - The name of the virtual machine console. @@ -264,7 +264,7 @@ func (client *ConsolesClient) getCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -281,7 +281,7 @@ func (client *ConsolesClient) getHandleResponse(resp *http.Response) (ConsolesCl // NewListByVirtualMachinePager - Get a list of consoles for the provided virtual machine. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - ConsolesClientListByVirtualMachineOptions contains the optional parameters for the ConsolesClient.NewListByVirtualMachinePager @@ -329,7 +329,7 @@ func (client *ConsolesClient) listByVirtualMachineCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -348,7 +348,7 @@ func (client *ConsolesClient) listByVirtualMachineHandleResponse(resp *http.Resp // machine console. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - consoleName - The name of the virtual machine console. @@ -376,7 +376,7 @@ func (client *ConsolesClient) BeginUpdate(ctx context.Context, resourceGroupName // console. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *ConsolesClient) update(ctx context.Context, resourceGroupName string, virtualMachineName string, consoleName string, consoleUpdateParameters ConsolePatchParameters, options *ConsolesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "ConsolesClient.BeginUpdate" @@ -422,7 +422,7 @@ func (client *ConsolesClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, consoleUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client_example_test.go index 125f3d3261e9..e5c0f593d614 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/consoles_client_example_test.go @@ -20,7 +20,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_ListByVirtualMachine.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_ListByVirtualMachine.json func ExampleConsolesClient_NewListByVirtualMachinePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -82,7 +82,7 @@ func ExampleConsolesClient_NewListByVirtualMachinePager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Get.json func ExampleConsolesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -136,7 +136,7 @@ func ExampleConsolesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Create.json func ExampleConsolesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -211,7 +211,7 @@ func ExampleConsolesClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Delete.json func ExampleConsolesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -232,7 +232,7 @@ func ExampleConsolesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Consoles_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Consoles_Patch.json func ExampleConsolesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/constants.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/constants.go index 5b3e44843818..84a2a76c1544 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/constants.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/constants.go @@ -10,7 +10,7 @@ package armnetworkcloud const ( moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" - moduleVersion = "v1.1.0" + moduleVersion = "v1.2.0-beta.1" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. @@ -506,20 +506,37 @@ func PossibleCloudServicesNetworkProvisioningStateValues() []CloudServicesNetwor type ClusterConnectionStatus string const ( - ClusterConnectionStatusConnected ClusterConnectionStatus = "Connected" - ClusterConnectionStatusTimeout ClusterConnectionStatus = "Timeout" - ClusterConnectionStatusUndefined ClusterConnectionStatus = "Undefined" + ClusterConnectionStatusConnected ClusterConnectionStatus = "Connected" + ClusterConnectionStatusDisconnected ClusterConnectionStatus = "Disconnected" + ClusterConnectionStatusTimeout ClusterConnectionStatus = "Timeout" + ClusterConnectionStatusUndefined ClusterConnectionStatus = "Undefined" ) // PossibleClusterConnectionStatusValues returns the possible values for the ClusterConnectionStatus const type. func PossibleClusterConnectionStatusValues() []ClusterConnectionStatus { return []ClusterConnectionStatus{ ClusterConnectionStatusConnected, + ClusterConnectionStatusDisconnected, ClusterConnectionStatusTimeout, ClusterConnectionStatusUndefined, } } +// ClusterContinueUpdateVersionMachineGroupTargetingMode - The mode by which the cluster will target the next grouping of +// servers to continue the update. +type ClusterContinueUpdateVersionMachineGroupTargetingMode string + +const ( + ClusterContinueUpdateVersionMachineGroupTargetingModeAlphaByRack ClusterContinueUpdateVersionMachineGroupTargetingMode = "AlphaByRack" +) + +// PossibleClusterContinueUpdateVersionMachineGroupTargetingModeValues returns the possible values for the ClusterContinueUpdateVersionMachineGroupTargetingMode const type. +func PossibleClusterContinueUpdateVersionMachineGroupTargetingModeValues() []ClusterContinueUpdateVersionMachineGroupTargetingMode { + return []ClusterContinueUpdateVersionMachineGroupTargetingMode{ + ClusterContinueUpdateVersionMachineGroupTargetingModeAlphaByRack, + } +} + // ClusterDetailedStatus - The current detailed status of the cluster. type ClusterDetailedStatus string @@ -531,6 +548,7 @@ const ( ClusterDetailedStatusFailed ClusterDetailedStatus = "Failed" ClusterDetailedStatusPendingDeployment ClusterDetailedStatus = "PendingDeployment" ClusterDetailedStatusRunning ClusterDetailedStatus = "Running" + ClusterDetailedStatusUpdatePaused ClusterDetailedStatus = "UpdatePaused" ClusterDetailedStatusUpdating ClusterDetailedStatus = "Updating" ) @@ -544,6 +562,7 @@ func PossibleClusterDetailedStatusValues() []ClusterDetailedStatus { ClusterDetailedStatusFailed, ClusterDetailedStatusPendingDeployment, ClusterDetailedStatusRunning, + ClusterDetailedStatusUpdatePaused, ClusterDetailedStatusUpdating, } } @@ -676,6 +695,38 @@ func PossibleClusterProvisioningStateValues() []ClusterProvisioningState { } } +// ClusterScanRuntimeParametersScanActivity - The choice of if the scan operation should run the scan. +type ClusterScanRuntimeParametersScanActivity string + +const ( + ClusterScanRuntimeParametersScanActivityScan ClusterScanRuntimeParametersScanActivity = "Scan" + ClusterScanRuntimeParametersScanActivitySkip ClusterScanRuntimeParametersScanActivity = "Skip" +) + +// PossibleClusterScanRuntimeParametersScanActivityValues returns the possible values for the ClusterScanRuntimeParametersScanActivity const type. +func PossibleClusterScanRuntimeParametersScanActivityValues() []ClusterScanRuntimeParametersScanActivity { + return []ClusterScanRuntimeParametersScanActivity{ + ClusterScanRuntimeParametersScanActivityScan, + ClusterScanRuntimeParametersScanActivitySkip, + } +} + +// ClusterSecretArchiveEnabled - The indicator if the specified key vault should be used to archive the secrets of the cluster. +type ClusterSecretArchiveEnabled string + +const ( + ClusterSecretArchiveEnabledFalse ClusterSecretArchiveEnabled = "False" + ClusterSecretArchiveEnabledTrue ClusterSecretArchiveEnabled = "True" +) + +// PossibleClusterSecretArchiveEnabledValues returns the possible values for the ClusterSecretArchiveEnabled const type. +func PossibleClusterSecretArchiveEnabledValues() []ClusterSecretArchiveEnabled { + return []ClusterSecretArchiveEnabled{ + ClusterSecretArchiveEnabledFalse, + ClusterSecretArchiveEnabledTrue, + } +} + // ClusterType - The type of rack configuration for the cluster. type ClusterType string @@ -692,6 +743,22 @@ func PossibleClusterTypeValues() []ClusterType { } } +// ClusterUpdateStrategyType - The mode of operation for runtime protection. +type ClusterUpdateStrategyType string + +const ( + ClusterUpdateStrategyTypePauseAfterRack ClusterUpdateStrategyType = "PauseAfterRack" + ClusterUpdateStrategyTypeRack ClusterUpdateStrategyType = "Rack" +) + +// PossibleClusterUpdateStrategyTypeValues returns the possible values for the ClusterUpdateStrategyType const type. +func PossibleClusterUpdateStrategyTypeValues() []ClusterUpdateStrategyType { + return []ClusterUpdateStrategyType{ + ClusterUpdateStrategyTypePauseAfterRack, + ClusterUpdateStrategyTypeRack, + } +} + // ConsoleDetailedStatus - The more detailed status of the console. type ConsoleDetailedStatus string @@ -708,7 +775,7 @@ func PossibleConsoleDetailedStatusValues() []ConsoleDetailedStatus { } } -// ConsoleEnabled - The credentials used to login to the image repository that has access to the specified image. +// ConsoleEnabled - The indicator of whether the console access is enabled. type ConsoleEnabled string const ( @@ -952,6 +1019,81 @@ func PossibleKubernetesClusterDetailedStatusValues() []KubernetesClusterDetailed } } +// KubernetesClusterFeatureAvailabilityLifecycle - The lifecycle indicator of the feature. +type KubernetesClusterFeatureAvailabilityLifecycle string + +const ( + KubernetesClusterFeatureAvailabilityLifecycleGenerallyAvailable KubernetesClusterFeatureAvailabilityLifecycle = "GenerallyAvailable" + KubernetesClusterFeatureAvailabilityLifecyclePreview KubernetesClusterFeatureAvailabilityLifecycle = "Preview" +) + +// PossibleKubernetesClusterFeatureAvailabilityLifecycleValues returns the possible values for the KubernetesClusterFeatureAvailabilityLifecycle const type. +func PossibleKubernetesClusterFeatureAvailabilityLifecycleValues() []KubernetesClusterFeatureAvailabilityLifecycle { + return []KubernetesClusterFeatureAvailabilityLifecycle{ + KubernetesClusterFeatureAvailabilityLifecycleGenerallyAvailable, + KubernetesClusterFeatureAvailabilityLifecyclePreview, + } +} + +// KubernetesClusterFeatureDetailedStatus - The detailed status of the feature. +type KubernetesClusterFeatureDetailedStatus string + +const ( + KubernetesClusterFeatureDetailedStatusError KubernetesClusterFeatureDetailedStatus = "Error" + KubernetesClusterFeatureDetailedStatusInstalled KubernetesClusterFeatureDetailedStatus = "Installed" + KubernetesClusterFeatureDetailedStatusProvisioning KubernetesClusterFeatureDetailedStatus = "Provisioning" +) + +// PossibleKubernetesClusterFeatureDetailedStatusValues returns the possible values for the KubernetesClusterFeatureDetailedStatus const type. +func PossibleKubernetesClusterFeatureDetailedStatusValues() []KubernetesClusterFeatureDetailedStatus { + return []KubernetesClusterFeatureDetailedStatus{ + KubernetesClusterFeatureDetailedStatusError, + KubernetesClusterFeatureDetailedStatusInstalled, + KubernetesClusterFeatureDetailedStatusProvisioning, + } +} + +// KubernetesClusterFeatureProvisioningState - The provisioning state of the Kubernetes cluster feature. +type KubernetesClusterFeatureProvisioningState string + +const ( + KubernetesClusterFeatureProvisioningStateAccepted KubernetesClusterFeatureProvisioningState = "Accepted" + KubernetesClusterFeatureProvisioningStateCanceled KubernetesClusterFeatureProvisioningState = "Canceled" + KubernetesClusterFeatureProvisioningStateDeleting KubernetesClusterFeatureProvisioningState = "Deleting" + KubernetesClusterFeatureProvisioningStateFailed KubernetesClusterFeatureProvisioningState = "Failed" + KubernetesClusterFeatureProvisioningStateSucceeded KubernetesClusterFeatureProvisioningState = "Succeeded" + KubernetesClusterFeatureProvisioningStateUpdating KubernetesClusterFeatureProvisioningState = "Updating" +) + +// PossibleKubernetesClusterFeatureProvisioningStateValues returns the possible values for the KubernetesClusterFeatureProvisioningState const type. +func PossibleKubernetesClusterFeatureProvisioningStateValues() []KubernetesClusterFeatureProvisioningState { + return []KubernetesClusterFeatureProvisioningState{ + KubernetesClusterFeatureProvisioningStateAccepted, + KubernetesClusterFeatureProvisioningStateCanceled, + KubernetesClusterFeatureProvisioningStateDeleting, + KubernetesClusterFeatureProvisioningStateFailed, + KubernetesClusterFeatureProvisioningStateSucceeded, + KubernetesClusterFeatureProvisioningStateUpdating, + } +} + +// KubernetesClusterFeatureRequired - The indicator of if the feature is required or optional. Optional features may be deleted +// by the user, while required features are managed with the kubernetes cluster lifecycle. +type KubernetesClusterFeatureRequired string + +const ( + KubernetesClusterFeatureRequiredFalse KubernetesClusterFeatureRequired = "False" + KubernetesClusterFeatureRequiredTrue KubernetesClusterFeatureRequired = "True" +) + +// PossibleKubernetesClusterFeatureRequiredValues returns the possible values for the KubernetesClusterFeatureRequired const type. +func PossibleKubernetesClusterFeatureRequiredValues() []KubernetesClusterFeatureRequired { + return []KubernetesClusterFeatureRequired{ + KubernetesClusterFeatureRequiredFalse, + KubernetesClusterFeatureRequiredTrue, + } +} + // KubernetesClusterNodeDetailedStatus - The detailed state of this node. type KubernetesClusterNodeDetailedStatus string @@ -1181,6 +1323,42 @@ func PossibleMachineSKUDiskConnectionTypeValues() []MachineSKUDiskConnectionType } } +// ManagedServiceIdentitySelectorType - The type of managed identity that is being selected. +type ManagedServiceIdentitySelectorType string + +const ( + ManagedServiceIdentitySelectorTypeSystemAssignedIdentity ManagedServiceIdentitySelectorType = "SystemAssignedIdentity" + ManagedServiceIdentitySelectorTypeUserAssignedIdentity ManagedServiceIdentitySelectorType = "UserAssignedIdentity" +) + +// PossibleManagedServiceIdentitySelectorTypeValues returns the possible values for the ManagedServiceIdentitySelectorType const type. +func PossibleManagedServiceIdentitySelectorTypeValues() []ManagedServiceIdentitySelectorType { + return []ManagedServiceIdentitySelectorType{ + ManagedServiceIdentitySelectorTypeSystemAssignedIdentity, + ManagedServiceIdentitySelectorTypeUserAssignedIdentity, + } +} + +// ManagedServiceIdentityType - Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). +type ManagedServiceIdentityType string + +const ( + ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" + ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" + ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned,UserAssigned" + ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" +) + +// PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type. +func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { + return []ManagedServiceIdentityType{ + ManagedServiceIdentityTypeNone, + ManagedServiceIdentityTypeSystemAssigned, + ManagedServiceIdentityTypeSystemAssignedUserAssigned, + ManagedServiceIdentityTypeUserAssigned, + } +} + // Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default // value is "user,system" type Origin string @@ -1272,12 +1450,16 @@ func PossibleRackProvisioningStateValues() []RackProvisioningState { type RackSKUProvisioningState string const ( + RackSKUProvisioningStateCanceled RackSKUProvisioningState = "Canceled" + RackSKUProvisioningStateFailed RackSKUProvisioningState = "Failed" RackSKUProvisioningStateSucceeded RackSKUProvisioningState = "Succeeded" ) // PossibleRackSKUProvisioningStateValues returns the possible values for the RackSKUProvisioningState const type. func PossibleRackSKUProvisioningStateValues() []RackSKUProvisioningState { return []RackSKUProvisioningState{ + RackSKUProvisioningStateCanceled, + RackSKUProvisioningStateFailed, RackSKUProvisioningStateSucceeded, } } @@ -1335,6 +1517,28 @@ func PossibleRemoteVendorManagementStatusValues() []RemoteVendorManagementStatus } } +// RuntimeProtectionEnforcementLevel - The mode of operation for runtime protection. +type RuntimeProtectionEnforcementLevel string + +const ( + RuntimeProtectionEnforcementLevelAudit RuntimeProtectionEnforcementLevel = "Audit" + RuntimeProtectionEnforcementLevelDisabled RuntimeProtectionEnforcementLevel = "Disabled" + RuntimeProtectionEnforcementLevelOnDemand RuntimeProtectionEnforcementLevel = "OnDemand" + RuntimeProtectionEnforcementLevelPassive RuntimeProtectionEnforcementLevel = "Passive" + RuntimeProtectionEnforcementLevelRealTime RuntimeProtectionEnforcementLevel = "RealTime" +) + +// PossibleRuntimeProtectionEnforcementLevelValues returns the possible values for the RuntimeProtectionEnforcementLevel const type. +func PossibleRuntimeProtectionEnforcementLevelValues() []RuntimeProtectionEnforcementLevel { + return []RuntimeProtectionEnforcementLevel{ + RuntimeProtectionEnforcementLevelAudit, + RuntimeProtectionEnforcementLevelDisabled, + RuntimeProtectionEnforcementLevelOnDemand, + RuntimeProtectionEnforcementLevelPassive, + RuntimeProtectionEnforcementLevelRealTime, + } +} + // SkipShutdown - The indicator of whether to skip the graceful OS shutdown and power off the virtual machine immediately. type SkipShutdown string diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/baremetalmachines_server.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/baremetalmachines_server.go index 9bf5156c375f..d7b9a3c275d8 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/baremetalmachines_server.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/baremetalmachines_server.go @@ -26,7 +26,7 @@ import ( // BareMetalMachinesServer is a fake server for instances of the armnetworkcloud.BareMetalMachinesClient type. type BareMetalMachinesServer struct { // BeginCordon is the fake for method BareMetalMachinesClient.BeginCordon - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginCordon func(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *armnetworkcloud.BareMetalMachinesClientBeginCordonOptions) (resp azfake.PollerResponder[armnetworkcloud.BareMetalMachinesClientCordonResponse], errResp azfake.ErrorResponder) // BeginCreateOrUpdate is the fake for method BareMetalMachinesClient.BeginCreateOrUpdate @@ -50,39 +50,39 @@ type BareMetalMachinesServer struct { NewListBySubscriptionPager func(options *armnetworkcloud.BareMetalMachinesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armnetworkcloud.BareMetalMachinesClientListBySubscriptionResponse]) // BeginPowerOff is the fake for method BareMetalMachinesClient.BeginPowerOff - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginPowerOff func(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *armnetworkcloud.BareMetalMachinesClientBeginPowerOffOptions) (resp azfake.PollerResponder[armnetworkcloud.BareMetalMachinesClientPowerOffResponse], errResp azfake.ErrorResponder) // BeginReimage is the fake for method BareMetalMachinesClient.BeginReimage - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginReimage func(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *armnetworkcloud.BareMetalMachinesClientBeginReimageOptions) (resp azfake.PollerResponder[armnetworkcloud.BareMetalMachinesClientReimageResponse], errResp azfake.ErrorResponder) // BeginReplace is the fake for method BareMetalMachinesClient.BeginReplace - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginReplace func(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *armnetworkcloud.BareMetalMachinesClientBeginReplaceOptions) (resp azfake.PollerResponder[armnetworkcloud.BareMetalMachinesClientReplaceResponse], errResp azfake.ErrorResponder) // BeginRestart is the fake for method BareMetalMachinesClient.BeginRestart - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginRestart func(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *armnetworkcloud.BareMetalMachinesClientBeginRestartOptions) (resp azfake.PollerResponder[armnetworkcloud.BareMetalMachinesClientRestartResponse], errResp azfake.ErrorResponder) // BeginRunCommand is the fake for method BareMetalMachinesClient.BeginRunCommand - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginRunCommand func(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineRunCommandParameters armnetworkcloud.BareMetalMachineRunCommandParameters, options *armnetworkcloud.BareMetalMachinesClientBeginRunCommandOptions) (resp azfake.PollerResponder[armnetworkcloud.BareMetalMachinesClientRunCommandResponse], errResp azfake.ErrorResponder) // BeginRunDataExtracts is the fake for method BareMetalMachinesClient.BeginRunDataExtracts - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginRunDataExtracts func(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineRunDataExtractsParameters armnetworkcloud.BareMetalMachineRunDataExtractsParameters, options *armnetworkcloud.BareMetalMachinesClientBeginRunDataExtractsOptions) (resp azfake.PollerResponder[armnetworkcloud.BareMetalMachinesClientRunDataExtractsResponse], errResp azfake.ErrorResponder) // BeginRunReadCommands is the fake for method BareMetalMachinesClient.BeginRunReadCommands - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginRunReadCommands func(ctx context.Context, resourceGroupName string, bareMetalMachineName string, bareMetalMachineRunReadCommandsParameters armnetworkcloud.BareMetalMachineRunReadCommandsParameters, options *armnetworkcloud.BareMetalMachinesClientBeginRunReadCommandsOptions) (resp azfake.PollerResponder[armnetworkcloud.BareMetalMachinesClientRunReadCommandsResponse], errResp azfake.ErrorResponder) // BeginStart is the fake for method BareMetalMachinesClient.BeginStart - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginStart func(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *armnetworkcloud.BareMetalMachinesClientBeginStartOptions) (resp azfake.PollerResponder[armnetworkcloud.BareMetalMachinesClientStartResponse], errResp azfake.ErrorResponder) // BeginUncordon is the fake for method BareMetalMachinesClient.BeginUncordon - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginUncordon func(ctx context.Context, resourceGroupName string, bareMetalMachineName string, options *armnetworkcloud.BareMetalMachinesClientBeginUncordonOptions) (resp azfake.PollerResponder[armnetworkcloud.BareMetalMachinesClientUncordonResponse], errResp azfake.ErrorResponder) // BeginUpdate is the fake for method BareMetalMachinesClient.BeginUpdate @@ -233,9 +233,9 @@ func (b *BareMetalMachinesServerTransport) dispatchBeginCordon(req *http.Request return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { b.beginCordon.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginCordon) { b.beginCordon.remove(req) @@ -482,9 +482,9 @@ func (b *BareMetalMachinesServerTransport) dispatchBeginPowerOff(req *http.Reque return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { b.beginPowerOff.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginPowerOff) { b.beginPowerOff.remove(req) @@ -526,9 +526,9 @@ func (b *BareMetalMachinesServerTransport) dispatchBeginReimage(req *http.Reques return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { b.beginReimage.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginReimage) { b.beginReimage.remove(req) @@ -580,9 +580,9 @@ func (b *BareMetalMachinesServerTransport) dispatchBeginReplace(req *http.Reques return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { b.beginReplace.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginReplace) { b.beginReplace.remove(req) @@ -624,9 +624,9 @@ func (b *BareMetalMachinesServerTransport) dispatchBeginRestart(req *http.Reques return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { b.beginRestart.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginRestart) { b.beginRestart.remove(req) @@ -672,9 +672,9 @@ func (b *BareMetalMachinesServerTransport) dispatchBeginRunCommand(req *http.Req return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { b.beginRunCommand.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginRunCommand) { b.beginRunCommand.remove(req) @@ -720,9 +720,9 @@ func (b *BareMetalMachinesServerTransport) dispatchBeginRunDataExtracts(req *htt return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { b.beginRunDataExtracts.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginRunDataExtracts) { b.beginRunDataExtracts.remove(req) @@ -768,9 +768,9 @@ func (b *BareMetalMachinesServerTransport) dispatchBeginRunReadCommands(req *htt return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { b.beginRunReadCommands.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginRunReadCommands) { b.beginRunReadCommands.remove(req) @@ -812,9 +812,9 @@ func (b *BareMetalMachinesServerTransport) dispatchBeginStart(req *http.Request) return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { b.beginStart.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginStart) { b.beginStart.remove(req) @@ -856,9 +856,9 @@ func (b *BareMetalMachinesServerTransport) dispatchBeginUncordon(req *http.Reque return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { b.beginUncordon.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginUncordon) { b.beginUncordon.remove(req) diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/clusters_server.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/clusters_server.go index 2b17bb426911..18e681441812 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/clusters_server.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/clusters_server.go @@ -25,6 +25,10 @@ import ( // ClustersServer is a fake server for instances of the armnetworkcloud.ClustersClient type. type ClustersServer struct { + // BeginContinueUpdateVersion is the fake for method ClustersClient.BeginContinueUpdateVersion + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + BeginContinueUpdateVersion func(ctx context.Context, resourceGroupName string, clusterName string, clusterContinueUpdateVersionParameters armnetworkcloud.ClusterContinueUpdateVersionParameters, options *armnetworkcloud.ClustersClientBeginContinueUpdateVersionOptions) (resp azfake.PollerResponder[armnetworkcloud.ClustersClientContinueUpdateVersionResponse], errResp azfake.ErrorResponder) + // BeginCreateOrUpdate is the fake for method ClustersClient.BeginCreateOrUpdate // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, clusterName string, clusterParameters armnetworkcloud.Cluster, options *armnetworkcloud.ClustersClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armnetworkcloud.ClustersClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) @@ -34,7 +38,7 @@ type ClustersServer struct { BeginDelete func(ctx context.Context, resourceGroupName string, clusterName string, options *armnetworkcloud.ClustersClientBeginDeleteOptions) (resp azfake.PollerResponder[armnetworkcloud.ClustersClientDeleteResponse], errResp azfake.ErrorResponder) // BeginDeploy is the fake for method ClustersClient.BeginDeploy - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginDeploy func(ctx context.Context, resourceGroupName string, clusterName string, options *armnetworkcloud.ClustersClientBeginDeployOptions) (resp azfake.PollerResponder[armnetworkcloud.ClustersClientDeployResponse], errResp azfake.ErrorResponder) // Get is the fake for method ClustersClient.Get @@ -49,12 +53,16 @@ type ClustersServer struct { // HTTP status codes to indicate success: http.StatusOK NewListBySubscriptionPager func(options *armnetworkcloud.ClustersClientListBySubscriptionOptions) (resp azfake.PagerResponder[armnetworkcloud.ClustersClientListBySubscriptionResponse]) + // BeginScanRuntime is the fake for method ClustersClient.BeginScanRuntime + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + BeginScanRuntime func(ctx context.Context, resourceGroupName string, clusterName string, options *armnetworkcloud.ClustersClientBeginScanRuntimeOptions) (resp azfake.PollerResponder[armnetworkcloud.ClustersClientScanRuntimeResponse], errResp azfake.ErrorResponder) + // BeginUpdate is the fake for method ClustersClient.BeginUpdate // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginUpdate func(ctx context.Context, resourceGroupName string, clusterName string, clusterUpdateParameters armnetworkcloud.ClusterPatchParameters, options *armnetworkcloud.ClustersClientBeginUpdateOptions) (resp azfake.PollerResponder[armnetworkcloud.ClustersClientUpdateResponse], errResp azfake.ErrorResponder) // BeginUpdateVersion is the fake for method ClustersClient.BeginUpdateVersion - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginUpdateVersion func(ctx context.Context, resourceGroupName string, clusterName string, clusterUpdateVersionParameters armnetworkcloud.ClusterUpdateVersionParameters, options *armnetworkcloud.ClustersClientBeginUpdateVersionOptions) (resp azfake.PollerResponder[armnetworkcloud.ClustersClientUpdateVersionResponse], errResp azfake.ErrorResponder) } @@ -64,11 +72,13 @@ type ClustersServer struct { func NewClustersServerTransport(srv *ClustersServer) *ClustersServerTransport { return &ClustersServerTransport{ srv: srv, + beginContinueUpdateVersion: newTracker[azfake.PollerResponder[armnetworkcloud.ClustersClientContinueUpdateVersionResponse]](), beginCreateOrUpdate: newTracker[azfake.PollerResponder[armnetworkcloud.ClustersClientCreateOrUpdateResponse]](), beginDelete: newTracker[azfake.PollerResponder[armnetworkcloud.ClustersClientDeleteResponse]](), beginDeploy: newTracker[azfake.PollerResponder[armnetworkcloud.ClustersClientDeployResponse]](), newListByResourceGroupPager: newTracker[azfake.PagerResponder[armnetworkcloud.ClustersClientListByResourceGroupResponse]](), newListBySubscriptionPager: newTracker[azfake.PagerResponder[armnetworkcloud.ClustersClientListBySubscriptionResponse]](), + beginScanRuntime: newTracker[azfake.PollerResponder[armnetworkcloud.ClustersClientScanRuntimeResponse]](), beginUpdate: newTracker[azfake.PollerResponder[armnetworkcloud.ClustersClientUpdateResponse]](), beginUpdateVersion: newTracker[azfake.PollerResponder[armnetworkcloud.ClustersClientUpdateVersionResponse]](), } @@ -78,11 +88,13 @@ func NewClustersServerTransport(srv *ClustersServer) *ClustersServerTransport { // Don't use this type directly, use NewClustersServerTransport instead. type ClustersServerTransport struct { srv *ClustersServer + beginContinueUpdateVersion *tracker[azfake.PollerResponder[armnetworkcloud.ClustersClientContinueUpdateVersionResponse]] beginCreateOrUpdate *tracker[azfake.PollerResponder[armnetworkcloud.ClustersClientCreateOrUpdateResponse]] beginDelete *tracker[azfake.PollerResponder[armnetworkcloud.ClustersClientDeleteResponse]] beginDeploy *tracker[azfake.PollerResponder[armnetworkcloud.ClustersClientDeployResponse]] newListByResourceGroupPager *tracker[azfake.PagerResponder[armnetworkcloud.ClustersClientListByResourceGroupResponse]] newListBySubscriptionPager *tracker[azfake.PagerResponder[armnetworkcloud.ClustersClientListBySubscriptionResponse]] + beginScanRuntime *tracker[azfake.PollerResponder[armnetworkcloud.ClustersClientScanRuntimeResponse]] beginUpdate *tracker[azfake.PollerResponder[armnetworkcloud.ClustersClientUpdateResponse]] beginUpdateVersion *tracker[azfake.PollerResponder[armnetworkcloud.ClustersClientUpdateVersionResponse]] } @@ -99,6 +111,8 @@ func (c *ClustersServerTransport) Do(req *http.Request) (*http.Response, error) var err error switch method { + case "ClustersClient.BeginContinueUpdateVersion": + resp, err = c.dispatchBeginContinueUpdateVersion(req) case "ClustersClient.BeginCreateOrUpdate": resp, err = c.dispatchBeginCreateOrUpdate(req) case "ClustersClient.BeginDelete": @@ -111,6 +125,8 @@ func (c *ClustersServerTransport) Do(req *http.Request) (*http.Response, error) resp, err = c.dispatchNewListByResourceGroupPager(req) case "ClustersClient.NewListBySubscriptionPager": resp, err = c.dispatchNewListBySubscriptionPager(req) + case "ClustersClient.BeginScanRuntime": + resp, err = c.dispatchBeginScanRuntime(req) case "ClustersClient.BeginUpdate": resp, err = c.dispatchBeginUpdate(req) case "ClustersClient.BeginUpdateVersion": @@ -126,6 +142,54 @@ func (c *ClustersServerTransport) Do(req *http.Request) (*http.Response, error) return resp, nil } +func (c *ClustersServerTransport) dispatchBeginContinueUpdateVersion(req *http.Request) (*http.Response, error) { + if c.srv.BeginContinueUpdateVersion == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginContinueUpdateVersion not implemented")} + } + beginContinueUpdateVersion := c.beginContinueUpdateVersion.get(req) + if beginContinueUpdateVersion == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.NetworkCloud/clusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/continueUpdateVersion` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 3 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armnetworkcloud.ClusterContinueUpdateVersionParameters](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + clusterNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("clusterName")]) + if err != nil { + return nil, err + } + respr, errRespr := c.srv.BeginContinueUpdateVersion(req.Context(), resourceGroupNameParam, clusterNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginContinueUpdateVersion = &respr + c.beginContinueUpdateVersion.add(req, beginContinueUpdateVersion) + } + + resp, err := server.PollerResponderNext(beginContinueUpdateVersion, req) + if err != nil { + return nil, err + } + + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + c.beginContinueUpdateVersion.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + } + if !server.PollerResponderMore(beginContinueUpdateVersion) { + c.beginContinueUpdateVersion.remove(req) + } + + return resp, nil +} + func (c *ClustersServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) (*http.Response, error) { if c.srv.BeginCreateOrUpdate == nil { return nil, &nonRetriableError{errors.New("fake for method BeginCreateOrUpdate not implemented")} @@ -261,9 +325,9 @@ func (c *ClustersServerTransport) dispatchBeginDeploy(req *http.Request) (*http. return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { c.beginDeploy.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginDeploy) { c.beginDeploy.remove(req) @@ -375,6 +439,60 @@ func (c *ClustersServerTransport) dispatchNewListBySubscriptionPager(req *http.R return resp, nil } +func (c *ClustersServerTransport) dispatchBeginScanRuntime(req *http.Request) (*http.Response, error) { + if c.srv.BeginScanRuntime == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginScanRuntime not implemented")} + } + beginScanRuntime := c.beginScanRuntime.get(req) + if beginScanRuntime == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.NetworkCloud/clusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/scanRuntime` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 3 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armnetworkcloud.ClusterScanRuntimeParameters](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + clusterNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("clusterName")]) + if err != nil { + return nil, err + } + var options *armnetworkcloud.ClustersClientBeginScanRuntimeOptions + if !reflect.ValueOf(body).IsZero() { + options = &armnetworkcloud.ClustersClientBeginScanRuntimeOptions{ + ClusterScanRuntimeParameters: &body, + } + } + respr, errRespr := c.srv.BeginScanRuntime(req.Context(), resourceGroupNameParam, clusterNameParam, options) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginScanRuntime = &respr + c.beginScanRuntime.add(req, beginScanRuntime) + } + + resp, err := server.PollerResponderNext(beginScanRuntime, req) + if err != nil { + return nil, err + } + + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + c.beginScanRuntime.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + } + if !server.PollerResponderMore(beginScanRuntime) { + c.beginScanRuntime.remove(req) + } + + return resp, nil +} + func (c *ClustersServerTransport) dispatchBeginUpdate(req *http.Request) (*http.Response, error) { if c.srv.BeginUpdate == nil { return nil, &nonRetriableError{errors.New("fake for method BeginUpdate not implemented")} @@ -460,9 +578,9 @@ func (c *ClustersServerTransport) dispatchBeginUpdateVersion(req *http.Request) return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { c.beginUpdateVersion.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginUpdateVersion) { c.beginUpdateVersion.remove(req) diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/kubernetesclusterfeatures_server.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/kubernetesclusterfeatures_server.go new file mode 100644 index 000000000000..0c2950ba4858 --- /dev/null +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/kubernetesclusterfeatures_server.go @@ -0,0 +1,332 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package fake + +import ( + "context" + "errors" + "fmt" + azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" + "net/http" + "net/url" + "regexp" +) + +// KubernetesClusterFeaturesServer is a fake server for instances of the armnetworkcloud.KubernetesClusterFeaturesClient type. +type KubernetesClusterFeaturesServer struct { + // BeginCreateOrUpdate is the fake for method KubernetesClusterFeaturesClient.BeginCreateOrUpdate + // HTTP status codes to indicate success: http.StatusOK, http.StatusCreated + BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, kubernetesClusterFeatureParameters armnetworkcloud.KubernetesClusterFeature, options *armnetworkcloud.KubernetesClusterFeaturesClientBeginCreateOrUpdateOptions) (resp azfake.PollerResponder[armnetworkcloud.KubernetesClusterFeaturesClientCreateOrUpdateResponse], errResp azfake.ErrorResponder) + + // BeginDelete is the fake for method KubernetesClusterFeaturesClient.BeginDelete + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + BeginDelete func(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, options *armnetworkcloud.KubernetesClusterFeaturesClientBeginDeleteOptions) (resp azfake.PollerResponder[armnetworkcloud.KubernetesClusterFeaturesClientDeleteResponse], errResp azfake.ErrorResponder) + + // Get is the fake for method KubernetesClusterFeaturesClient.Get + // HTTP status codes to indicate success: http.StatusOK + Get func(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, options *armnetworkcloud.KubernetesClusterFeaturesClientGetOptions) (resp azfake.Responder[armnetworkcloud.KubernetesClusterFeaturesClientGetResponse], errResp azfake.ErrorResponder) + + // NewListByKubernetesClusterPager is the fake for method KubernetesClusterFeaturesClient.NewListByKubernetesClusterPager + // HTTP status codes to indicate success: http.StatusOK + NewListByKubernetesClusterPager func(resourceGroupName string, kubernetesClusterName string, options *armnetworkcloud.KubernetesClusterFeaturesClientListByKubernetesClusterOptions) (resp azfake.PagerResponder[armnetworkcloud.KubernetesClusterFeaturesClientListByKubernetesClusterResponse]) + + // BeginUpdate is the fake for method KubernetesClusterFeaturesClient.BeginUpdate + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted + BeginUpdate func(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, kubernetesClusterFeatureUpdateParameters armnetworkcloud.KubernetesClusterFeaturePatchParameters, options *armnetworkcloud.KubernetesClusterFeaturesClientBeginUpdateOptions) (resp azfake.PollerResponder[armnetworkcloud.KubernetesClusterFeaturesClientUpdateResponse], errResp azfake.ErrorResponder) +} + +// NewKubernetesClusterFeaturesServerTransport creates a new instance of KubernetesClusterFeaturesServerTransport with the provided implementation. +// The returned KubernetesClusterFeaturesServerTransport instance is connected to an instance of armnetworkcloud.KubernetesClusterFeaturesClient via the +// azcore.ClientOptions.Transporter field in the client's constructor parameters. +func NewKubernetesClusterFeaturesServerTransport(srv *KubernetesClusterFeaturesServer) *KubernetesClusterFeaturesServerTransport { + return &KubernetesClusterFeaturesServerTransport{ + srv: srv, + beginCreateOrUpdate: newTracker[azfake.PollerResponder[armnetworkcloud.KubernetesClusterFeaturesClientCreateOrUpdateResponse]](), + beginDelete: newTracker[azfake.PollerResponder[armnetworkcloud.KubernetesClusterFeaturesClientDeleteResponse]](), + newListByKubernetesClusterPager: newTracker[azfake.PagerResponder[armnetworkcloud.KubernetesClusterFeaturesClientListByKubernetesClusterResponse]](), + beginUpdate: newTracker[azfake.PollerResponder[armnetworkcloud.KubernetesClusterFeaturesClientUpdateResponse]](), + } +} + +// KubernetesClusterFeaturesServerTransport connects instances of armnetworkcloud.KubernetesClusterFeaturesClient to instances of KubernetesClusterFeaturesServer. +// Don't use this type directly, use NewKubernetesClusterFeaturesServerTransport instead. +type KubernetesClusterFeaturesServerTransport struct { + srv *KubernetesClusterFeaturesServer + beginCreateOrUpdate *tracker[azfake.PollerResponder[armnetworkcloud.KubernetesClusterFeaturesClientCreateOrUpdateResponse]] + beginDelete *tracker[azfake.PollerResponder[armnetworkcloud.KubernetesClusterFeaturesClientDeleteResponse]] + newListByKubernetesClusterPager *tracker[azfake.PagerResponder[armnetworkcloud.KubernetesClusterFeaturesClientListByKubernetesClusterResponse]] + beginUpdate *tracker[azfake.PollerResponder[armnetworkcloud.KubernetesClusterFeaturesClientUpdateResponse]] +} + +// Do implements the policy.Transporter interface for KubernetesClusterFeaturesServerTransport. +func (k *KubernetesClusterFeaturesServerTransport) Do(req *http.Request) (*http.Response, error) { + rawMethod := req.Context().Value(runtime.CtxAPINameKey{}) + method, ok := rawMethod.(string) + if !ok { + return nil, nonRetriableError{errors.New("unable to dispatch request, missing value for CtxAPINameKey")} + } + + var resp *http.Response + var err error + + switch method { + case "KubernetesClusterFeaturesClient.BeginCreateOrUpdate": + resp, err = k.dispatchBeginCreateOrUpdate(req) + case "KubernetesClusterFeaturesClient.BeginDelete": + resp, err = k.dispatchBeginDelete(req) + case "KubernetesClusterFeaturesClient.Get": + resp, err = k.dispatchGet(req) + case "KubernetesClusterFeaturesClient.NewListByKubernetesClusterPager": + resp, err = k.dispatchNewListByKubernetesClusterPager(req) + case "KubernetesClusterFeaturesClient.BeginUpdate": + resp, err = k.dispatchBeginUpdate(req) + default: + err = fmt.Errorf("unhandled API %s", method) + } + + if err != nil { + return nil, err + } + + return resp, nil +} + +func (k *KubernetesClusterFeaturesServerTransport) dispatchBeginCreateOrUpdate(req *http.Request) (*http.Response, error) { + if k.srv.BeginCreateOrUpdate == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginCreateOrUpdate not implemented")} + } + beginCreateOrUpdate := k.beginCreateOrUpdate.get(req) + if beginCreateOrUpdate == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.NetworkCloud/kubernetesClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/features/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armnetworkcloud.KubernetesClusterFeature](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + kubernetesClusterNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("kubernetesClusterName")]) + if err != nil { + return nil, err + } + featureNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("featureName")]) + if err != nil { + return nil, err + } + respr, errRespr := k.srv.BeginCreateOrUpdate(req.Context(), resourceGroupNameParam, kubernetesClusterNameParam, featureNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginCreateOrUpdate = &respr + k.beginCreateOrUpdate.add(req, beginCreateOrUpdate) + } + + resp, err := server.PollerResponderNext(beginCreateOrUpdate, req) + if err != nil { + return nil, err + } + + if !contains([]int{http.StatusOK, http.StatusCreated}, resp.StatusCode) { + k.beginCreateOrUpdate.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusCreated", resp.StatusCode)} + } + if !server.PollerResponderMore(beginCreateOrUpdate) { + k.beginCreateOrUpdate.remove(req) + } + + return resp, nil +} + +func (k *KubernetesClusterFeaturesServerTransport) dispatchBeginDelete(req *http.Request) (*http.Response, error) { + if k.srv.BeginDelete == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginDelete not implemented")} + } + beginDelete := k.beginDelete.get(req) + if beginDelete == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.NetworkCloud/kubernetesClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/features/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + kubernetesClusterNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("kubernetesClusterName")]) + if err != nil { + return nil, err + } + featureNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("featureName")]) + if err != nil { + return nil, err + } + respr, errRespr := k.srv.BeginDelete(req.Context(), resourceGroupNameParam, kubernetesClusterNameParam, featureNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginDelete = &respr + k.beginDelete.add(req, beginDelete) + } + + resp, err := server.PollerResponderNext(beginDelete, req) + if err != nil { + return nil, err + } + + if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + k.beginDelete.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + } + if !server.PollerResponderMore(beginDelete) { + k.beginDelete.remove(req) + } + + return resp, nil +} + +func (k *KubernetesClusterFeaturesServerTransport) dispatchGet(req *http.Request) (*http.Response, error) { + if k.srv.Get == nil { + return nil, &nonRetriableError{errors.New("fake for method Get not implemented")} + } + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.NetworkCloud/kubernetesClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/features/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + kubernetesClusterNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("kubernetesClusterName")]) + if err != nil { + return nil, err + } + featureNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("featureName")]) + if err != nil { + return nil, err + } + respr, errRespr := k.srv.Get(req.Context(), resourceGroupNameParam, kubernetesClusterNameParam, featureNameParam, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + respContent := server.GetResponseContent(respr) + if !contains([]int{http.StatusOK}, respContent.HTTPStatus) { + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", respContent.HTTPStatus)} + } + resp, err := server.MarshalResponseAsJSON(respContent, server.GetResponse(respr).KubernetesClusterFeature, req) + if err != nil { + return nil, err + } + return resp, nil +} + +func (k *KubernetesClusterFeaturesServerTransport) dispatchNewListByKubernetesClusterPager(req *http.Request) (*http.Response, error) { + if k.srv.NewListByKubernetesClusterPager == nil { + return nil, &nonRetriableError{errors.New("fake for method NewListByKubernetesClusterPager not implemented")} + } + newListByKubernetesClusterPager := k.newListByKubernetesClusterPager.get(req) + if newListByKubernetesClusterPager == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.NetworkCloud/kubernetesClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/features` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 3 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + kubernetesClusterNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("kubernetesClusterName")]) + if err != nil { + return nil, err + } + resp := k.srv.NewListByKubernetesClusterPager(resourceGroupNameParam, kubernetesClusterNameParam, nil) + newListByKubernetesClusterPager = &resp + k.newListByKubernetesClusterPager.add(req, newListByKubernetesClusterPager) + server.PagerResponderInjectNextLinks(newListByKubernetesClusterPager, req, func(page *armnetworkcloud.KubernetesClusterFeaturesClientListByKubernetesClusterResponse, createLink func() string) { + page.NextLink = to.Ptr(createLink()) + }) + } + resp, err := server.PagerResponderNext(newListByKubernetesClusterPager, req) + if err != nil { + return nil, err + } + if !contains([]int{http.StatusOK}, resp.StatusCode) { + k.newListByKubernetesClusterPager.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)} + } + if !server.PagerResponderMore(newListByKubernetesClusterPager) { + k.newListByKubernetesClusterPager.remove(req) + } + return resp, nil +} + +func (k *KubernetesClusterFeaturesServerTransport) dispatchBeginUpdate(req *http.Request) (*http.Response, error) { + if k.srv.BeginUpdate == nil { + return nil, &nonRetriableError{errors.New("fake for method BeginUpdate not implemented")} + } + beginUpdate := k.beginUpdate.get(req) + if beginUpdate == nil { + const regexStr = `/subscriptions/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.NetworkCloud/kubernetesClusters/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/features/(?P[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)` + regex := regexp.MustCompile(regexStr) + matches := regex.FindStringSubmatch(req.URL.EscapedPath()) + if matches == nil || len(matches) < 4 { + return nil, fmt.Errorf("failed to parse path %s", req.URL.Path) + } + body, err := server.UnmarshalRequestAsJSON[armnetworkcloud.KubernetesClusterFeaturePatchParameters](req) + if err != nil { + return nil, err + } + resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")]) + if err != nil { + return nil, err + } + kubernetesClusterNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("kubernetesClusterName")]) + if err != nil { + return nil, err + } + featureNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("featureName")]) + if err != nil { + return nil, err + } + respr, errRespr := k.srv.BeginUpdate(req.Context(), resourceGroupNameParam, kubernetesClusterNameParam, featureNameParam, body, nil) + if respErr := server.GetError(errRespr, req); respErr != nil { + return nil, respErr + } + beginUpdate = &respr + k.beginUpdate.add(req, beginUpdate) + } + + resp, err := server.PollerResponderNext(beginUpdate, req) + if err != nil { + return nil, err + } + + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { + k.beginUpdate.remove(req) + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} + } + if !server.PollerResponderMore(beginUpdate) { + k.beginUpdate.remove(req) + } + + return resp, nil +} diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/kubernetesclusters_server.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/kubernetesclusters_server.go index 39a4a0c24b35..a69387b3f270 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/kubernetesclusters_server.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/kubernetesclusters_server.go @@ -45,7 +45,7 @@ type KubernetesClustersServer struct { NewListBySubscriptionPager func(options *armnetworkcloud.KubernetesClustersClientListBySubscriptionOptions) (resp azfake.PagerResponder[armnetworkcloud.KubernetesClustersClientListBySubscriptionResponse]) // BeginRestartNode is the fake for method KubernetesClustersClient.BeginRestartNode - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginRestartNode func(ctx context.Context, resourceGroupName string, kubernetesClusterName string, kubernetesClusterRestartNodeParameters armnetworkcloud.KubernetesClusterRestartNodeParameters, options *armnetworkcloud.KubernetesClustersClientBeginRestartNodeOptions) (resp azfake.PollerResponder[armnetworkcloud.KubernetesClustersClientRestartNodeResponse], errResp azfake.ErrorResponder) // BeginUpdate is the fake for method KubernetesClustersClient.BeginUpdate @@ -349,9 +349,9 @@ func (k *KubernetesClustersServerTransport) dispatchBeginRestartNode(req *http.R return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { k.beginRestartNode.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginRestartNode) { k.beginRestartNode.remove(req) diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/server_factory.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/server_factory.go index 79b118f09c8d..241b039b6903 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/server_factory.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/server_factory.go @@ -19,25 +19,26 @@ import ( // ServerFactory is a fake server for instances of the armnetworkcloud.ClientFactory type. type ServerFactory struct { - AgentPoolsServer AgentPoolsServer - BareMetalMachineKeySetsServer BareMetalMachineKeySetsServer - BareMetalMachinesServer BareMetalMachinesServer - BmcKeySetsServer BmcKeySetsServer - CloudServicesNetworksServer CloudServicesNetworksServer - ClusterManagersServer ClusterManagersServer - ClustersServer ClustersServer - ConsolesServer ConsolesServer - KubernetesClustersServer KubernetesClustersServer - L2NetworksServer L2NetworksServer - L3NetworksServer L3NetworksServer - MetricsConfigurationsServer MetricsConfigurationsServer - OperationsServer OperationsServer - RackSKUsServer RackSKUsServer - RacksServer RacksServer - StorageAppliancesServer StorageAppliancesServer - TrunkedNetworksServer TrunkedNetworksServer - VirtualMachinesServer VirtualMachinesServer - VolumesServer VolumesServer + AgentPoolsServer AgentPoolsServer + BareMetalMachineKeySetsServer BareMetalMachineKeySetsServer + BareMetalMachinesServer BareMetalMachinesServer + BmcKeySetsServer BmcKeySetsServer + CloudServicesNetworksServer CloudServicesNetworksServer + ClusterManagersServer ClusterManagersServer + ClustersServer ClustersServer + ConsolesServer ConsolesServer + KubernetesClusterFeaturesServer KubernetesClusterFeaturesServer + KubernetesClustersServer KubernetesClustersServer + L2NetworksServer L2NetworksServer + L3NetworksServer L3NetworksServer + MetricsConfigurationsServer MetricsConfigurationsServer + OperationsServer OperationsServer + RackSKUsServer RackSKUsServer + RacksServer RacksServer + StorageAppliancesServer StorageAppliancesServer + TrunkedNetworksServer TrunkedNetworksServer + VirtualMachinesServer VirtualMachinesServer + VolumesServer VolumesServer } // NewServerFactoryTransport creates a new instance of ServerFactoryTransport with the provided implementation. @@ -52,27 +53,28 @@ func NewServerFactoryTransport(srv *ServerFactory) *ServerFactoryTransport { // ServerFactoryTransport connects instances of armnetworkcloud.ClientFactory to instances of ServerFactory. // Don't use this type directly, use NewServerFactoryTransport instead. type ServerFactoryTransport struct { - srv *ServerFactory - trMu sync.Mutex - trAgentPoolsServer *AgentPoolsServerTransport - trBareMetalMachineKeySetsServer *BareMetalMachineKeySetsServerTransport - trBareMetalMachinesServer *BareMetalMachinesServerTransport - trBmcKeySetsServer *BmcKeySetsServerTransport - trCloudServicesNetworksServer *CloudServicesNetworksServerTransport - trClusterManagersServer *ClusterManagersServerTransport - trClustersServer *ClustersServerTransport - trConsolesServer *ConsolesServerTransport - trKubernetesClustersServer *KubernetesClustersServerTransport - trL2NetworksServer *L2NetworksServerTransport - trL3NetworksServer *L3NetworksServerTransport - trMetricsConfigurationsServer *MetricsConfigurationsServerTransport - trOperationsServer *OperationsServerTransport - trRackSKUsServer *RackSKUsServerTransport - trRacksServer *RacksServerTransport - trStorageAppliancesServer *StorageAppliancesServerTransport - trTrunkedNetworksServer *TrunkedNetworksServerTransport - trVirtualMachinesServer *VirtualMachinesServerTransport - trVolumesServer *VolumesServerTransport + srv *ServerFactory + trMu sync.Mutex + trAgentPoolsServer *AgentPoolsServerTransport + trBareMetalMachineKeySetsServer *BareMetalMachineKeySetsServerTransport + trBareMetalMachinesServer *BareMetalMachinesServerTransport + trBmcKeySetsServer *BmcKeySetsServerTransport + trCloudServicesNetworksServer *CloudServicesNetworksServerTransport + trClusterManagersServer *ClusterManagersServerTransport + trClustersServer *ClustersServerTransport + trConsolesServer *ConsolesServerTransport + trKubernetesClusterFeaturesServer *KubernetesClusterFeaturesServerTransport + trKubernetesClustersServer *KubernetesClustersServerTransport + trL2NetworksServer *L2NetworksServerTransport + trL3NetworksServer *L3NetworksServerTransport + trMetricsConfigurationsServer *MetricsConfigurationsServerTransport + trOperationsServer *OperationsServerTransport + trRackSKUsServer *RackSKUsServerTransport + trRacksServer *RacksServerTransport + trStorageAppliancesServer *StorageAppliancesServerTransport + trTrunkedNetworksServer *TrunkedNetworksServerTransport + trVirtualMachinesServer *VirtualMachinesServerTransport + trVolumesServer *VolumesServerTransport } // Do implements the policy.Transporter interface for ServerFactoryTransport. @@ -120,6 +122,11 @@ func (s *ServerFactoryTransport) Do(req *http.Request) (*http.Response, error) { case "ConsolesClient": initServer(s, &s.trConsolesServer, func() *ConsolesServerTransport { return NewConsolesServerTransport(&s.srv.ConsolesServer) }) resp, err = s.trConsolesServer.Do(req) + case "KubernetesClusterFeaturesClient": + initServer(s, &s.trKubernetesClusterFeaturesServer, func() *KubernetesClusterFeaturesServerTransport { + return NewKubernetesClusterFeaturesServerTransport(&s.srv.KubernetesClusterFeaturesServer) + }) + resp, err = s.trKubernetesClusterFeaturesServer.Do(req) case "KubernetesClustersClient": initServer(s, &s.trKubernetesClustersServer, func() *KubernetesClustersServerTransport { return NewKubernetesClustersServerTransport(&s.srv.KubernetesClustersServer) diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/storageappliances_server.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/storageappliances_server.go index 406f323119f7..902839d08ea1 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/storageappliances_server.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/storageappliances_server.go @@ -34,11 +34,11 @@ type StorageAppliancesServer struct { BeginDelete func(ctx context.Context, resourceGroupName string, storageApplianceName string, options *armnetworkcloud.StorageAppliancesClientBeginDeleteOptions) (resp azfake.PollerResponder[armnetworkcloud.StorageAppliancesClientDeleteResponse], errResp azfake.ErrorResponder) // BeginDisableRemoteVendorManagement is the fake for method StorageAppliancesClient.BeginDisableRemoteVendorManagement - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginDisableRemoteVendorManagement func(ctx context.Context, resourceGroupName string, storageApplianceName string, options *armnetworkcloud.StorageAppliancesClientBeginDisableRemoteVendorManagementOptions) (resp azfake.PollerResponder[armnetworkcloud.StorageAppliancesClientDisableRemoteVendorManagementResponse], errResp azfake.ErrorResponder) // BeginEnableRemoteVendorManagement is the fake for method StorageAppliancesClient.BeginEnableRemoteVendorManagement - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginEnableRemoteVendorManagement func(ctx context.Context, resourceGroupName string, storageApplianceName string, options *armnetworkcloud.StorageAppliancesClientBeginEnableRemoteVendorManagementOptions) (resp azfake.PollerResponder[armnetworkcloud.StorageAppliancesClientEnableRemoteVendorManagementResponse], errResp azfake.ErrorResponder) // Get is the fake for method StorageAppliancesClient.Get @@ -251,9 +251,9 @@ func (s *StorageAppliancesServerTransport) dispatchBeginDisableRemoteVendorManag return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { s.beginDisableRemoteVendorManagement.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginDisableRemoteVendorManagement) { s.beginDisableRemoteVendorManagement.remove(req) @@ -305,9 +305,9 @@ func (s *StorageAppliancesServerTransport) dispatchBeginEnableRemoteVendorManage return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { s.beginEnableRemoteVendorManagement.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginEnableRemoteVendorManagement) { s.beginEnableRemoteVendorManagement.remove(req) diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/time_rfc3339.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/time_rfc3339.go index b0535a7b63e6..81f308b0d343 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/time_rfc3339.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/time_rfc3339.go @@ -19,12 +19,16 @@ import ( ) // Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. -var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`) +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) const ( - utcDateTimeJSON = `"2006-01-02T15:04:05.999999999"` - utcDateTime = "2006-01-02T15:04:05.999999999" - dateTimeJSON = `"` + time.RFC3339Nano + `"` + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` ) type dateTimeRFC3339 time.Time @@ -40,17 +44,33 @@ func (t dateTimeRFC3339) MarshalText() ([]byte, error) { } func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { - layout := utcDateTimeJSON - if tzOffsetRegex.Match(data) { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT } return t.Parse(layout, string(data)) } func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { - layout := utcDateTime - if tzOffsetRegex.Match(data) { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT } return t.Parse(layout, string(data)) } @@ -61,6 +81,10 @@ func (t *dateTimeRFC3339) Parse(layout, value string) error { return err } +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return @@ -74,7 +98,7 @@ func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { } func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || strings.EqualFold(string(data), "null") { + if data == nil || string(data) == "null" { return nil } var aux dateTimeRFC3339 diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/virtualmachines_server.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/virtualmachines_server.go index de7068097386..38af3483668b 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/virtualmachines_server.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/fake/virtualmachines_server.go @@ -46,19 +46,19 @@ type VirtualMachinesServer struct { NewListBySubscriptionPager func(options *armnetworkcloud.VirtualMachinesClientListBySubscriptionOptions) (resp azfake.PagerResponder[armnetworkcloud.VirtualMachinesClientListBySubscriptionResponse]) // BeginPowerOff is the fake for method VirtualMachinesClient.BeginPowerOff - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginPowerOff func(ctx context.Context, resourceGroupName string, virtualMachineName string, options *armnetworkcloud.VirtualMachinesClientBeginPowerOffOptions) (resp azfake.PollerResponder[armnetworkcloud.VirtualMachinesClientPowerOffResponse], errResp azfake.ErrorResponder) // BeginReimage is the fake for method VirtualMachinesClient.BeginReimage - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginReimage func(ctx context.Context, resourceGroupName string, virtualMachineName string, options *armnetworkcloud.VirtualMachinesClientBeginReimageOptions) (resp azfake.PollerResponder[armnetworkcloud.VirtualMachinesClientReimageResponse], errResp azfake.ErrorResponder) // BeginRestart is the fake for method VirtualMachinesClient.BeginRestart - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginRestart func(ctx context.Context, resourceGroupName string, virtualMachineName string, options *armnetworkcloud.VirtualMachinesClientBeginRestartOptions) (resp azfake.PollerResponder[armnetworkcloud.VirtualMachinesClientRestartResponse], errResp azfake.ErrorResponder) // BeginStart is the fake for method VirtualMachinesClient.BeginStart - // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted, http.StatusNoContent + // HTTP status codes to indicate success: http.StatusOK, http.StatusAccepted BeginStart func(ctx context.Context, resourceGroupName string, virtualMachineName string, options *armnetworkcloud.VirtualMachinesClientBeginStartOptions) (resp azfake.PollerResponder[armnetworkcloud.VirtualMachinesClientStartResponse], errResp azfake.ErrorResponder) // BeginUpdate is the fake for method VirtualMachinesClient.BeginUpdate @@ -380,9 +380,9 @@ func (v *VirtualMachinesServerTransport) dispatchBeginPowerOff(req *http.Request return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { v.beginPowerOff.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginPowerOff) { v.beginPowerOff.remove(req) @@ -424,9 +424,9 @@ func (v *VirtualMachinesServerTransport) dispatchBeginReimage(req *http.Request) return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { v.beginReimage.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginReimage) { v.beginReimage.remove(req) @@ -468,9 +468,9 @@ func (v *VirtualMachinesServerTransport) dispatchBeginRestart(req *http.Request) return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { v.beginRestart.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginRestart) { v.beginRestart.remove(req) @@ -512,9 +512,9 @@ func (v *VirtualMachinesServerTransport) dispatchBeginStart(req *http.Request) ( return nil, err } - if !contains([]int{http.StatusOK, http.StatusAccepted, http.StatusNoContent}, resp.StatusCode) { + if !contains([]int{http.StatusOK, http.StatusAccepted}, resp.StatusCode) { v.beginStart.remove(req) - return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted, http.StatusNoContent", resp.StatusCode)} + return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK, http.StatusAccepted", resp.StatusCode)} } if !server.PollerResponderMore(beginStart) { v.beginStart.remove(req) diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client.go new file mode 100644 index 000000000000..b4d43ff82231 --- /dev/null +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client.go @@ -0,0 +1,434 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armnetworkcloud + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// KubernetesClusterFeaturesClient contains the methods for the KubernetesClusterFeatures group. +// Don't use this type directly, use NewKubernetesClusterFeaturesClient() instead. +type KubernetesClusterFeaturesClient struct { + internal *arm.Client + subscriptionID string +} + +// NewKubernetesClusterFeaturesClient creates a new instance of KubernetesClusterFeaturesClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewKubernetesClusterFeaturesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KubernetesClusterFeaturesClient, error) { + cl, err := arm.NewClient(moduleName, moduleVersion, credential, options) + if err != nil { + return nil, err + } + client := &KubernetesClusterFeaturesClient{ + subscriptionID: subscriptionID, + internal: cl, + } + return client, nil +} + +// BeginCreateOrUpdate - Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if +// it exists. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-06-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - kubernetesClusterName - The name of the Kubernetes cluster. +// - featureName - The name of the feature. +// - kubernetesClusterFeatureParameters - The request body. +// - options - KubernetesClusterFeaturesClientBeginCreateOrUpdateOptions contains the optional parameters for the KubernetesClusterFeaturesClient.BeginCreateOrUpdate +// method. +func (client *KubernetesClusterFeaturesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, kubernetesClusterFeatureParameters KubernetesClusterFeature, options *KubernetesClusterFeaturesClientBeginCreateOrUpdateOptions) (*runtime.Poller[KubernetesClusterFeaturesClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, kubernetesClusterName, featureName, kubernetesClusterFeatureParameters, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[KubernetesClusterFeaturesClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[KubernetesClusterFeaturesClientCreateOrUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// CreateOrUpdate - Create a new Kubernetes cluster feature or update properties of the Kubernetes cluster feature if it exists. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-06-01-preview +func (client *KubernetesClusterFeaturesClient) createOrUpdate(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, kubernetesClusterFeatureParameters KubernetesClusterFeature, options *KubernetesClusterFeaturesClientBeginCreateOrUpdateOptions) (*http.Response, error) { + var err error + const operationName = "KubernetesClusterFeaturesClient.BeginCreateOrUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, kubernetesClusterName, featureName, kubernetesClusterFeatureParameters, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusCreated) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *KubernetesClusterFeaturesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, kubernetesClusterFeatureParameters KubernetesClusterFeature, options *KubernetesClusterFeaturesClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if kubernetesClusterName == "" { + return nil, errors.New("parameter kubernetesClusterName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{kubernetesClusterName}", url.PathEscape(kubernetesClusterName)) + if featureName == "" { + return nil, errors.New("parameter featureName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{featureName}", url.PathEscape(featureName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-06-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, kubernetesClusterFeatureParameters); err != nil { + return nil, err + } + return req, nil +} + +// BeginDelete - Delete the provided Kubernetes cluster feature. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-06-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - kubernetesClusterName - The name of the Kubernetes cluster. +// - featureName - The name of the feature. +// - options - KubernetesClusterFeaturesClientBeginDeleteOptions contains the optional parameters for the KubernetesClusterFeaturesClient.BeginDelete +// method. +func (client *KubernetesClusterFeaturesClient) BeginDelete(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, options *KubernetesClusterFeaturesClientBeginDeleteOptions) (*runtime.Poller[KubernetesClusterFeaturesClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, kubernetesClusterName, featureName, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[KubernetesClusterFeaturesClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[KubernetesClusterFeaturesClientDeleteResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Delete - Delete the provided Kubernetes cluster feature. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-06-01-preview +func (client *KubernetesClusterFeaturesClient) deleteOperation(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, options *KubernetesClusterFeaturesClientBeginDeleteOptions) (*http.Response, error) { + var err error + const operationName = "KubernetesClusterFeaturesClient.BeginDelete" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.deleteCreateRequest(ctx, resourceGroupName, kubernetesClusterName, featureName, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *KubernetesClusterFeaturesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, options *KubernetesClusterFeaturesClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if kubernetesClusterName == "" { + return nil, errors.New("parameter kubernetesClusterName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{kubernetesClusterName}", url.PathEscape(kubernetesClusterName)) + if featureName == "" { + return nil, errors.New("parameter featureName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{featureName}", url.PathEscape(featureName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-06-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get properties of the provided the Kubernetes cluster feature. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-06-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - kubernetesClusterName - The name of the Kubernetes cluster. +// - featureName - The name of the feature. +// - options - KubernetesClusterFeaturesClientGetOptions contains the optional parameters for the KubernetesClusterFeaturesClient.Get +// method. +func (client *KubernetesClusterFeaturesClient) Get(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, options *KubernetesClusterFeaturesClientGetOptions) (KubernetesClusterFeaturesClientGetResponse, error) { + var err error + const operationName = "KubernetesClusterFeaturesClient.Get" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.getCreateRequest(ctx, resourceGroupName, kubernetesClusterName, featureName, options) + if err != nil { + return KubernetesClusterFeaturesClientGetResponse{}, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return KubernetesClusterFeaturesClientGetResponse{}, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK) { + err = runtime.NewResponseError(httpResp) + return KubernetesClusterFeaturesClientGetResponse{}, err + } + resp, err := client.getHandleResponse(httpResp) + return resp, err +} + +// getCreateRequest creates the Get request. +func (client *KubernetesClusterFeaturesClient) getCreateRequest(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, options *KubernetesClusterFeaturesClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if kubernetesClusterName == "" { + return nil, errors.New("parameter kubernetesClusterName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{kubernetesClusterName}", url.PathEscape(kubernetesClusterName)) + if featureName == "" { + return nil, errors.New("parameter featureName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{featureName}", url.PathEscape(featureName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-06-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *KubernetesClusterFeaturesClient) getHandleResponse(resp *http.Response) (KubernetesClusterFeaturesClientGetResponse, error) { + result := KubernetesClusterFeaturesClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.KubernetesClusterFeature); err != nil { + return KubernetesClusterFeaturesClientGetResponse{}, err + } + return result, nil +} + +// NewListByKubernetesClusterPager - Get a list of features for the provided Kubernetes cluster. +// +// Generated from API version 2024-06-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - kubernetesClusterName - The name of the Kubernetes cluster. +// - options - KubernetesClusterFeaturesClientListByKubernetesClusterOptions contains the optional parameters for the KubernetesClusterFeaturesClient.NewListByKubernetesClusterPager +// method. +func (client *KubernetesClusterFeaturesClient) NewListByKubernetesClusterPager(resourceGroupName string, kubernetesClusterName string, options *KubernetesClusterFeaturesClientListByKubernetesClusterOptions) *runtime.Pager[KubernetesClusterFeaturesClientListByKubernetesClusterResponse] { + return runtime.NewPager(runtime.PagingHandler[KubernetesClusterFeaturesClientListByKubernetesClusterResponse]{ + More: func(page KubernetesClusterFeaturesClientListByKubernetesClusterResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *KubernetesClusterFeaturesClientListByKubernetesClusterResponse) (KubernetesClusterFeaturesClientListByKubernetesClusterResponse, error) { + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, "KubernetesClusterFeaturesClient.NewListByKubernetesClusterPager") + nextLink := "" + if page != nil { + nextLink = *page.NextLink + } + resp, err := runtime.FetcherForNextLink(ctx, client.internal.Pipeline(), nextLink, func(ctx context.Context) (*policy.Request, error) { + return client.listByKubernetesClusterCreateRequest(ctx, resourceGroupName, kubernetesClusterName, options) + }, nil) + if err != nil { + return KubernetesClusterFeaturesClientListByKubernetesClusterResponse{}, err + } + return client.listByKubernetesClusterHandleResponse(resp) + }, + Tracer: client.internal.Tracer(), + }) +} + +// listByKubernetesClusterCreateRequest creates the ListByKubernetesCluster request. +func (client *KubernetesClusterFeaturesClient) listByKubernetesClusterCreateRequest(ctx context.Context, resourceGroupName string, kubernetesClusterName string, options *KubernetesClusterFeaturesClientListByKubernetesClusterOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if kubernetesClusterName == "" { + return nil, errors.New("parameter kubernetesClusterName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{kubernetesClusterName}", url.PathEscape(kubernetesClusterName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-06-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByKubernetesClusterHandleResponse handles the ListByKubernetesCluster response. +func (client *KubernetesClusterFeaturesClient) listByKubernetesClusterHandleResponse(resp *http.Response) (KubernetesClusterFeaturesClientListByKubernetesClusterResponse, error) { + result := KubernetesClusterFeaturesClientListByKubernetesClusterResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.KubernetesClusterFeatureList); err != nil { + return KubernetesClusterFeaturesClientListByKubernetesClusterResponse{}, err + } + return result, nil +} + +// BeginUpdate - Patch properties of the provided Kubernetes cluster feature. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-06-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - kubernetesClusterName - The name of the Kubernetes cluster. +// - featureName - The name of the feature. +// - kubernetesClusterFeatureUpdateParameters - The request body. +// - options - KubernetesClusterFeaturesClientBeginUpdateOptions contains the optional parameters for the KubernetesClusterFeaturesClient.BeginUpdate +// method. +func (client *KubernetesClusterFeaturesClient) BeginUpdate(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, kubernetesClusterFeatureUpdateParameters KubernetesClusterFeaturePatchParameters, options *KubernetesClusterFeaturesClientBeginUpdateOptions) (*runtime.Poller[KubernetesClusterFeaturesClientUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.update(ctx, resourceGroupName, kubernetesClusterName, featureName, kubernetesClusterFeatureUpdateParameters, options) + if err != nil { + return nil, err + } + poller, err := runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[KubernetesClusterFeaturesClientUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Tracer: client.internal.Tracer(), + }) + return poller, err + } else { + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[KubernetesClusterFeaturesClientUpdateResponse]{ + Tracer: client.internal.Tracer(), + }) + } +} + +// Update - Patch properties of the provided Kubernetes cluster feature. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2024-06-01-preview +func (client *KubernetesClusterFeaturesClient) update(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, kubernetesClusterFeatureUpdateParameters KubernetesClusterFeaturePatchParameters, options *KubernetesClusterFeaturesClientBeginUpdateOptions) (*http.Response, error) { + var err error + const operationName = "KubernetesClusterFeaturesClient.BeginUpdate" + ctx = context.WithValue(ctx, runtime.CtxAPINameKey{}, operationName) + ctx, endSpan := runtime.StartSpan(ctx, operationName, client.internal.Tracer(), nil) + defer func() { endSpan(err) }() + req, err := client.updateCreateRequest(ctx, resourceGroupName, kubernetesClusterName, featureName, kubernetesClusterFeatureUpdateParameters, options) + if err != nil { + return nil, err + } + httpResp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { + err = runtime.NewResponseError(httpResp) + return nil, err + } + return httpResp, nil +} + +// updateCreateRequest creates the Update request. +func (client *KubernetesClusterFeaturesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, kubernetesClusterName string, featureName string, kubernetesClusterFeatureUpdateParameters KubernetesClusterFeaturePatchParameters, options *KubernetesClusterFeaturesClientBeginUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/kubernetesClusters/{kubernetesClusterName}/features/{featureName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if kubernetesClusterName == "" { + return nil, errors.New("parameter kubernetesClusterName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{kubernetesClusterName}", url.PathEscape(kubernetesClusterName)) + if featureName == "" { + return nil, errors.New("parameter featureName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{featureName}", url.PathEscape(featureName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.internal.Endpoint(), urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2024-06-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if err := runtime.MarshalAsJSON(req, kubernetesClusterFeatureUpdateParameters); err != nil { + return nil, err + } + return req, nil +} diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client_example_test.go new file mode 100644 index 000000000000..2f95c7530de2 --- /dev/null +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusterfeatures_client_example_test.go @@ -0,0 +1,285 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armnetworkcloud_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_ListByKubernetesCluster.json +func ExampleKubernetesClusterFeaturesClient_NewListByKubernetesClusterPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armnetworkcloud.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := clientFactory.NewKubernetesClusterFeaturesClient().NewListByKubernetesClusterPager("resourceGroupName", "kubernetesClusterName", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.KubernetesClusterFeatureList = armnetworkcloud.KubernetesClusterFeatureList{ + // Value: []*armnetworkcloud.KubernetesClusterFeature{ + // { + // Name: to.Ptr("featureName"), + // Type: to.Ptr("Microsoft.NetworkCloud/kubernetesClusters/features"), + // ID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/kubernetesClusters/kubernetesClusterName/features/featureName"), + // SystemData: &armnetworkcloud.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:27:03.008Z"); return t}()), + // CreatedBy: to.Ptr("identityA"), + // CreatedByType: to.Ptr(armnetworkcloud.CreatedByTypeApplication), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:29:03.001Z"); return t}()), + // LastModifiedBy: to.Ptr("identityB"), + // LastModifiedByType: to.Ptr(armnetworkcloud.CreatedByTypeUser), + // }, + // Location: to.Ptr("location"), + // Tags: map[string]*string{ + // "key1": to.Ptr("myvalue1"), + // "key2": to.Ptr("myvalue2"), + // }, + // Properties: &armnetworkcloud.KubernetesClusterFeatureProperties{ + // AvailabilityLifecycle: to.Ptr(armnetworkcloud.KubernetesClusterFeatureAvailabilityLifecycleGenerallyAvailable), + // DetailedStatus: to.Ptr(armnetworkcloud.KubernetesClusterFeatureDetailedStatusInstalled), + // DetailedStatusMessage: to.Ptr("The feature is successfully installed."), + // Options: []*armnetworkcloud.StringKeyValuePair{ + // { + // Key: to.Ptr("featureOptionName"), + // Value: to.Ptr("featureOptionValue"), + // }}, + // ProvisioningState: to.Ptr(armnetworkcloud.KubernetesClusterFeatureProvisioningStateSucceeded), + // Required: to.Ptr(armnetworkcloud.KubernetesClusterFeatureRequiredTrue), + // Version: to.Ptr("1.2.3"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Get.json +func ExampleKubernetesClusterFeaturesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armnetworkcloud.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := clientFactory.NewKubernetesClusterFeaturesClient().Get(ctx, "resourceGroupName", "kubernetesClusterName", "featureName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.KubernetesClusterFeature = armnetworkcloud.KubernetesClusterFeature{ + // Name: to.Ptr("featureName"), + // Type: to.Ptr("Microsoft.NetworkCloud/kubernetesClusters/features"), + // ID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/kubernetesClusters/kubernetesClusterName/features/featureName"), + // SystemData: &armnetworkcloud.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:27:03.008Z"); return t}()), + // CreatedBy: to.Ptr("identityA"), + // CreatedByType: to.Ptr(armnetworkcloud.CreatedByTypeApplication), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:29:03.001Z"); return t}()), + // LastModifiedBy: to.Ptr("identityB"), + // LastModifiedByType: to.Ptr(armnetworkcloud.CreatedByTypeUser), + // }, + // Location: to.Ptr("location"), + // Tags: map[string]*string{ + // "key1": to.Ptr("myvalue1"), + // "key2": to.Ptr("myvalue2"), + // }, + // Properties: &armnetworkcloud.KubernetesClusterFeatureProperties{ + // AvailabilityLifecycle: to.Ptr(armnetworkcloud.KubernetesClusterFeatureAvailabilityLifecycleGenerallyAvailable), + // DetailedStatus: to.Ptr(armnetworkcloud.KubernetesClusterFeatureDetailedStatusInstalled), + // DetailedStatusMessage: to.Ptr("The feature is successfully installed."), + // Options: []*armnetworkcloud.StringKeyValuePair{ + // { + // Key: to.Ptr("featureOptionName"), + // Value: to.Ptr("featureOptionValue"), + // }}, + // ProvisioningState: to.Ptr(armnetworkcloud.KubernetesClusterFeatureProvisioningStateSucceeded), + // Required: to.Ptr(armnetworkcloud.KubernetesClusterFeatureRequiredTrue), + // Version: to.Ptr("1.2.3"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Create.json +func ExampleKubernetesClusterFeaturesClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armnetworkcloud.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewKubernetesClusterFeaturesClient().BeginCreateOrUpdate(ctx, "resourceGroupName", "kubernetesClusterName", "featureName", armnetworkcloud.KubernetesClusterFeature{ + Location: to.Ptr("location"), + Tags: map[string]*string{ + "key1": to.Ptr("myvalue1"), + "key2": to.Ptr("myvalue2"), + }, + Properties: &armnetworkcloud.KubernetesClusterFeatureProperties{ + Options: []*armnetworkcloud.StringKeyValuePair{ + { + Key: to.Ptr("featureOptionName"), + Value: to.Ptr("featureOptionValue"), + }}, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + res, err := poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.KubernetesClusterFeature = armnetworkcloud.KubernetesClusterFeature{ + // Name: to.Ptr("featureName"), + // Type: to.Ptr("Microsoft.NetworkCloud/kubernetesClusters/features"), + // ID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/kubernetesClusters/kubernetesClusterName/features/featureName"), + // SystemData: &armnetworkcloud.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:27:03.008Z"); return t}()), + // CreatedBy: to.Ptr("identityA"), + // CreatedByType: to.Ptr(armnetworkcloud.CreatedByTypeApplication), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:29:03.001Z"); return t}()), + // LastModifiedBy: to.Ptr("identityB"), + // LastModifiedByType: to.Ptr(armnetworkcloud.CreatedByTypeUser), + // }, + // Location: to.Ptr("location"), + // Tags: map[string]*string{ + // "key1": to.Ptr("myvalue1"), + // "key2": to.Ptr("myvalue2"), + // }, + // Properties: &armnetworkcloud.KubernetesClusterFeatureProperties{ + // AvailabilityLifecycle: to.Ptr(armnetworkcloud.KubernetesClusterFeatureAvailabilityLifecycleGenerallyAvailable), + // DetailedStatus: to.Ptr(armnetworkcloud.KubernetesClusterFeatureDetailedStatusInstalled), + // DetailedStatusMessage: to.Ptr("The feature is successfully installed."), + // Options: []*armnetworkcloud.StringKeyValuePair{ + // { + // Key: to.Ptr("featureOptionName"), + // Value: to.Ptr("featureOptionValue"), + // }}, + // ProvisioningState: to.Ptr(armnetworkcloud.KubernetesClusterFeatureProvisioningStateSucceeded), + // Required: to.Ptr(armnetworkcloud.KubernetesClusterFeatureRequiredTrue), + // Version: to.Ptr("1.2.3"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Delete.json +func ExampleKubernetesClusterFeaturesClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armnetworkcloud.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewKubernetesClusterFeaturesClient().BeginDelete(ctx, "resourceGroupName", "kubernetesClusterName", "featureName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusterFeatures_Patch.json +func ExampleKubernetesClusterFeaturesClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armnetworkcloud.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewKubernetesClusterFeaturesClient().BeginUpdate(ctx, "resourceGroupName", "kubernetesClusterName", "featureName", armnetworkcloud.KubernetesClusterFeaturePatchParameters{ + Properties: &armnetworkcloud.KubernetesClusterFeaturePatchProperties{ + Options: []*armnetworkcloud.StringKeyValuePair{ + { + Key: to.Ptr("featureOptionName"), + Value: to.Ptr("featureOptionValue"), + }}, + }, + Tags: map[string]*string{ + "key1": to.Ptr("myvalue1"), + "key2": to.Ptr("myvalue2"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + res, err := poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.KubernetesClusterFeature = armnetworkcloud.KubernetesClusterFeature{ + // Name: to.Ptr("featureName"), + // Type: to.Ptr("Microsoft.NetworkCloud/kubernetesClusters/features"), + // ID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/kubernetesClusters/kubernetesClusterName/features/featureName"), + // SystemData: &armnetworkcloud.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:27:03.008Z"); return t}()), + // CreatedBy: to.Ptr("identityA"), + // CreatedByType: to.Ptr(armnetworkcloud.CreatedByTypeApplication), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:29:03.001Z"); return t}()), + // LastModifiedBy: to.Ptr("identityB"), + // LastModifiedByType: to.Ptr(armnetworkcloud.CreatedByTypeUser), + // }, + // Location: to.Ptr("location"), + // Tags: map[string]*string{ + // "key1": to.Ptr("myvalue1"), + // "key2": to.Ptr("myvalue2"), + // }, + // Properties: &armnetworkcloud.KubernetesClusterFeatureProperties{ + // AvailabilityLifecycle: to.Ptr(armnetworkcloud.KubernetesClusterFeatureAvailabilityLifecycleGenerallyAvailable), + // DetailedStatus: to.Ptr(armnetworkcloud.KubernetesClusterFeatureDetailedStatusInstalled), + // DetailedStatusMessage: to.Ptr("The feature is successfully installed."), + // Options: []*armnetworkcloud.StringKeyValuePair{ + // { + // Key: to.Ptr("featureOptionName"), + // Value: to.Ptr("featureOptionValue"), + // }}, + // ProvisioningState: to.Ptr(armnetworkcloud.KubernetesClusterFeatureProvisioningStateSucceeded), + // Required: to.Ptr(armnetworkcloud.KubernetesClusterFeatureRequiredTrue), + // Version: to.Ptr("1.2.3"), + // }, + // } +} diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client.go index ab1a8b0f4c32..b92a728a02fa 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client.go @@ -46,7 +46,7 @@ func NewKubernetesClustersClient(subscriptionID string, credential azcore.TokenC // BeginCreateOrUpdate - Create a new Kubernetes cluster or update the properties of the existing one. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - kubernetesClusterParameters - The request body. @@ -73,7 +73,7 @@ func (client *KubernetesClustersClient) BeginCreateOrUpdate(ctx context.Context, // CreateOrUpdate - Create a new Kubernetes cluster or update the properties of the existing one. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *KubernetesClustersClient) createOrUpdate(ctx context.Context, resourceGroupName string, kubernetesClusterName string, kubernetesClusterParameters KubernetesCluster, options *KubernetesClustersClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "KubernetesClustersClient.BeginCreateOrUpdate" @@ -115,7 +115,7 @@ func (client *KubernetesClustersClient) createOrUpdateCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, kubernetesClusterParameters); err != nil { @@ -127,7 +127,7 @@ func (client *KubernetesClustersClient) createOrUpdateCreateRequest(ctx context. // BeginDelete - Delete the provided Kubernetes cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - options - KubernetesClustersClientBeginDeleteOptions contains the optional parameters for the KubernetesClustersClient.BeginDelete @@ -153,7 +153,7 @@ func (client *KubernetesClustersClient) BeginDelete(ctx context.Context, resourc // Delete - Delete the provided Kubernetes cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *KubernetesClustersClient) deleteOperation(ctx context.Context, resourceGroupName string, kubernetesClusterName string, options *KubernetesClustersClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "KubernetesClustersClient.BeginDelete" @@ -195,7 +195,7 @@ func (client *KubernetesClustersClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -204,7 +204,7 @@ func (client *KubernetesClustersClient) deleteCreateRequest(ctx context.Context, // Get - Get properties of the provided the Kubernetes cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - options - KubernetesClustersClientGetOptions contains the optional parameters for the KubernetesClustersClient.Get method. @@ -250,7 +250,7 @@ func (client *KubernetesClustersClient) getCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -267,7 +267,7 @@ func (client *KubernetesClustersClient) getHandleResponse(resp *http.Response) ( // NewListByResourceGroupPager - Get a list of Kubernetes clusters in the provided resource group. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - KubernetesClustersClientListByResourceGroupOptions contains the optional parameters for the KubernetesClustersClient.NewListByResourceGroupPager // method. @@ -310,7 +310,7 @@ func (client *KubernetesClustersClient) listByResourceGroupCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -327,7 +327,7 @@ func (client *KubernetesClustersClient) listByResourceGroupHandleResponse(resp * // NewListBySubscriptionPager - Get a list of Kubernetes clusters in the provided subscription. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - options - KubernetesClustersClientListBySubscriptionOptions contains the optional parameters for the KubernetesClustersClient.NewListBySubscriptionPager // method. func (client *KubernetesClustersClient) NewListBySubscriptionPager(options *KubernetesClustersClientListBySubscriptionOptions) *runtime.Pager[KubernetesClustersClientListBySubscriptionResponse] { @@ -365,7 +365,7 @@ func (client *KubernetesClustersClient) listBySubscriptionCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -383,7 +383,7 @@ func (client *KubernetesClustersClient) listBySubscriptionHandleResponse(resp *h // BeginRestartNode - Restart a targeted node of a Kubernetes cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - kubernetesClusterRestartNodeParameters - The request body. @@ -410,7 +410,7 @@ func (client *KubernetesClustersClient) BeginRestartNode(ctx context.Context, re // RestartNode - Restart a targeted node of a Kubernetes cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *KubernetesClustersClient) restartNode(ctx context.Context, resourceGroupName string, kubernetesClusterName string, kubernetesClusterRestartNodeParameters KubernetesClusterRestartNodeParameters, options *KubernetesClustersClientBeginRestartNodeOptions) (*http.Response, error) { var err error const operationName = "KubernetesClustersClient.BeginRestartNode" @@ -425,7 +425,7 @@ func (client *KubernetesClustersClient) restartNode(ctx context.Context, resourc if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -452,7 +452,7 @@ func (client *KubernetesClustersClient) restartNodeCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, kubernetesClusterRestartNodeParameters); err != nil { @@ -465,7 +465,7 @@ func (client *KubernetesClustersClient) restartNodeCreateRequest(ctx context.Con // cluster. Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - kubernetesClusterName - The name of the Kubernetes cluster. // - kubernetesClusterUpdateParameters - The request body. @@ -493,7 +493,7 @@ func (client *KubernetesClustersClient) BeginUpdate(ctx context.Context, resourc // Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *KubernetesClustersClient) update(ctx context.Context, resourceGroupName string, kubernetesClusterName string, kubernetesClusterUpdateParameters KubernetesClusterPatchParameters, options *KubernetesClustersClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "KubernetesClustersClient.BeginUpdate" @@ -535,7 +535,7 @@ func (client *KubernetesClustersClient) updateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, kubernetesClusterUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client_example_test.go index 72a437c7d3b9..d5e2b0c02599 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/kubernetesclusters_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_ListBySubscription.json func ExampleKubernetesClustersClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -82,11 +82,11 @@ func ExampleKubernetesClustersClient_NewListBySubscriptionPager() { // AvailableUpgrades: []*armnetworkcloud.AvailableUpgrade{ // { // AvailabilityLifecycle: to.Ptr(armnetworkcloud.AvailabilityLifecycleGenerallyAvailable), - // Version: to.Ptr("1.24.13-1"), + // Version: to.Ptr("1.XX.Y"), // }}, // ClusterID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusters/clusterName"), // ConnectedClusterID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.Kubernetes/connectedClusters/connectedClusterName"), - // ControlPlaneKubernetesVersion: to.Ptr("1.24.12-1"), + // ControlPlaneKubernetesVersion: to.Ptr("1.XX.Y"), // ControlPlaneNodeConfiguration: &armnetworkcloud.ControlPlaneNodeConfiguration{ // AdministratorConfiguration: &armnetworkcloud.AdministratorConfiguration{ // AdminUsername: to.Ptr("azure"), @@ -100,7 +100,7 @@ func ExampleKubernetesClustersClient_NewListBySubscriptionPager() { // to.Ptr("2"), // to.Ptr("3")}, // Count: to.Ptr[int64](3), - // VMSKUName: to.Ptr("NC_G4_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }, // DetailedStatus: to.Ptr(armnetworkcloud.KubernetesClusterDetailedStatusAvailable), // DetailedStatusMessage: to.Ptr("Kubernetes cluster is operational"), @@ -162,9 +162,9 @@ func ExampleKubernetesClustersClient_NewListBySubscriptionPager() { // UpgradeSettings: &armnetworkcloud.AgentPoolUpgradeSettings{ // MaxSurge: to.Ptr("1"), // }, - // VMSKUName: to.Ptr("NC_M16_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }}, - // KubernetesVersion: to.Ptr("1.24.12-1"), + // KubernetesVersion: to.Ptr("1.XX.Y"), // ManagedResourceGroupConfiguration: &armnetworkcloud.ManagedResourceGroupConfiguration{ // Name: to.Ptr("my-managed-rg"), // Location: to.Ptr("East US"), @@ -232,7 +232,7 @@ func ExampleKubernetesClustersClient_NewListBySubscriptionPager() { // Nodes: []*armnetworkcloud.KubernetesClusterNode{ // { // Name: to.Ptr("machine1"), - // AgentPoolID: to.Ptr("pool1"), + // AgentPoolID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/kubernetesClusters/kubernetesClusterName/agentPools/agentPoolName"), // AvailabilityZone: to.Ptr("1"), // BareMetalMachineID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/bareMetalMachines/bareMetalMachineName"), // CPUCores: to.Ptr[int64](20), @@ -240,7 +240,7 @@ func ExampleKubernetesClustersClient_NewListBySubscriptionPager() { // DetailedStatusMessage: to.Ptr("No issues detected"), // DiskSizeGB: to.Ptr[int64](120), // Image: to.Ptr("myacr.azurecr.io/foobar:latest"), - // KubernetesVersion: to.Ptr("1.24.12-1"), + // KubernetesVersion: to.Ptr("1.XX.Y"), // Labels: []*armnetworkcloud.KubernetesLabel{ // { // Key: to.Ptr("kubernetes.label"), @@ -265,7 +265,7 @@ func ExampleKubernetesClustersClient_NewListBySubscriptionPager() { // Key: to.Ptr("kubernetes.taint"), // Value: to.Ptr("true"), // }}, - // VMSKUName: to.Ptr("NC_M16_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }}, // ProvisioningState: to.Ptr(armnetworkcloud.KubernetesClusterProvisioningStateSucceeded), // }, @@ -274,7 +274,7 @@ func ExampleKubernetesClustersClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_ListByResourceGroup.json func ExampleKubernetesClustersClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -338,11 +338,11 @@ func ExampleKubernetesClustersClient_NewListByResourceGroupPager() { // AvailableUpgrades: []*armnetworkcloud.AvailableUpgrade{ // { // AvailabilityLifecycle: to.Ptr(armnetworkcloud.AvailabilityLifecycleGenerallyAvailable), - // Version: to.Ptr("1.24.13-1"), + // Version: to.Ptr("1.XX.Y"), // }}, // ClusterID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusters/clusterName"), // ConnectedClusterID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.Kubernetes/connectedClusters/connectedClusterName"), - // ControlPlaneKubernetesVersion: to.Ptr("1.24.12-1"), + // ControlPlaneKubernetesVersion: to.Ptr("1.XX.Y"), // ControlPlaneNodeConfiguration: &armnetworkcloud.ControlPlaneNodeConfiguration{ // AdministratorConfiguration: &armnetworkcloud.AdministratorConfiguration{ // AdminUsername: to.Ptr("azure"), @@ -356,7 +356,7 @@ func ExampleKubernetesClustersClient_NewListByResourceGroupPager() { // to.Ptr("2"), // to.Ptr("3")}, // Count: to.Ptr[int64](3), - // VMSKUName: to.Ptr("NC_G4_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }, // DetailedStatus: to.Ptr(armnetworkcloud.KubernetesClusterDetailedStatusAvailable), // DetailedStatusMessage: to.Ptr("Kubernetes cluster is operational"), @@ -418,9 +418,9 @@ func ExampleKubernetesClustersClient_NewListByResourceGroupPager() { // UpgradeSettings: &armnetworkcloud.AgentPoolUpgradeSettings{ // MaxSurge: to.Ptr("1"), // }, - // VMSKUName: to.Ptr("NC_M16_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }}, - // KubernetesVersion: to.Ptr("1.24.12-1"), + // KubernetesVersion: to.Ptr("1.XX.Y"), // ManagedResourceGroupConfiguration: &armnetworkcloud.ManagedResourceGroupConfiguration{ // Name: to.Ptr("my-managed-rg"), // Location: to.Ptr("East US"), @@ -488,7 +488,7 @@ func ExampleKubernetesClustersClient_NewListByResourceGroupPager() { // Nodes: []*armnetworkcloud.KubernetesClusterNode{ // { // Name: to.Ptr("machine1"), - // AgentPoolID: to.Ptr("pool1"), + // AgentPoolID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/kubernetesClusters/kubernetesClusterName/agentPools/agentPoolName"), // AvailabilityZone: to.Ptr("1"), // BareMetalMachineID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/bareMetalMachines/bareMetalMachineName"), // CPUCores: to.Ptr[int64](20), @@ -496,7 +496,7 @@ func ExampleKubernetesClustersClient_NewListByResourceGroupPager() { // DetailedStatusMessage: to.Ptr("No issues detected"), // DiskSizeGB: to.Ptr[int64](120), // Image: to.Ptr("myacr.azurecr.io/foobar:latest"), - // KubernetesVersion: to.Ptr("1.24.12-1"), + // KubernetesVersion: to.Ptr("1.XX.Y"), // Labels: []*armnetworkcloud.KubernetesLabel{ // { // Key: to.Ptr("kubernetes.label"), @@ -521,7 +521,7 @@ func ExampleKubernetesClustersClient_NewListByResourceGroupPager() { // Key: to.Ptr("kubernetes.taint"), // Value: to.Ptr("true"), // }}, - // VMSKUName: to.Ptr("NC_M16_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }}, // ProvisioningState: to.Ptr(armnetworkcloud.KubernetesClusterProvisioningStateSucceeded), // }, @@ -530,7 +530,7 @@ func ExampleKubernetesClustersClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Get.json func ExampleKubernetesClustersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -588,11 +588,11 @@ func ExampleKubernetesClustersClient_Get() { // AvailableUpgrades: []*armnetworkcloud.AvailableUpgrade{ // { // AvailabilityLifecycle: to.Ptr(armnetworkcloud.AvailabilityLifecycleGenerallyAvailable), - // Version: to.Ptr("1.24.13-1"), + // Version: to.Ptr("1.XX.Y"), // }}, // ClusterID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusters/clusterName"), // ConnectedClusterID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.Kubernetes/connectedClusters/connectedClusterName"), - // ControlPlaneKubernetesVersion: to.Ptr("1.24.12-1"), + // ControlPlaneKubernetesVersion: to.Ptr("1.XX.Y"), // ControlPlaneNodeConfiguration: &armnetworkcloud.ControlPlaneNodeConfiguration{ // AdministratorConfiguration: &armnetworkcloud.AdministratorConfiguration{ // AdminUsername: to.Ptr("azure"), @@ -606,7 +606,7 @@ func ExampleKubernetesClustersClient_Get() { // to.Ptr("2"), // to.Ptr("3")}, // Count: to.Ptr[int64](3), - // VMSKUName: to.Ptr("NC_G4_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }, // DetailedStatus: to.Ptr(armnetworkcloud.KubernetesClusterDetailedStatusAvailable), // DetailedStatusMessage: to.Ptr("Kubernetes cluster is operational"), @@ -668,9 +668,9 @@ func ExampleKubernetesClustersClient_Get() { // UpgradeSettings: &armnetworkcloud.AgentPoolUpgradeSettings{ // MaxSurge: to.Ptr("1"), // }, - // VMSKUName: to.Ptr("NC_M16_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }}, - // KubernetesVersion: to.Ptr("1.24.12-1"), + // KubernetesVersion: to.Ptr("1.XX.Y"), // ManagedResourceGroupConfiguration: &armnetworkcloud.ManagedResourceGroupConfiguration{ // Name: to.Ptr("my-managed-rg"), // Location: to.Ptr("East US"), @@ -738,7 +738,7 @@ func ExampleKubernetesClustersClient_Get() { // Nodes: []*armnetworkcloud.KubernetesClusterNode{ // { // Name: to.Ptr("machine1"), - // AgentPoolID: to.Ptr("pool1"), + // AgentPoolID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/kubernetesClusters/kubernetesClusterName/agentPools/agentPoolName"), // AvailabilityZone: to.Ptr("1"), // BareMetalMachineID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/bareMetalMachines/bareMetalMachineName"), // CPUCores: to.Ptr[int64](20), @@ -746,7 +746,7 @@ func ExampleKubernetesClustersClient_Get() { // DetailedStatusMessage: to.Ptr("No issues detected"), // DiskSizeGB: to.Ptr[int64](120), // Image: to.Ptr("myacr.azurecr.io/foobar:latest"), - // KubernetesVersion: to.Ptr("1.24.12-1"), + // KubernetesVersion: to.Ptr("1.XX.Y"), // Labels: []*armnetworkcloud.KubernetesLabel{ // { // Key: to.Ptr("kubernetes.label"), @@ -771,15 +771,15 @@ func ExampleKubernetesClustersClient_Get() { // Key: to.Ptr("kubernetes.taint"), // Value: to.Ptr("true"), // }}, - // VMSKUName: to.Ptr("NC_M16_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }}, // ProvisioningState: to.Ptr(armnetworkcloud.KubernetesClusterProvisioningStateSucceeded), // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Create.json -func ExampleKubernetesClustersClient_BeginCreateOrUpdate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Create.json +func ExampleKubernetesClustersClient_BeginCreateOrUpdate_createOrUpdateKubernetesCluster() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -824,7 +824,7 @@ func ExampleKubernetesClustersClient_BeginCreateOrUpdate() { to.Ptr("2"), to.Ptr("3")}, Count: to.Ptr[int64](3), - VMSKUName: to.Ptr("NC_G4_v1"), + VMSKUName: to.Ptr("NC_XXXX"), }, InitialAgentPoolConfigurations: []*armnetworkcloud.InitialAgentPoolConfiguration{ { @@ -877,9 +877,9 @@ func ExampleKubernetesClustersClient_BeginCreateOrUpdate() { UpgradeSettings: &armnetworkcloud.AgentPoolUpgradeSettings{ MaxSurge: to.Ptr("1"), }, - VMSKUName: to.Ptr("NC_M16_v1"), + VMSKUName: to.Ptr("NC_XXXX"), }}, - KubernetesVersion: to.Ptr("1.24.12-1"), + KubernetesVersion: to.Ptr("1.XX.Y"), ManagedResourceGroupConfiguration: &armnetworkcloud.ManagedResourceGroupConfiguration{ Name: to.Ptr("my-managed-rg"), Location: to.Ptr("East US"), @@ -996,11 +996,11 @@ func ExampleKubernetesClustersClient_BeginCreateOrUpdate() { // AvailableUpgrades: []*armnetworkcloud.AvailableUpgrade{ // { // AvailabilityLifecycle: to.Ptr(armnetworkcloud.AvailabilityLifecycleGenerallyAvailable), - // Version: to.Ptr("1.24.13-1"), + // Version: to.Ptr("1.XX.Y"), // }}, // ClusterID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusters/clusterName"), // ConnectedClusterID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.Kubernetes/connectedClusters/connectedClusterName"), - // ControlPlaneKubernetesVersion: to.Ptr("1.24.12-1"), + // ControlPlaneKubernetesVersion: to.Ptr("1.XX.Y"), // ControlPlaneNodeConfiguration: &armnetworkcloud.ControlPlaneNodeConfiguration{ // AdministratorConfiguration: &armnetworkcloud.AdministratorConfiguration{ // AdminUsername: to.Ptr("azure"), @@ -1014,7 +1014,7 @@ func ExampleKubernetesClustersClient_BeginCreateOrUpdate() { // to.Ptr("2"), // to.Ptr("3")}, // Count: to.Ptr[int64](3), - // VMSKUName: to.Ptr("NC_G4_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }, // DetailedStatus: to.Ptr(armnetworkcloud.KubernetesClusterDetailedStatusAvailable), // DetailedStatusMessage: to.Ptr("Kubernetes cluster is operational"), @@ -1076,9 +1076,9 @@ func ExampleKubernetesClustersClient_BeginCreateOrUpdate() { // UpgradeSettings: &armnetworkcloud.AgentPoolUpgradeSettings{ // MaxSurge: to.Ptr("1"), // }, - // VMSKUName: to.Ptr("NC_M16_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }}, - // KubernetesVersion: to.Ptr("1.24.12-1"), + // KubernetesVersion: to.Ptr("1.XX.Y"), // ManagedResourceGroupConfiguration: &armnetworkcloud.ManagedResourceGroupConfiguration{ // Name: to.Ptr("my-managed-rg"), // Location: to.Ptr("East US"), @@ -1146,7 +1146,7 @@ func ExampleKubernetesClustersClient_BeginCreateOrUpdate() { // Nodes: []*armnetworkcloud.KubernetesClusterNode{ // { // Name: to.Ptr("machine1"), - // AgentPoolID: to.Ptr("pool1"), + // AgentPoolID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/kubernetesClusters/kubernetesClusterName/agentPools/agentPoolName"), // AvailabilityZone: to.Ptr("1"), // BareMetalMachineID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/bareMetalMachines/bareMetalMachineName"), // CPUCores: to.Ptr[int64](20), @@ -1154,7 +1154,7 @@ func ExampleKubernetesClustersClient_BeginCreateOrUpdate() { // DetailedStatusMessage: to.Ptr("No issues detected"), // DiskSizeGB: to.Ptr[int64](120), // Image: to.Ptr("myacr.azurecr.io/foobar:latest"), - // KubernetesVersion: to.Ptr("1.24.12-1"), + // KubernetesVersion: to.Ptr("1.XX.Y"), // Labels: []*armnetworkcloud.KubernetesLabel{ // { // Key: to.Ptr("kubernetes.label"), @@ -1179,14 +1179,374 @@ func ExampleKubernetesClustersClient_BeginCreateOrUpdate() { // Key: to.Ptr("kubernetes.taint"), // Value: to.Ptr("true"), // }}, - // VMSKUName: to.Ptr("NC_M16_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }}, // ProvisioningState: to.Ptr(armnetworkcloud.KubernetesClusterProvisioningStateSucceeded), // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_L2LoadBalancer_Create.json +func ExampleKubernetesClustersClient_BeginCreateOrUpdate_createOrUpdateKubernetesClusterWithALayer2LoadBalancer() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + clientFactory, err := armnetworkcloud.NewClientFactory("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := clientFactory.NewKubernetesClustersClient().BeginCreateOrUpdate(ctx, "resourceGroupName", "kubernetesClusterName", armnetworkcloud.KubernetesCluster{ + Location: to.Ptr("location"), + Tags: map[string]*string{ + "key1": to.Ptr("myvalue1"), + "key2": to.Ptr("myvalue2"), + }, + ExtendedLocation: &armnetworkcloud.ExtendedLocation{ + Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName"), + Type: to.Ptr("CustomLocation"), + }, + Properties: &armnetworkcloud.KubernetesClusterProperties{ + AADConfiguration: &armnetworkcloud.AADConfiguration{ + AdminGroupObjectIDs: []*string{ + to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff")}, + }, + AdministratorConfiguration: &armnetworkcloud.AdministratorConfiguration{ + AdminUsername: to.Ptr("azure"), + SSHPublicKeys: []*armnetworkcloud.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), + }}, + }, + ControlPlaneNodeConfiguration: &armnetworkcloud.ControlPlaneNodeConfiguration{ + AdministratorConfiguration: &armnetworkcloud.AdministratorConfiguration{ + AdminUsername: to.Ptr("azure"), + SSHPublicKeys: []*armnetworkcloud.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), + }}, + }, + AvailabilityZones: []*string{ + to.Ptr("1"), + to.Ptr("2"), + to.Ptr("3")}, + Count: to.Ptr[int64](3), + VMSKUName: to.Ptr("NC_XXXX"), + }, + InitialAgentPoolConfigurations: []*armnetworkcloud.InitialAgentPoolConfiguration{ + { + Name: to.Ptr("SystemPool-1"), + AdministratorConfiguration: &armnetworkcloud.AdministratorConfiguration{ + AdminUsername: to.Ptr("azure"), + SSHPublicKeys: []*armnetworkcloud.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), + }}, + }, + AgentOptions: &armnetworkcloud.AgentOptions{ + HugepagesCount: to.Ptr[int64](96), + HugepagesSize: to.Ptr(armnetworkcloud.HugepagesSizeOneG), + }, + AttachedNetworkConfiguration: &armnetworkcloud.AttachedNetworkConfiguration{ + L2Networks: []*armnetworkcloud.L2NetworkAttachmentConfiguration{ + { + NetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName"), + PluginType: to.Ptr(armnetworkcloud.KubernetesPluginTypeDPDK), + }}, + L3Networks: []*armnetworkcloud.L3NetworkAttachmentConfiguration{ + { + IpamEnabled: to.Ptr(armnetworkcloud.L3NetworkConfigurationIpamEnabledFalse), + NetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName"), + PluginType: to.Ptr(armnetworkcloud.KubernetesPluginTypeSRIOV), + }}, + TrunkedNetworks: []*armnetworkcloud.TrunkedNetworkAttachmentConfiguration{ + { + NetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName"), + PluginType: to.Ptr(armnetworkcloud.KubernetesPluginTypeMACVLAN), + }}, + }, + AvailabilityZones: []*string{ + to.Ptr("1"), + to.Ptr("2"), + to.Ptr("3")}, + Count: to.Ptr[int64](3), + Labels: []*armnetworkcloud.KubernetesLabel{ + { + Key: to.Ptr("kubernetes.label"), + Value: to.Ptr("true"), + }}, + Mode: to.Ptr(armnetworkcloud.AgentPoolModeSystem), + Taints: []*armnetworkcloud.KubernetesLabel{ + { + Key: to.Ptr("kubernetes.taint"), + Value: to.Ptr("true"), + }}, + UpgradeSettings: &armnetworkcloud.AgentPoolUpgradeSettings{ + MaxSurge: to.Ptr("1"), + }, + VMSKUName: to.Ptr("NC_XXXX"), + }}, + KubernetesVersion: to.Ptr("1.XX.Y"), + ManagedResourceGroupConfiguration: &armnetworkcloud.ManagedResourceGroupConfiguration{ + Name: to.Ptr("my-managed-rg"), + Location: to.Ptr("East US"), + }, + NetworkConfiguration: &armnetworkcloud.NetworkConfiguration{ + AttachedNetworkConfiguration: &armnetworkcloud.AttachedNetworkConfiguration{ + L2Networks: []*armnetworkcloud.L2NetworkAttachmentConfiguration{ + { + NetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName"), + PluginType: to.Ptr(armnetworkcloud.KubernetesPluginTypeDPDK), + }}, + L3Networks: []*armnetworkcloud.L3NetworkAttachmentConfiguration{ + { + IpamEnabled: to.Ptr(armnetworkcloud.L3NetworkConfigurationIpamEnabledFalse), + NetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName"), + PluginType: to.Ptr(armnetworkcloud.KubernetesPluginTypeSRIOV), + }}, + TrunkedNetworks: []*armnetworkcloud.TrunkedNetworkAttachmentConfiguration{ + { + NetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName"), + PluginType: to.Ptr(armnetworkcloud.KubernetesPluginTypeMACVLAN), + }}, + }, + CloudServicesNetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName"), + CniNetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName"), + DNSServiceIP: to.Ptr("198.51.101.2"), + L2ServiceLoadBalancerConfiguration: &armnetworkcloud.L2ServiceLoadBalancerConfiguration{ + IPAddressPools: []*armnetworkcloud.IPAddressPool{ + { + Name: to.Ptr("pool1"), + Addresses: []*string{ + to.Ptr("198.51.102.2-198.51.102.254")}, + AutoAssign: to.Ptr(armnetworkcloud.BfdEnabledTrue), + }}, + }, + PodCidrs: []*string{ + to.Ptr("198.51.100.0/24")}, + ServiceCidrs: []*string{ + to.Ptr("198.51.101.0/24")}, + }, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + res, err := poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.KubernetesCluster = armnetworkcloud.KubernetesCluster{ + // Name: to.Ptr("KubernetesClusterName"), + // Type: to.Ptr("Microsoft.NetworkCloud/kubernetesClusters"), + // ID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/kubernetesClusters/kubernetesClusterName"), + // SystemData: &armnetworkcloud.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:27:03.008Z"); return t}()), + // CreatedBy: to.Ptr("identityA"), + // CreatedByType: to.Ptr(armnetworkcloud.CreatedByTypeApplication), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-22T13:29:03.001Z"); return t}()), + // LastModifiedBy: to.Ptr("identityB"), + // LastModifiedByType: to.Ptr(armnetworkcloud.CreatedByTypeUser), + // }, + // Location: to.Ptr("location"), + // Tags: map[string]*string{ + // "key1": to.Ptr("myvalue1"), + // "key2": to.Ptr("myvalue2"), + // }, + // ExtendedLocation: &armnetworkcloud.ExtendedLocation{ + // Name: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName"), + // Type: to.Ptr("CustomLocation"), + // }, + // Properties: &armnetworkcloud.KubernetesClusterProperties{ + // AADConfiguration: &armnetworkcloud.AADConfiguration{ + // AdminGroupObjectIDs: []*string{ + // to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff")}, + // }, + // AdministratorConfiguration: &armnetworkcloud.AdministratorConfiguration{ + // AdminUsername: to.Ptr("azure"), + // SSHPublicKeys: []*armnetworkcloud.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), + // }}, + // }, + // AttachedNetworkIDs: []*string{ + // to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName"), + // to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName"), + // to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName")}, + // AvailableUpgrades: []*armnetworkcloud.AvailableUpgrade{ + // { + // AvailabilityLifecycle: to.Ptr(armnetworkcloud.AvailabilityLifecycleGenerallyAvailable), + // Version: to.Ptr("1.XX.Y"), + // }}, + // ClusterID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusters/clusterName"), + // ConnectedClusterID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.Kubernetes/connectedClusters/connectedClusterName"), + // ControlPlaneKubernetesVersion: to.Ptr("1.XX.Y"), + // ControlPlaneNodeConfiguration: &armnetworkcloud.ControlPlaneNodeConfiguration{ + // AdministratorConfiguration: &armnetworkcloud.AdministratorConfiguration{ + // AdminUsername: to.Ptr("azure"), + // SSHPublicKeys: []*armnetworkcloud.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), + // }}, + // }, + // AvailabilityZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // Count: to.Ptr[int64](3), + // VMSKUName: to.Ptr("NC_XXXX"), + // }, + // DetailedStatus: to.Ptr(armnetworkcloud.KubernetesClusterDetailedStatusAvailable), + // DetailedStatusMessage: to.Ptr("Kubernetes cluster is operational"), + // FeatureStatuses: []*armnetworkcloud.FeatureStatus{ + // { + // Name: to.Ptr("Feature1"), + // DetailedStatus: to.Ptr(armnetworkcloud.FeatureDetailedStatusRunning), + // DetailedStatusMessage: to.Ptr("No issues detected"), + // Version: to.Ptr("1"), + // }}, + // InitialAgentPoolConfigurations: []*armnetworkcloud.InitialAgentPoolConfiguration{ + // { + // Name: to.Ptr("SystemPool-1"), + // AdministratorConfiguration: &armnetworkcloud.AdministratorConfiguration{ + // AdminUsername: to.Ptr("azure"), + // SSHPublicKeys: []*armnetworkcloud.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), + // }}, + // }, + // AgentOptions: &armnetworkcloud.AgentOptions{ + // HugepagesCount: to.Ptr[int64](96), + // HugepagesSize: to.Ptr(armnetworkcloud.HugepagesSizeOneG), + // }, + // AttachedNetworkConfiguration: &armnetworkcloud.AttachedNetworkConfiguration{ + // L2Networks: []*armnetworkcloud.L2NetworkAttachmentConfiguration{ + // { + // NetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName"), + // PluginType: to.Ptr(armnetworkcloud.KubernetesPluginTypeDPDK), + // }}, + // L3Networks: []*armnetworkcloud.L3NetworkAttachmentConfiguration{ + // { + // IpamEnabled: to.Ptr(armnetworkcloud.L3NetworkConfigurationIpamEnabledFalse), + // NetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName"), + // PluginType: to.Ptr(armnetworkcloud.KubernetesPluginTypeSRIOV), + // }}, + // TrunkedNetworks: []*armnetworkcloud.TrunkedNetworkAttachmentConfiguration{ + // { + // NetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName"), + // PluginType: to.Ptr(armnetworkcloud.KubernetesPluginTypeMACVLAN), + // }}, + // }, + // AvailabilityZones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // Count: to.Ptr[int64](3), + // Labels: []*armnetworkcloud.KubernetesLabel{ + // { + // Key: to.Ptr("kubernetes.label"), + // Value: to.Ptr("true"), + // }}, + // Mode: to.Ptr(armnetworkcloud.AgentPoolModeSystem), + // Taints: []*armnetworkcloud.KubernetesLabel{ + // { + // Key: to.Ptr("kubernetes.taint"), + // Value: to.Ptr("true"), + // }}, + // UpgradeSettings: &armnetworkcloud.AgentPoolUpgradeSettings{ + // MaxSurge: to.Ptr("1"), + // }, + // VMSKUName: to.Ptr("NC_XXXX"), + // }}, + // KubernetesVersion: to.Ptr("1.XX.Y"), + // ManagedResourceGroupConfiguration: &armnetworkcloud.ManagedResourceGroupConfiguration{ + // Name: to.Ptr("my-managed-rg"), + // Location: to.Ptr("East US"), + // }, + // NetworkConfiguration: &armnetworkcloud.NetworkConfiguration{ + // AttachedNetworkConfiguration: &armnetworkcloud.AttachedNetworkConfiguration{ + // L2Networks: []*armnetworkcloud.L2NetworkAttachmentConfiguration{ + // { + // NetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l2Networks/l2NetworkName"), + // PluginType: to.Ptr(armnetworkcloud.KubernetesPluginTypeDPDK), + // }}, + // L3Networks: []*armnetworkcloud.L3NetworkAttachmentConfiguration{ + // { + // IpamEnabled: to.Ptr(armnetworkcloud.L3NetworkConfigurationIpamEnabledFalse), + // NetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName"), + // PluginType: to.Ptr(armnetworkcloud.KubernetesPluginTypeSRIOV), + // }}, + // TrunkedNetworks: []*armnetworkcloud.TrunkedNetworkAttachmentConfiguration{ + // { + // NetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/trunkedNetworks/trunkedNetworkName"), + // PluginType: to.Ptr(armnetworkcloud.KubernetesPluginTypeMACVLAN), + // }}, + // }, + // CloudServicesNetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName"), + // CniNetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName"), + // DNSServiceIP: to.Ptr("198.51.101.2"), + // L2ServiceLoadBalancerConfiguration: &armnetworkcloud.L2ServiceLoadBalancerConfiguration{ + // IPAddressPools: []*armnetworkcloud.IPAddressPool{ + // { + // Name: to.Ptr("pool1"), + // Addresses: []*string{ + // to.Ptr("198.51.102.2-198.51.102.254")}, + // AutoAssign: to.Ptr(armnetworkcloud.BfdEnabledTrue), + // }}, + // }, + // PodCidrs: []*string{ + // to.Ptr("198.51.100.0/24")}, + // ServiceCidrs: []*string{ + // to.Ptr("198.51.101.0/24")}, + // }, + // Nodes: []*armnetworkcloud.KubernetesClusterNode{ + // { + // Name: to.Ptr("machine1"), + // AgentPoolID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/kubernetesClusters/kubernetesClusterName/agentPools/agentPoolName"), + // AvailabilityZone: to.Ptr("1"), + // BareMetalMachineID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/bareMetalMachines/bareMetalMachineName"), + // CPUCores: to.Ptr[int64](20), + // DetailedStatus: to.Ptr(armnetworkcloud.KubernetesClusterNodeDetailedStatusAvailable), + // DetailedStatusMessage: to.Ptr("No issues detected"), + // DiskSizeGB: to.Ptr[int64](120), + // Image: to.Ptr("myacr.azurecr.io/foobar:latest"), + // KubernetesVersion: to.Ptr("1.XX.Y"), + // Labels: []*armnetworkcloud.KubernetesLabel{ + // { + // Key: to.Ptr("kubernetes.label"), + // Value: to.Ptr("true"), + // }}, + // MemorySizeGB: to.Ptr[int64](256), + // Mode: to.Ptr(armnetworkcloud.AgentPoolModeSystem), + // NetworkAttachments: []*armnetworkcloud.NetworkAttachment{ + // { + // AttachedNetworkID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/l3Networks/l3NetworkName"), + // DefaultGateway: to.Ptr(armnetworkcloud.DefaultGatewayTrue), + // IPAllocationMethod: to.Ptr(armnetworkcloud.VirtualMachineIPAllocationMethodDynamic), + // IPv4Address: to.Ptr("198.51.100.1"), + // IPv6Address: to.Ptr("2001:0db8:0000:0000:0000:0000:0000:0000"), + // MacAddress: to.Ptr("bf:1c:29:31:31:1f"), + // NetworkAttachmentName: to.Ptr("netAttachName01"), + // }}, + // PowerState: to.Ptr(armnetworkcloud.KubernetesNodePowerStateOn), + // Role: to.Ptr(armnetworkcloud.KubernetesNodeRoleControlPlane), + // Taints: []*armnetworkcloud.KubernetesLabel{ + // { + // Key: to.Ptr("kubernetes.taint"), + // Value: to.Ptr("true"), + // }}, + // VMSKUName: to.Ptr("NC_XXXX"), + // }}, + // ProvisioningState: to.Ptr(armnetworkcloud.KubernetesClusterProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Delete.json func ExampleKubernetesClustersClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1207,7 +1567,7 @@ func ExampleKubernetesClustersClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_Patch.json func ExampleKubernetesClustersClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1220,10 +1580,22 @@ func ExampleKubernetesClustersClient_BeginUpdate() { } poller, err := clientFactory.NewKubernetesClustersClient().BeginUpdate(ctx, "resourceGroupName", "kubernetesClusterName", armnetworkcloud.KubernetesClusterPatchParameters{ Properties: &armnetworkcloud.KubernetesClusterPatchProperties{ + AdministratorConfiguration: &armnetworkcloud.AdministratorConfigurationPatch{ + SSHPublicKeys: []*armnetworkcloud.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), + }}, + }, ControlPlaneNodeConfiguration: &armnetworkcloud.ControlPlaneNodePatchConfiguration{ + AdministratorConfiguration: &armnetworkcloud.AdministratorConfigurationPatch{ + SSHPublicKeys: []*armnetworkcloud.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"), + }}, + }, Count: to.Ptr[int64](3), }, - KubernetesVersion: to.Ptr("1.24.12"), + KubernetesVersion: to.Ptr("1.XX.Y"), }, Tags: map[string]*string{ "key1": to.Ptr("myvalue1"), @@ -1280,11 +1652,11 @@ func ExampleKubernetesClustersClient_BeginUpdate() { // AvailableUpgrades: []*armnetworkcloud.AvailableUpgrade{ // { // AvailabilityLifecycle: to.Ptr(armnetworkcloud.AvailabilityLifecycleGenerallyAvailable), - // Version: to.Ptr("1.24.13-1"), + // Version: to.Ptr("1.XX.Y"), // }}, // ClusterID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/clusters/clusterName"), // ConnectedClusterID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.Kubernetes/connectedClusters/connectedClusterName"), - // ControlPlaneKubernetesVersion: to.Ptr("1.24.12-1"), + // ControlPlaneKubernetesVersion: to.Ptr("1.XX.Y"), // ControlPlaneNodeConfiguration: &armnetworkcloud.ControlPlaneNodeConfiguration{ // AdministratorConfiguration: &armnetworkcloud.AdministratorConfiguration{ // AdminUsername: to.Ptr("azure"), @@ -1298,7 +1670,7 @@ func ExampleKubernetesClustersClient_BeginUpdate() { // to.Ptr("2"), // to.Ptr("3")}, // Count: to.Ptr[int64](3), - // VMSKUName: to.Ptr("NC_G4_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }, // DetailedStatus: to.Ptr(armnetworkcloud.KubernetesClusterDetailedStatusAvailable), // DetailedStatusMessage: to.Ptr("Kubernetes cluster is operational"), @@ -1360,9 +1732,9 @@ func ExampleKubernetesClustersClient_BeginUpdate() { // UpgradeSettings: &armnetworkcloud.AgentPoolUpgradeSettings{ // MaxSurge: to.Ptr("1"), // }, - // VMSKUName: to.Ptr("NC_M16_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }}, - // KubernetesVersion: to.Ptr("1.24.12-1"), + // KubernetesVersion: to.Ptr("1.XX.Y"), // ManagedResourceGroupConfiguration: &armnetworkcloud.ManagedResourceGroupConfiguration{ // Name: to.Ptr("my-managed-rg"), // Location: to.Ptr("East US"), @@ -1430,7 +1802,7 @@ func ExampleKubernetesClustersClient_BeginUpdate() { // Nodes: []*armnetworkcloud.KubernetesClusterNode{ // { // Name: to.Ptr("machine1"), - // AgentPoolID: to.Ptr("pool1"), + // AgentPoolID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/kubernetesClusters/kubernetesClusterName/agentPools/agentPoolName"), // AvailabilityZone: to.Ptr("1"), // BareMetalMachineID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/bareMetalMachines/bareMetalMachineName"), // CPUCores: to.Ptr[int64](20), @@ -1438,7 +1810,7 @@ func ExampleKubernetesClustersClient_BeginUpdate() { // DetailedStatusMessage: to.Ptr("No issues detected"), // DiskSizeGB: to.Ptr[int64](120), // Image: to.Ptr("myacr.azurecr.io/foobar:latest"), - // KubernetesVersion: to.Ptr("1.24.12-1"), + // KubernetesVersion: to.Ptr("1.XX.Y"), // Labels: []*armnetworkcloud.KubernetesLabel{ // { // Key: to.Ptr("kubernetes.label"), @@ -1463,14 +1835,14 @@ func ExampleKubernetesClustersClient_BeginUpdate() { // Key: to.Ptr("kubernetes.taint"), // Value: to.Ptr("true"), // }}, - // VMSKUName: to.Ptr("NC_M16_v1"), + // VMSKUName: to.Ptr("NC_XXXX"), // }}, // ProvisioningState: to.Ptr(armnetworkcloud.KubernetesClusterProvisioningStateSucceeded), // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/KubernetesClusters_RestartNode.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/KubernetesClusters_RestartNode.json func ExampleKubernetesClustersClient_BeginRestartNode() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client.go index 67ccdb977a21..1c744a23b0ca 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client.go @@ -46,7 +46,7 @@ func NewL2NetworksClient(subscriptionID string, credential azcore.TokenCredentia // BeginCreateOrUpdate - Create a new layer 2 (L2) network or update the properties of the existing network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l2NetworkName - The name of the L2 network. // - l2NetworkParameters - The request body. @@ -73,7 +73,7 @@ func (client *L2NetworksClient) BeginCreateOrUpdate(ctx context.Context, resourc // CreateOrUpdate - Create a new layer 2 (L2) network or update the properties of the existing network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *L2NetworksClient) createOrUpdate(ctx context.Context, resourceGroupName string, l2NetworkName string, l2NetworkParameters L2Network, options *L2NetworksClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "L2NetworksClient.BeginCreateOrUpdate" @@ -115,7 +115,7 @@ func (client *L2NetworksClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, l2NetworkParameters); err != nil { @@ -127,7 +127,7 @@ func (client *L2NetworksClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Delete the provided layer 2 (L2) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l2NetworkName - The name of the L2 network. // - options - L2NetworksClientBeginDeleteOptions contains the optional parameters for the L2NetworksClient.BeginDelete method. @@ -152,7 +152,7 @@ func (client *L2NetworksClient) BeginDelete(ctx context.Context, resourceGroupNa // Delete - Delete the provided layer 2 (L2) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *L2NetworksClient) deleteOperation(ctx context.Context, resourceGroupName string, l2NetworkName string, options *L2NetworksClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "L2NetworksClient.BeginDelete" @@ -194,7 +194,7 @@ func (client *L2NetworksClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -203,7 +203,7 @@ func (client *L2NetworksClient) deleteCreateRequest(ctx context.Context, resourc // Get - Get properties of the provided layer 2 (L2) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l2NetworkName - The name of the L2 network. // - options - L2NetworksClientGetOptions contains the optional parameters for the L2NetworksClient.Get method. @@ -249,7 +249,7 @@ func (client *L2NetworksClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -266,7 +266,7 @@ func (client *L2NetworksClient) getHandleResponse(resp *http.Response) (L2Networ // NewListByResourceGroupPager - Get a list of layer 2 (L2) networks in the provided resource group. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - L2NetworksClientListByResourceGroupOptions contains the optional parameters for the L2NetworksClient.NewListByResourceGroupPager // method. @@ -309,7 +309,7 @@ func (client *L2NetworksClient) listByResourceGroupCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -326,7 +326,7 @@ func (client *L2NetworksClient) listByResourceGroupHandleResponse(resp *http.Res // NewListBySubscriptionPager - Get a list of layer 2 (L2) networks in the provided subscription. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - options - L2NetworksClientListBySubscriptionOptions contains the optional parameters for the L2NetworksClient.NewListBySubscriptionPager // method. func (client *L2NetworksClient) NewListBySubscriptionPager(options *L2NetworksClientListBySubscriptionOptions) *runtime.Pager[L2NetworksClientListBySubscriptionResponse] { @@ -364,7 +364,7 @@ func (client *L2NetworksClient) listBySubscriptionCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -382,7 +382,7 @@ func (client *L2NetworksClient) listBySubscriptionHandleResponse(resp *http.Resp // Update - Update tags associated with the provided layer 2 (L2) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l2NetworkName - The name of the L2 network. // - l2NetworkUpdateParameters - The request body. @@ -429,7 +429,7 @@ func (client *L2NetworksClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, l2NetworkUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client_example_test.go index ed78563a68b0..e448ce8699eb 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/l2networks_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_ListBySubscription.json func ExampleL2NetworksClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -78,7 +78,7 @@ func ExampleL2NetworksClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_ListByResourceGroup.json func ExampleL2NetworksClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -138,7 +138,7 @@ func ExampleL2NetworksClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Get.json func ExampleL2NetworksClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -190,7 +190,7 @@ func ExampleL2NetworksClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Create.json func ExampleL2NetworksClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -261,7 +261,7 @@ func ExampleL2NetworksClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Delete.json func ExampleL2NetworksClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -282,7 +282,7 @@ func ExampleL2NetworksClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L2Networks_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L2Networks_Patch.json func ExampleL2NetworksClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client.go index 713f89edf435..ef6666333dee 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client.go @@ -46,7 +46,7 @@ func NewL3NetworksClient(subscriptionID string, credential azcore.TokenCredentia // BeginCreateOrUpdate - Create a new layer 3 (L3) network or update the properties of the existing network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l3NetworkName - The name of the L3 network. // - l3NetworkParameters - The request body. @@ -73,7 +73,7 @@ func (client *L3NetworksClient) BeginCreateOrUpdate(ctx context.Context, resourc // CreateOrUpdate - Create a new layer 3 (L3) network or update the properties of the existing network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *L3NetworksClient) createOrUpdate(ctx context.Context, resourceGroupName string, l3NetworkName string, l3NetworkParameters L3Network, options *L3NetworksClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "L3NetworksClient.BeginCreateOrUpdate" @@ -115,7 +115,7 @@ func (client *L3NetworksClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, l3NetworkParameters); err != nil { @@ -127,7 +127,7 @@ func (client *L3NetworksClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Delete the provided layer 3 (L3) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l3NetworkName - The name of the L3 network. // - options - L3NetworksClientBeginDeleteOptions contains the optional parameters for the L3NetworksClient.BeginDelete method. @@ -152,7 +152,7 @@ func (client *L3NetworksClient) BeginDelete(ctx context.Context, resourceGroupNa // Delete - Delete the provided layer 3 (L3) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *L3NetworksClient) deleteOperation(ctx context.Context, resourceGroupName string, l3NetworkName string, options *L3NetworksClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "L3NetworksClient.BeginDelete" @@ -194,7 +194,7 @@ func (client *L3NetworksClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -203,7 +203,7 @@ func (client *L3NetworksClient) deleteCreateRequest(ctx context.Context, resourc // Get - Get properties of the provided layer 3 (L3) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l3NetworkName - The name of the L3 network. // - options - L3NetworksClientGetOptions contains the optional parameters for the L3NetworksClient.Get method. @@ -249,7 +249,7 @@ func (client *L3NetworksClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -266,7 +266,7 @@ func (client *L3NetworksClient) getHandleResponse(resp *http.Response) (L3Networ // NewListByResourceGroupPager - Get a list of layer 3 (L3) networks in the provided resource group. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - L3NetworksClientListByResourceGroupOptions contains the optional parameters for the L3NetworksClient.NewListByResourceGroupPager // method. @@ -309,7 +309,7 @@ func (client *L3NetworksClient) listByResourceGroupCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -326,7 +326,7 @@ func (client *L3NetworksClient) listByResourceGroupHandleResponse(resp *http.Res // NewListBySubscriptionPager - Get a list of layer 3 (L3) networks in the provided subscription. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - options - L3NetworksClientListBySubscriptionOptions contains the optional parameters for the L3NetworksClient.NewListBySubscriptionPager // method. func (client *L3NetworksClient) NewListBySubscriptionPager(options *L3NetworksClientListBySubscriptionOptions) *runtime.Pager[L3NetworksClientListBySubscriptionResponse] { @@ -364,7 +364,7 @@ func (client *L3NetworksClient) listBySubscriptionCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -382,7 +382,7 @@ func (client *L3NetworksClient) listBySubscriptionHandleResponse(resp *http.Resp // Update - Update tags associated with the provided layer 3 (L3) network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - l3NetworkName - The name of the L3 network. // - l3NetworkUpdateParameters - The request body. @@ -429,7 +429,7 @@ func (client *L3NetworksClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, l3NetworkUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client_example_test.go index 7aaa82bd442e..59b8a76e5555 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/l3networks_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_ListBySubscription.json func ExampleL3NetworksClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -82,7 +82,7 @@ func ExampleL3NetworksClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_ListByResourceGroup.json func ExampleL3NetworksClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -146,7 +146,7 @@ func ExampleL3NetworksClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Get.json func ExampleL3NetworksClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -202,7 +202,7 @@ func ExampleL3NetworksClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Create.json func ExampleL3NetworksClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -280,7 +280,7 @@ func ExampleL3NetworksClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Delete.json func ExampleL3NetworksClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -301,7 +301,7 @@ func ExampleL3NetworksClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/L3Networks_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/L3Networks_Patch.json func ExampleL3NetworksClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client.go index 4b4df21c67ee..1a6d40e37eed 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client.go @@ -46,7 +46,7 @@ func NewMetricsConfigurationsClient(subscriptionID string, credential azcore.Tok // BeginCreateOrUpdate - Create new or update the existing metrics configuration of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - metricsConfigurationName - The name of the metrics configuration for the cluster. @@ -74,7 +74,7 @@ func (client *MetricsConfigurationsClient) BeginCreateOrUpdate(ctx context.Conte // CreateOrUpdate - Create new or update the existing metrics configuration of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *MetricsConfigurationsClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, metricsConfigurationName string, metricsConfigurationParameters ClusterMetricsConfiguration, options *MetricsConfigurationsClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "MetricsConfigurationsClient.BeginCreateOrUpdate" @@ -120,7 +120,7 @@ func (client *MetricsConfigurationsClient) createOrUpdateCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, metricsConfigurationParameters); err != nil { @@ -132,7 +132,7 @@ func (client *MetricsConfigurationsClient) createOrUpdateCreateRequest(ctx conte // BeginDelete - Delete the metrics configuration of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - metricsConfigurationName - The name of the metrics configuration for the cluster. @@ -159,7 +159,7 @@ func (client *MetricsConfigurationsClient) BeginDelete(ctx context.Context, reso // Delete - Delete the metrics configuration of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *MetricsConfigurationsClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, metricsConfigurationName string, options *MetricsConfigurationsClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "MetricsConfigurationsClient.BeginDelete" @@ -205,7 +205,7 @@ func (client *MetricsConfigurationsClient) deleteCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -214,7 +214,7 @@ func (client *MetricsConfigurationsClient) deleteCreateRequest(ctx context.Conte // Get - Get metrics configuration of the provided cluster. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - metricsConfigurationName - The name of the metrics configuration for the cluster. @@ -266,7 +266,7 @@ func (client *MetricsConfigurationsClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -283,7 +283,7 @@ func (client *MetricsConfigurationsClient) getHandleResponse(resp *http.Response // NewListByClusterPager - Get a list of metrics configurations for the provided cluster. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - options - MetricsConfigurationsClientListByClusterOptions contains the optional parameters for the MetricsConfigurationsClient.NewListByClusterPager @@ -331,7 +331,7 @@ func (client *MetricsConfigurationsClient) listByClusterCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -350,7 +350,7 @@ func (client *MetricsConfigurationsClient) listByClusterHandleResponse(resp *htt // Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - clusterName - The name of the cluster. // - metricsConfigurationName - The name of the metrics configuration for the cluster. @@ -379,7 +379,7 @@ func (client *MetricsConfigurationsClient) BeginUpdate(ctx context.Context, reso // and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *MetricsConfigurationsClient) update(ctx context.Context, resourceGroupName string, clusterName string, metricsConfigurationName string, metricsConfigurationUpdateParameters ClusterMetricsConfigurationPatchParameters, options *MetricsConfigurationsClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "MetricsConfigurationsClient.BeginUpdate" @@ -425,7 +425,7 @@ func (client *MetricsConfigurationsClient) updateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, metricsConfigurationUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client_example_test.go index e392b3719cf6..0442e4201e60 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/metricsconfigurations_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_ListByCluster.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_ListByCluster.json func ExampleMetricsConfigurationsClient_NewListByClusterPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -80,7 +80,7 @@ func ExampleMetricsConfigurationsClient_NewListByClusterPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Get.json func ExampleMetricsConfigurationsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -134,7 +134,7 @@ func ExampleMetricsConfigurationsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Create.json func ExampleMetricsConfigurationsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -208,7 +208,7 @@ func ExampleMetricsConfigurationsClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Delete.json func ExampleMetricsConfigurationsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -229,7 +229,7 @@ func ExampleMetricsConfigurationsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/ClusterMetricsConfigurations_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/ClusterMetricsConfigurations_Patch.json func ExampleMetricsConfigurationsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/models.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/models.go index 752fc3aa5b73..bc8b34982eb3 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/models.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/models.go @@ -37,6 +37,12 @@ type AdministratorConfiguration struct { SSHPublicKeys []*SSHPublicKey } +// AdministratorConfigurationPatch represents the patching capabilities for the administrator configuration. +type AdministratorConfigurationPatch struct { + // SshPublicKey represents the public key used to authenticate with a resource through SSH. + SSHPublicKeys []*SSHPublicKey +} + // AgentOptions are configurations that will be applied to each agent in an agent pool. type AgentOptions struct { // REQUIRED; The number of hugepages to allocate. @@ -93,6 +99,9 @@ type AgentPoolPatchParameters struct { // AgentPoolPatchProperties represents the properties of an agent pool that can be modified. type AgentPoolPatchProperties struct { + // The configuration of administrator credentials for the control plane nodes. + AdministratorConfiguration *NodePoolAdministratorConfigurationPatch + // The number of virtual machines that use this configuration. Count *int64 @@ -150,11 +159,23 @@ type AgentPoolProperties struct { // AgentPoolUpgradeSettings specifies the upgrade settings for an agent pool. type AgentPoolUpgradeSettings struct { + // The maximum time in seconds that is allowed for a node drain to complete before proceeding with the upgrade of the agent + // pool. If not specified during creation, a value of 1800 seconds is used. + DrainTimeout *int64 + // The maximum number or percentage of nodes that are surged during upgrade. This can either be set to an integer (e.g. '5') // or a percentage (e.g. '50%'). If a percentage is specified, it is the // percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If - // not specified, the default is 1. + // not specified during creation, a value of 1 is used. One of MaxSurge and + // MaxUnavailable must be greater than 0. MaxSurge *string + + // The maximum number or percentage of nodes that can be unavailable during upgrade. This can either be set to an integer + // (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the + // percentage of the total agent pool size at the time of the upgrade. For percentages, fractional nodes are rounded up. If + // not specified during creation, a value of 0 is used. One of MaxSurge and + // MaxUnavailable must be greater than 0. + MaxUnavailable *string } // AttachedNetworkConfiguration represents the set of workload networks to attach to a resource. @@ -407,6 +428,9 @@ type BareMetalMachineProperties struct { // REQUIRED; The serial number of the bare metal machine. SerialNumber *string + // The cluster version that has been applied to this machine during deployment or a version update. + MachineClusterVersion *string + // READ-ONLY; The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network. AssociatedResourceIDs []*string @@ -438,6 +462,9 @@ type BareMetalMachineProperties struct { // READ-ONLY; The version of Kubernetes running on this machine. KubernetesVersion *string + // READ-ONLY; The list of roles that are assigned to the cluster node running on this machine. + MachineRoles []*string + // READ-ONLY; The image that is currently provisioned to the OS disk. OSImage *string @@ -456,6 +483,12 @@ type BareMetalMachineProperties struct { // READ-ONLY; The indicator of whether the bare metal machine is ready to receive workloads. ReadyState *BareMetalMachineReadyState + // READ-ONLY; The runtime protection status of the bare metal machine. + RuntimeProtectionStatus *RuntimeProtectionStatus + + // READ-ONLY; The list of statuses that represent secret rotation activity. + SecretRotationStatus []*SecretRotationStatus + // READ-ONLY; The discovered value of the machine's service tag. ServiceTag *string @@ -549,7 +582,7 @@ type BgpServiceLoadBalancerConfiguration struct { // The indicator to specify if the load balancer peers with the network fabric. FabricPeeringEnabled *FabricPeeringEnabled - // The list of pools of IP addresses that can be allocated to Load Balancer services. + // The list of pools of IP addresses that can be allocated to load balancer services. IPAddressPools []*IPAddressPool } @@ -745,6 +778,9 @@ type Cluster struct { // REQUIRED; The list of the resource properties. Properties *ClusterProperties + // The identity for the resource. + Identity *ManagedServiceIdentity + // Resource tags. Tags map[string]*string @@ -793,31 +829,37 @@ type ClusterAvailableVersion struct { // ClusterCapacity represents various details regarding compute capacity. type ClusterCapacity struct { - // The remaining appliance-based storage in GB available for workload use. + // The remaining appliance-based storage in GB available for workload use. Measured in gibibytes. AvailableApplianceStorageGB *int64 // The remaining number of cores that are available in this cluster for workload use. AvailableCoreCount *int64 - // The remaining machine or host-based storage in GB available for workload use. + // The remaining machine or host-based storage in GB available for workload use. Measured in gibibytes. AvailableHostStorageGB *int64 - // The remaining memory in GB that are available in this cluster for workload use. + // The remaining memory in GB that are available in this cluster for workload use. Measured in gibibytes. AvailableMemoryGB *int64 - // The total appliance-based storage in GB supported by this cluster for workload use. + // The total appliance-based storage in GB supported by this cluster for workload use. Measured in gibibytes. TotalApplianceStorageGB *int64 // The total number of cores that are supported by this cluster for workload use. TotalCoreCount *int64 - // The total machine or host-based storage in GB supported by this cluster for workload use. + // The total machine or host-based storage in GB supported by this cluster for workload use. Measured in gibibytes. TotalHostStorageGB *int64 - // The total memory supported by this cluster for workload use. + // The total memory supported by this cluster for workload use. Measured in gibibytes. TotalMemoryGB *int64 } +// ClusterContinueUpdateVersionParameters represents the body of the request to continue the update of a cluster version. +type ClusterContinueUpdateVersionParameters struct { + // The mode by which the cluster will target the next grouping of servers to continue the update. + MachineGroupTargetingMode *ClusterContinueUpdateVersionMachineGroupTargetingMode +} + // ClusterDeployParameters represents the body of the request to deploy cluster. type ClusterDeployParameters struct { // The names of bare metal machines in the cluster that should be skipped during environment validation. @@ -841,6 +883,9 @@ type ClusterManager struct { // REQUIRED; The list of the resource properties. Properties *ClusterManagerProperties + // The identity of the cluster manager. + Identity *ManagedServiceIdentity + // Resource tags. Tags map[string]*string @@ -868,6 +913,9 @@ type ClusterManagerList struct { // ClusterManagerPatchParameters represents the body of the request to patch the cluster properties. type ClusterManagerPatchParameters struct { + // The identity for the resource. + Identity *ManagedServiceIdentity + // The Azure resource tags that will replace the existing ones. Tags map[string]*string } @@ -988,6 +1036,9 @@ type ClusterMetricsConfigurationProperties struct { // ClusterPatchParameters represents the body of the request to patch the cluster properties. type ClusterPatchParameters struct { + // The identity for the resource. + Identity *ManagedServiceIdentity + // The list of the resource properties. Properties *ClusterPatchProperties @@ -1007,11 +1058,23 @@ type ClusterPatchProperties struct { // The service principal to be used by the cluster during Arc Appliance installation. ClusterServicePrincipal *ServicePrincipalInformation + // The settings for commands run in this cluster, such as bare metal machine run read only commands and data extracts. + CommandOutputSettings *CommandOutputSettings + // The validation threshold indicating the allowable failures of compute machines during environment validation and deployment. ComputeDeploymentThreshold *ValidationThreshold // The list of rack definitions for the compute racks in a multi-rack cluster, or an empty list in a single-rack cluster. ComputeRackDefinitions []*RackDefinition + + // The settings for cluster runtime protection. + RuntimeProtectionConfiguration *RuntimeProtectionConfiguration + + // The configuration for use of a key vault to store secrets for later retrieval by the operator. + SecretArchive *ClusterSecretArchive + + // The strategy for updating the cluster. + UpdateStrategy *ClusterUpdateStrategy } // ClusterProperties represents the properties of a cluster. @@ -1038,6 +1101,9 @@ type ClusterProperties struct { // The service principal to be used by the cluster during Arc Appliance installation. ClusterServicePrincipal *ServicePrincipalInformation + // The settings for commands run in this cluster, such as bare metal machine run read only commands and data extracts. + CommandOutputSettings *CommandOutputSettings + // The validation threshold indicating the allowable failures of compute machines during environment validation and deployment. ComputeDeploymentThreshold *ValidationThreshold @@ -1047,6 +1113,15 @@ type ClusterProperties struct { // The configuration of the managed resource group associated with the resource. ManagedResourceGroupConfiguration *ManagedResourceGroupConfiguration + // The settings for cluster runtime protection. + RuntimeProtectionConfiguration *RuntimeProtectionConfiguration + + // The configuration for use of a key vault to store secrets for later retrieval by the operator. + SecretArchive *ClusterSecretArchive + + // The strategy for updating the cluster. + UpdateStrategy *ClusterUpdateStrategy + // READ-ONLY; The list of cluster runtime version upgrades available for this cluster. AvailableUpgradeVersions []*ClusterAvailableUpgradeVersion @@ -1092,12 +1167,58 @@ type ClusterProperties struct { WorkloadResourceIDs []*string } +// ClusterScanRuntimeParameters defines the parameters for the cluster scan runtime operation. +type ClusterScanRuntimeParameters struct { + // The choice of if the scan operation should run the scan. + ScanActivity *ClusterScanRuntimeParametersScanActivity +} + +// ClusterSecretArchive configures the key vault to archive the secrets of the cluster for later retrieval. +type ClusterSecretArchive struct { + // REQUIRED; The resource ID of the key vault to archive the secrets of the cluster. + KeyVaultID *string + + // The indicator if the specified key vault should be used to archive the secrets of the cluster. + UseKeyVault *ClusterSecretArchiveEnabled +} + +// ClusterUpdateStrategy represents the strategy for updating the cluster. +type ClusterUpdateStrategy struct { + // REQUIRED; The mode of operation for runtime protection. + StrategyType *ClusterUpdateStrategyType + + // REQUIRED; Selection of how the threshold should be evaluated. + ThresholdType *ValidationThresholdType + + // REQUIRED; The numeric threshold value. + ThresholdValue *int64 + + // The maximum number of worker nodes that can be offline within the increment of update, e.g., rack-by-rack. Limited by the + // maximum number of machines in the increment. Defaults to the whole increment + // size. + MaxUnavailable *int64 + + // The time to wait between the increments of update defined by the strategy. + WaitTimeMinutes *int64 +} + // ClusterUpdateVersionParameters represents the body of the request to update cluster version. type ClusterUpdateVersionParameters struct { // REQUIRED; The version to be applied to the cluster during update. TargetClusterVersion *string } +// CommandOutputSettings represents the settings for commands run within the cluster such as bare metal machine run read-only +// commands. +type CommandOutputSettings struct { + // The selection of the managed identity to use with this storage account container. The identity type must be either system + // assigned or user assigned. + AssociatedIdentity *IdentitySelector + + // The URL of the storage account container that is to be used by the specified identities. + ContainerURL *string +} + // Console represents the console of an on-premises Network Cloud virtual machine. type Console struct { // REQUIRED; The extended location of the cluster manager associated with the cluster this virtual machine is created on. @@ -1145,7 +1266,7 @@ type ConsolePatchParameters struct { // ConsolePatchProperties represents the properties of the virtual machine console that can be patched. type ConsolePatchProperties struct { - // The credentials used to login to the image repository that has access to the specified image. + // The indicator of whether the console access is enabled. Enabled *ConsoleEnabled // The date and time after which the key will be disallowed access. @@ -1204,6 +1325,9 @@ type ControlPlaneNodeConfiguration struct { // ControlPlaneNodePatchConfiguration represents the properties of the control plane that can be patched for this Kubernetes // cluster. type ControlPlaneNodePatchConfiguration struct { + // The configuration of administrator credentials for the control plane nodes. + AdministratorConfiguration *AdministratorConfigurationPatch + // The number of virtual machines that use this configuration. Count *int64 } @@ -1322,7 +1446,8 @@ type HardwareValidationStatus struct { // IPAddressPool - IpAddressPool represents a pool of IP addresses that can be allocated to a service. type IPAddressPool struct { // REQUIRED; The list of IP address ranges. Each range can be a either a subnet in CIDR format or an explicit start-end range - // of IP addresses. + // of IP addresses. For a BGP service load balancer configuration, only CIDR format is + // supported and excludes /32 (IPv4) and /128 (IPv6) prefixes. Addresses []*string // REQUIRED; The name used to identify this IP address pool for association with a BGP advertisement. @@ -1336,6 +1461,15 @@ type IPAddressPool struct { OnlyUseHostIPs *BfdEnabled } +// IdentitySelector represents the selection of a managed identity for use. +type IdentitySelector struct { + // The type of managed identity that is being selected. + IdentityType *ManagedServiceIdentitySelectorType + + // The user assigned managed identity resource ID to use. Mutually exclusive with a system assigned identity type. + UserAssignedIdentityResourceID *string +} + // ImageRepositoryCredentials represents the credentials used to login to the image repository. type ImageRepositoryCredentials struct { // REQUIRED; The password or token used to access an image in the target repository. @@ -1399,6 +1533,9 @@ type KeySetUser struct { // The free-form description for this user. Description *string + + // The user principal name (email format) used to validate this user's group membership. + UserPrincipalName *string } // KeySetUserStatus represents the status of the key set user. @@ -1440,6 +1577,79 @@ type KubernetesCluster struct { Type *string } +// KubernetesClusterFeature represents the feature of a Kubernetes cluster. +type KubernetesClusterFeature struct { + // REQUIRED; The geo-location where the resource lives + Location *string + + // The list of the resource properties. + Properties *KubernetesClusterFeatureProperties + + // Resource tags. + Tags map[string]*string + + // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + ID *string + + // READ-ONLY; The name of the resource + Name *string + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string +} + +// KubernetesClusterFeatureList represents the list of Kubernetes cluster feature resources. +type KubernetesClusterFeatureList struct { + // The link used to get the next page of operations. + NextLink *string + + // The list of Kubernetes cluster features. + Value []*KubernetesClusterFeature +} + +// KubernetesClusterFeaturePatchParameters represents the body of the request to patch the Kubernetes cluster feature. +type KubernetesClusterFeaturePatchParameters struct { + // The list of the resource properties. + Properties *KubernetesClusterFeaturePatchProperties + + // The Azure resource tags that will replace the existing ones. + Tags map[string]*string +} + +// KubernetesClusterFeaturePatchProperties represents the Kubernetes cluster feature properties for patching. +type KubernetesClusterFeaturePatchProperties struct { + // The configured options for the feature. + Options []*StringKeyValuePair +} + +// KubernetesClusterFeatureProperties represents the properties of a Kubernetes cluster feature. +type KubernetesClusterFeatureProperties struct { + // The configured options for the feature. + Options []*StringKeyValuePair + + // READ-ONLY; The lifecycle indicator of the feature. + AvailabilityLifecycle *KubernetesClusterFeatureAvailabilityLifecycle + + // READ-ONLY; The detailed status of the feature. + DetailedStatus *KubernetesClusterFeatureDetailedStatus + + // READ-ONLY; The descriptive message for the detailed status of the feature. + DetailedStatusMessage *string + + // READ-ONLY; The provisioning state of the Kubernetes cluster feature. + ProvisioningState *KubernetesClusterFeatureProvisioningState + + // READ-ONLY; The indicator of if the feature is required or optional. Optional features may be deleted by the user, while + // required features are managed with the kubernetes cluster lifecycle. + Required *KubernetesClusterFeatureRequired + + // READ-ONLY; The version of the feature. + Version *string +} + // KubernetesClusterList represents a list of Kubernetes clusters. type KubernetesClusterList struct { // The link used to get the next page of operations. @@ -1470,7 +1680,7 @@ type KubernetesClusterNode struct { // READ-ONLY; The descriptive message about the current detailed status. DetailedStatusMessage *string - // READ-ONLY; The size of the disk configured for this node. + // READ-ONLY; The size of the disk configured for this node. Allocations are measured in gibibytes. DiskSizeGB *int64 // READ-ONLY; The machine image used to deploy this node. @@ -1482,7 +1692,8 @@ type KubernetesClusterNode struct { // READ-ONLY; The list of labels on this node that have been assigned to the agent pool containing this node. Labels []*KubernetesLabel - // READ-ONLY; The amount of memory configured for this node, derived from the vm SKU specified. + // READ-ONLY; The amount of memory configured for this node, derived from the vm SKU specified. Allocations are measured in + // gibibytes. MemorySizeGB *int64 // READ-ONLY; The mode of the agent pool containing this node. Not applicable for control plane nodes. @@ -1518,11 +1729,13 @@ type KubernetesClusterPatchParameters struct { // KubernetesClusterPatchProperties represents the properties of the Kubernetes cluster that can be patched. type KubernetesClusterPatchProperties struct { + // The configuration of the default administrator credentials. + AdministratorConfiguration *AdministratorConfigurationPatch + // The defining characteristics of the control plane that can be patched for this Kubernetes cluster. ControlPlaneNodeConfiguration *ControlPlaneNodePatchConfiguration - // The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n format. The interpreted version used will be resolved - // into this field after creation or update. + // The Kubernetes version for this cluster. KubernetesVersion *string } @@ -1537,8 +1750,7 @@ type KubernetesClusterProperties struct { // sub-resource. InitialAgentPoolConfigurations []*InitialAgentPoolConfiguration - // REQUIRED; The Kubernetes version for this cluster. Accepts n.n, n.n.n, and n.n.n-n format. The interpreted version used - // will be resolved into this field after creation or update. + // REQUIRED; The Kubernetes version for this cluster. KubernetesVersion *string // REQUIRED; The configuration of the Kubernetes cluster networking, including the attachment of networks that span the cluster. @@ -1689,6 +1901,12 @@ type L2NetworkProperties struct { VirtualMachinesAssociatedIDs []*string } +// L2ServiceLoadBalancerConfiguration represents the configuration of a layer 2 service load balancer. +type L2ServiceLoadBalancerConfiguration struct { + // The list of pools of IP addresses that can be allocated to load balancer services. + IPAddressPools []*IPAddressPool +} + // L3Network represents a network that utilizes a single isolation domain set up for layer-3 resources. type L3Network struct { // REQUIRED; The extended location of the cluster associated with the resource. @@ -1815,7 +2033,7 @@ type LldpNeighbor struct { // MachineDisk - Disk represents the properties of the disk. type MachineDisk struct { - // READ-ONLY; The maximum amount of storage in GB. + // READ-ONLY; The maximum amount of storage. Measured in gibibytes. CapacityGB *int64 // READ-ONLY; The connection type of the rack SKU resource. @@ -1845,7 +2063,7 @@ type MachineSKUProperties struct { // READ-ONLY; The hardware version of the machine. HardwareVersion *string - // READ-ONLY; The maximum amount of memory in GB. + // READ-ONLY; The maximum amount of memory. Measured in gibibytes. MemoryCapacityGB *int64 // READ-ONLY; The model of the machine. @@ -1879,6 +2097,26 @@ type ManagedResourceGroupConfiguration struct { Name *string } +// ManagedServiceIdentity - Managed service identity (system assigned and/or user assigned identities) +type ManagedServiceIdentity struct { + // REQUIRED; Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + Type *ManagedServiceIdentityType + + // The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM + // resource ids in the form: + // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. + // The dictionary values can be empty objects ({}) in + // requests. + UserAssignedIdentities map[string]*UserAssignedIdentity + + // READ-ONLY; The service principal ID of the system assigned identity. This property will only be provided for a system assigned + // identity. + PrincipalID *string + + // READ-ONLY; The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + TenantID *string +} + // NetworkAttachment represents the single network attachment. type NetworkAttachment struct { // REQUIRED; The resource ID of the associated network attached to the virtual machine. It can be one of cloudServicesNetwork, @@ -1928,13 +2166,18 @@ type NetworkConfiguration struct { // The configuration of networks being attached to the cluster for use by the workloads that run on this Kubernetes cluster. AttachedNetworkConfiguration *AttachedNetworkConfiguration - // The configuration of the BGP service load balancer for this Kubernetes cluster. + // The configuration of the BGP service load balancer for this Kubernetes cluster. A maximum of one service load balancer + // may be specified, either Layer 2 or BGP. BgpServiceLoadBalancerConfiguration *BgpServiceLoadBalancerConfiguration // The IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified // in service CIDR. DNSServiceIP *string + // The configuration of the Layer 2 service load balancer for this Kubernetes cluster. A maximum of one service load balancer + // may be specified, either Layer 2 or BGP. + L2ServiceLoadBalancerConfiguration *L2ServiceLoadBalancerConfiguration + // The CIDR notation IP ranges from which to assign pod IPs. One IPv4 CIDR is expected for single-stack networking. Two CIDRs, // one for each IP family (IPv4/IPv6), is expected for dual-stack networking. PodCidrs []*string @@ -1962,7 +2205,7 @@ type NetworkInterface struct { // READ-ONLY; The number of ports on the device. PortCount *int64 - // READ-ONLY; The maximum amount of data in GB that the line card transmits through a port at any given second. + // READ-ONLY; The maximum amount of data in gigabits that the line card transmits through a port at any given second. PortSpeed *int64 // READ-ONLY; The vendor name of the device. @@ -1981,6 +2224,12 @@ type Nic struct { Name *string } +// NodePoolAdministratorConfigurationPatch represents the patching capabilities for the administrator configuration. +type NodePoolAdministratorConfigurationPatch struct { + // SshPublicKey represents the public key used to authenticate with a resource through SSH. + SSHPublicKeys []*SSHPublicKey +} + // Operation - Details of a REST API operation, returned from the Resource Provider Operations API type Operation struct { // Localized display information for this particular operation. @@ -2035,34 +2284,52 @@ type OperationStatusResult struct { // REQUIRED; Operation status. Status *string - // The end time of the operation. + // The additional properties of the operation status result. + Properties *OperationStatusResultProperties + + // READ-ONLY; The end time of the operation. EndTime *time.Time - // If present, details of the operation error. + // READ-ONLY; If present, details of the operation error. Error *ErrorDetail - // Fully qualified ID for the async operation. + // READ-ONLY; Fully qualified ID for the async operation. ID *string - // Name of the async operation. + // READ-ONLY; Name of the async operation. Name *string - // The operations list. + // READ-ONLY; The operations list. Operations []*OperationStatusResult - // Percent of the operation that is complete. + // READ-ONLY; Percent of the operation that is complete. PercentComplete *float32 - // The start time of the operation. - StartTime *time.Time - // READ-ONLY; Fully qualified ID of the resource against which the original async operation was started. ResourceID *string + + // READ-ONLY; The start time of the operation. + StartTime *time.Time +} + +// OperationStatusResultProperties represents additional properties of the operation status result. +type OperationStatusResultProperties struct { + // READ-ONLY; For actions that run commands or scripts, the exit code of the script execution. + ExitCode *string + + // READ-ONLY; For actions that run commands or scripts, the leading bytes of the output of the script execution. + OutputHead *string + + // READ-ONLY; For actions that run commands or scripts, a reference to the location of the result. + ResultRef *string + + // READ-ONLY; For actions that run commands or scripts, the URL where the full output of the script output can be retrieved. + ResultURL *string } // OsDisk represents configuration of the boot disk. type OsDisk struct { - // REQUIRED; The size of the disk in gigabytes. Required if the createOption is Ephemeral. + // REQUIRED; The size of the disk. Required if the createOption is Ephemeral. Allocations are measured in gibibytes. DiskSizeGB *int64 // The strategy for creating the OS disk. @@ -2236,12 +2503,66 @@ type RacksPatchProperties struct { RackSerialNumber *string } +// RuntimeProtectionConfiguration represents the runtime protection configuration for the cluster. +type RuntimeProtectionConfiguration struct { + // The mode of operation for runtime protection. + EnforcementLevel *RuntimeProtectionEnforcementLevel +} + +// RuntimeProtectionStatus represents the runtime protection status of the bare metal machine. +type RuntimeProtectionStatus struct { + // READ-ONLY; The timestamp when the malware definitions were last updated. + DefinitionsLastUpdated *time.Time + + // READ-ONLY; The version of the malware definitions. + DefinitionsVersion *string + + // READ-ONLY; The timestamp of the most recently completed scan, or empty if there has never been a scan. + ScanCompletedTime *time.Time + + // READ-ONLY; The timestamp of the most recently scheduled scan, or empty if no scan has been scheduled. + ScanScheduledTime *time.Time + + // READ-ONLY; The timestamp of the most recently started scan, or empty if there has never been a scan. + ScanStartedTime *time.Time +} + // SSHPublicKey - SshPublicKey represents the public key used to authenticate with a resource through SSH. type SSHPublicKey struct { // REQUIRED; The SSH public key data. KeyData *string } +// SecretArchiveReference represents the reference to a secret in a key vault. +type SecretArchiveReference struct { + // READ-ONLY; The resource ID of the key vault containing the secret. + KeyVaultID *string + + // READ-ONLY; The name of the secret in the key vault. + SecretName *string + + // READ-ONLY; The version of the secret in the key vault. + SecretVersion *string +} + +// SecretRotationStatus represents the status of a secret rotation. +type SecretRotationStatus struct { + // READ-ONLY; The maximum number of days the secret may be used before it must be changed. + ExpirePeriodDays *int64 + + // READ-ONLY; The date and time when the secret was last changed. + LastRotationTime *time.Time + + // READ-ONLY; The number of days a secret exists before rotations will be attempted. + RotationPeriodDays *int64 + + // READ-ONLY; The reference to the secret in a key vault. + SecretArchiveReference *SecretArchiveReference + + // READ-ONLY; The type name used to identify the purpose of the secret. + SecretType *string +} + // ServiceLoadBalancerBgpPeer represents the configuration of the BGP service load balancer for the Kubernetes cluster. type ServiceLoadBalancerBgpPeer struct { // REQUIRED; The name used to identify this BGP peer for association with a BGP advertisement. @@ -2259,10 +2580,14 @@ type ServiceLoadBalancerBgpPeer struct { // The indicator to enable multi-hop peering support. BgpMultiHop *BgpMultiHop - // The requested BGP hold time value. This field uses ISO 8601 duration format, for example P1H. + // Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The requested + // BGP hold time value. This field uses ISO 8601 duration format, for example + // P1H. HoldTime *string - // The requested BGP keepalive time value. This field uses ISO 8601 duration format, for example P1H. + // Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The requested + // BGP keepalive time value. This field uses ISO 8601 duration format, for + // example P1H. KeepAliveTime *string // The autonomous system number used for the local end of the BGP session. @@ -2401,6 +2726,12 @@ type StorageApplianceProperties struct { // READ-ONLY; The endpoint for the management interface of the storage appliance. ManagementIPv4Address *string + // READ-ONLY; The manufacturer of the storage appliance. + Manufacturer *string + + // READ-ONLY; The model of the storage appliance. + Model *string + // READ-ONLY; The provisioning state of the storage appliance. ProvisioningState *StorageApplianceProvisioningState @@ -2410,11 +2741,17 @@ type StorageApplianceProperties struct { // READ-ONLY; The indicator of whether the remote vendor management feature is enabled or disabled, or unsupported if it is // an unsupported feature. RemoteVendorManagementStatus *RemoteVendorManagementStatus + + // READ-ONLY; The list of statuses that represent secret rotation activity. + SecretRotationStatus []*SecretRotationStatus + + // READ-ONLY; The version of the storage appliance. + Version *string } // StorageApplianceSKUProperties - StorageApplianceSkuProperties represents the properties of the storage appliance SKU. type StorageApplianceSKUProperties struct { - // READ-ONLY; The maximum capacity of the storage appliance. + // READ-ONLY; The maximum capacity of the storage appliance. Measured in gibibytes. CapacityGB *int64 // READ-ONLY; The model of the storage appliance. @@ -2439,6 +2776,15 @@ type StorageProfile struct { VolumeAttachments []*string } +// StringKeyValuePair represents a single entry in a mapping of keys to values. +type StringKeyValuePair struct { + // REQUIRED; The key to the mapped value. + Key *string + + // REQUIRED; The value of the mapping key. + Value *string +} + // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { // The timestamp of resource creation (UTC). @@ -2552,6 +2898,15 @@ type TrunkedNetworkProperties struct { VirtualMachinesAssociatedIDs []*string } +// UserAssignedIdentity - User assigned identity properties +type UserAssignedIdentity struct { + // READ-ONLY; The client ID of the assigned identity. + ClientID *string + + // READ-ONLY; The principal ID of the assigned identity. + PrincipalID *string +} + // ValidationThreshold indicates allowed machine and node hardware and deployment failures. type ValidationThreshold struct { // REQUIRED; Selection of how the type evaluation is applied to the cluster calculation. @@ -2649,7 +3004,7 @@ type VirtualMachineProperties struct { // REQUIRED; The cloud service network that provides platform-level services for the virtual machine. CloudServicesNetworkAttachment *NetworkAttachment - // REQUIRED; The memory size of the virtual machine in GB. + // REQUIRED; The memory size of the virtual machine. Allocations are measured in gibibytes. MemorySizeGB *int64 // REQUIRED; The storage profile that specifies size and other parameters about the disks related to the virtual machine. @@ -2694,7 +3049,7 @@ type VirtualMachineProperties struct { // READ-ONLY; The cluster availability zone containing this virtual machine. AvailabilityZone *string - // READ-ONLY; The resource ID of the bare metal machine the virtual machine has landed to. + // READ-ONLY; The resource ID of the bare metal machine that hosts the virtual machine. BareMetalMachineID *string // READ-ONLY; The resource ID of the cluster the virtual machine is created for. diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/models_serde.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/models_serde.go index 6aa53bd6b07c..e1e1e7ebf2b5 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/models_serde.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/models_serde.go @@ -104,6 +104,33 @@ func (a *AdministratorConfiguration) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AdministratorConfigurationPatch. +func (a AdministratorConfigurationPatch) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "sshPublicKeys", a.SSHPublicKeys) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AdministratorConfigurationPatch. +func (a *AdministratorConfigurationPatch) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "sshPublicKeys": + err = unpopulate(val, "SSHPublicKeys", &a.SSHPublicKeys) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type AgentOptions. func (a AgentOptions) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -255,6 +282,7 @@ func (a *AgentPoolPatchParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AgentPoolPatchProperties. func (a AgentPoolPatchProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "administratorConfiguration", a.AdministratorConfiguration) populate(objectMap, "count", a.Count) populate(objectMap, "upgradeSettings", a.UpgradeSettings) return json.Marshal(objectMap) @@ -269,6 +297,9 @@ func (a *AgentPoolPatchProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "administratorConfiguration": + err = unpopulate(val, "AdministratorConfiguration", &a.AdministratorConfiguration) + delete(rawMsg, key) case "count": err = unpopulate(val, "Count", &a.Count) delete(rawMsg, key) @@ -365,7 +396,9 @@ func (a *AgentPoolProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AgentPoolUpgradeSettings. func (a AgentPoolUpgradeSettings) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "drainTimeout", a.DrainTimeout) populate(objectMap, "maxSurge", a.MaxSurge) + populate(objectMap, "maxUnavailable", a.MaxUnavailable) return json.Marshal(objectMap) } @@ -378,9 +411,15 @@ func (a *AgentPoolUpgradeSettings) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "drainTimeout": + err = unpopulate(val, "DrainTimeout", &a.DrainTimeout) + delete(rawMsg, key) case "maxSurge": err = unpopulate(val, "MaxSurge", &a.MaxSurge) delete(rawMsg, key) + case "maxUnavailable": + err = unpopulate(val, "MaxUnavailable", &a.MaxUnavailable) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", a, err) @@ -975,8 +1014,10 @@ func (b BareMetalMachineProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "hybridAksClustersAssociatedIds", b.HybridAksClustersAssociatedIDs) populate(objectMap, "kubernetesNodeName", b.KubernetesNodeName) populate(objectMap, "kubernetesVersion", b.KubernetesVersion) + populate(objectMap, "machineClusterVersion", b.MachineClusterVersion) populate(objectMap, "machineDetails", b.MachineDetails) populate(objectMap, "machineName", b.MachineName) + populate(objectMap, "machineRoles", b.MachineRoles) populate(objectMap, "machineSkuId", b.MachineSKUID) populate(objectMap, "osImage", b.OSImage) populate(objectMap, "oamIpv4Address", b.OamIPv4Address) @@ -986,6 +1027,8 @@ func (b BareMetalMachineProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "rackId", b.RackID) populate(objectMap, "rackSlot", b.RackSlot) populate(objectMap, "readyState", b.ReadyState) + populate(objectMap, "runtimeProtectionStatus", b.RuntimeProtectionStatus) + populate(objectMap, "secretRotationStatus", b.SecretRotationStatus) populate(objectMap, "serialNumber", b.SerialNumber) populate(objectMap, "serviceTag", b.ServiceTag) populate(objectMap, "virtualMachinesAssociatedIds", b.VirtualMachinesAssociatedIDs) @@ -1043,12 +1086,18 @@ func (b *BareMetalMachineProperties) UnmarshalJSON(data []byte) error { case "kubernetesVersion": err = unpopulate(val, "KubernetesVersion", &b.KubernetesVersion) delete(rawMsg, key) + case "machineClusterVersion": + err = unpopulate(val, "MachineClusterVersion", &b.MachineClusterVersion) + delete(rawMsg, key) case "machineDetails": err = unpopulate(val, "MachineDetails", &b.MachineDetails) delete(rawMsg, key) case "machineName": err = unpopulate(val, "MachineName", &b.MachineName) delete(rawMsg, key) + case "machineRoles": + err = unpopulate(val, "MachineRoles", &b.MachineRoles) + delete(rawMsg, key) case "machineSkuId": err = unpopulate(val, "MachineSKUID", &b.MachineSKUID) delete(rawMsg, key) @@ -1076,6 +1125,12 @@ func (b *BareMetalMachineProperties) UnmarshalJSON(data []byte) error { case "readyState": err = unpopulate(val, "ReadyState", &b.ReadyState) delete(rawMsg, key) + case "runtimeProtectionStatus": + err = unpopulate(val, "RuntimeProtectionStatus", &b.RuntimeProtectionStatus) + delete(rawMsg, key) + case "secretRotationStatus": + err = unpopulate(val, "SecretRotationStatus", &b.SecretRotationStatus) + delete(rawMsg, key) case "serialNumber": err = unpopulate(val, "SerialNumber", &b.SerialNumber) delete(rawMsg, key) @@ -1738,6 +1793,7 @@ func (c Cluster) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "extendedLocation", c.ExtendedLocation) populate(objectMap, "id", c.ID) + populate(objectMap, "identity", c.Identity) populate(objectMap, "location", c.Location) populate(objectMap, "name", c.Name) populate(objectMap, "properties", c.Properties) @@ -1762,6 +1818,9 @@ func (c *Cluster) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &c.ID) delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &c.Identity) + delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &c.Location) delete(rawMsg, key) @@ -1921,6 +1980,33 @@ func (c *ClusterCapacity) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ClusterContinueUpdateVersionParameters. +func (c ClusterContinueUpdateVersionParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "machineGroupTargetingMode", c.MachineGroupTargetingMode) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterContinueUpdateVersionParameters. +func (c *ClusterContinueUpdateVersionParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "machineGroupTargetingMode": + err = unpopulate(val, "MachineGroupTargetingMode", &c.MachineGroupTargetingMode) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ClusterDeployParameters. func (c ClusterDeployParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -1983,6 +2069,7 @@ func (c *ClusterList) UnmarshalJSON(data []byte) error { func (c ClusterManager) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "id", c.ID) + populate(objectMap, "identity", c.Identity) populate(objectMap, "location", c.Location) populate(objectMap, "name", c.Name) populate(objectMap, "properties", c.Properties) @@ -2004,6 +2091,9 @@ func (c *ClusterManager) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &c.ID) delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &c.Identity) + delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &c.Location) delete(rawMsg, key) @@ -2064,6 +2154,7 @@ func (c *ClusterManagerList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClusterManagerPatchParameters. func (c ClusterManagerPatchParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "identity", c.Identity) populate(objectMap, "tags", c.Tags) return json.Marshal(objectMap) } @@ -2077,6 +2168,9 @@ func (c *ClusterManagerPatchParameters) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "identity": + err = unpopulate(val, "Identity", &c.Identity) + delete(rawMsg, key) case "tags": err = unpopulate(val, "Tags", &c.Tags) delete(rawMsg, key) @@ -2349,6 +2443,7 @@ func (c *ClusterMetricsConfigurationProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type ClusterPatchParameters. func (c ClusterPatchParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "identity", c.Identity) populate(objectMap, "properties", c.Properties) populate(objectMap, "tags", c.Tags) return json.Marshal(objectMap) @@ -2363,6 +2458,9 @@ func (c *ClusterPatchParameters) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "identity": + err = unpopulate(val, "Identity", &c.Identity) + delete(rawMsg, key) case "properties": err = unpopulate(val, "Properties", &c.Properties) delete(rawMsg, key) @@ -2383,8 +2481,12 @@ func (c ClusterPatchProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "aggregatorOrSingleRackDefinition", c.AggregatorOrSingleRackDefinition) populate(objectMap, "clusterLocation", c.ClusterLocation) populate(objectMap, "clusterServicePrincipal", c.ClusterServicePrincipal) + populate(objectMap, "commandOutputSettings", c.CommandOutputSettings) populate(objectMap, "computeDeploymentThreshold", c.ComputeDeploymentThreshold) populate(objectMap, "computeRackDefinitions", c.ComputeRackDefinitions) + populate(objectMap, "runtimeProtectionConfiguration", c.RuntimeProtectionConfiguration) + populate(objectMap, "secretArchive", c.SecretArchive) + populate(objectMap, "updateStrategy", c.UpdateStrategy) return json.Marshal(objectMap) } @@ -2406,12 +2508,24 @@ func (c *ClusterPatchProperties) UnmarshalJSON(data []byte) error { case "clusterServicePrincipal": err = unpopulate(val, "ClusterServicePrincipal", &c.ClusterServicePrincipal) delete(rawMsg, key) + case "commandOutputSettings": + err = unpopulate(val, "CommandOutputSettings", &c.CommandOutputSettings) + delete(rawMsg, key) case "computeDeploymentThreshold": err = unpopulate(val, "ComputeDeploymentThreshold", &c.ComputeDeploymentThreshold) delete(rawMsg, key) case "computeRackDefinitions": err = unpopulate(val, "ComputeRackDefinitions", &c.ComputeRackDefinitions) delete(rawMsg, key) + case "runtimeProtectionConfiguration": + err = unpopulate(val, "RuntimeProtectionConfiguration", &c.RuntimeProtectionConfiguration) + delete(rawMsg, key) + case "secretArchive": + err = unpopulate(val, "SecretArchive", &c.SecretArchive) + delete(rawMsg, key) + case "updateStrategy": + err = unpopulate(val, "UpdateStrategy", &c.UpdateStrategy) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", c, err) @@ -2435,6 +2549,7 @@ func (c ClusterProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "clusterServicePrincipal", c.ClusterServicePrincipal) populate(objectMap, "clusterType", c.ClusterType) populate(objectMap, "clusterVersion", c.ClusterVersion) + populate(objectMap, "commandOutputSettings", c.CommandOutputSettings) populate(objectMap, "computeDeploymentThreshold", c.ComputeDeploymentThreshold) populate(objectMap, "computeRackDefinitions", c.ComputeRackDefinitions) populate(objectMap, "detailedStatus", c.DetailedStatus) @@ -2444,7 +2559,10 @@ func (c ClusterProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "manualActionCount", c.ManualActionCount) populate(objectMap, "networkFabricId", c.NetworkFabricID) populate(objectMap, "provisioningState", c.ProvisioningState) + populate(objectMap, "runtimeProtectionConfiguration", c.RuntimeProtectionConfiguration) + populate(objectMap, "secretArchive", c.SecretArchive) populate(objectMap, "supportExpiryDate", c.SupportExpiryDate) + populate(objectMap, "updateStrategy", c.UpdateStrategy) populate(objectMap, "workloadResourceIds", c.WorkloadResourceIDs) return json.Marshal(objectMap) } @@ -2494,6 +2612,9 @@ func (c *ClusterProperties) UnmarshalJSON(data []byte) error { case "clusterVersion": err = unpopulate(val, "ClusterVersion", &c.ClusterVersion) delete(rawMsg, key) + case "commandOutputSettings": + err = unpopulate(val, "CommandOutputSettings", &c.CommandOutputSettings) + delete(rawMsg, key) case "computeDeploymentThreshold": err = unpopulate(val, "ComputeDeploymentThreshold", &c.ComputeDeploymentThreshold) delete(rawMsg, key) @@ -2521,9 +2642,18 @@ func (c *ClusterProperties) UnmarshalJSON(data []byte) error { case "provisioningState": err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) delete(rawMsg, key) + case "runtimeProtectionConfiguration": + err = unpopulate(val, "RuntimeProtectionConfiguration", &c.RuntimeProtectionConfiguration) + delete(rawMsg, key) + case "secretArchive": + err = unpopulate(val, "SecretArchive", &c.SecretArchive) + delete(rawMsg, key) case "supportExpiryDate": err = unpopulate(val, "SupportExpiryDate", &c.SupportExpiryDate) delete(rawMsg, key) + case "updateStrategy": + err = unpopulate(val, "UpdateStrategy", &c.UpdateStrategy) + delete(rawMsg, key) case "workloadResourceIds": err = unpopulate(val, "WorkloadResourceIDs", &c.WorkloadResourceIDs) delete(rawMsg, key) @@ -2535,6 +2665,107 @@ func (c *ClusterProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ClusterScanRuntimeParameters. +func (c ClusterScanRuntimeParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "scanActivity", c.ScanActivity) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterScanRuntimeParameters. +func (c *ClusterScanRuntimeParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "scanActivity": + err = unpopulate(val, "ScanActivity", &c.ScanActivity) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ClusterSecretArchive. +func (c ClusterSecretArchive) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyVaultId", c.KeyVaultID) + populate(objectMap, "useKeyVault", c.UseKeyVault) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterSecretArchive. +func (c *ClusterSecretArchive) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "keyVaultId": + err = unpopulate(val, "KeyVaultID", &c.KeyVaultID) + delete(rawMsg, key) + case "useKeyVault": + err = unpopulate(val, "UseKeyVault", &c.UseKeyVault) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ClusterUpdateStrategy. +func (c ClusterUpdateStrategy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "maxUnavailable", c.MaxUnavailable) + populate(objectMap, "strategyType", c.StrategyType) + populate(objectMap, "thresholdType", c.ThresholdType) + populate(objectMap, "thresholdValue", c.ThresholdValue) + populate(objectMap, "waitTimeMinutes", c.WaitTimeMinutes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterUpdateStrategy. +func (c *ClusterUpdateStrategy) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "maxUnavailable": + err = unpopulate(val, "MaxUnavailable", &c.MaxUnavailable) + delete(rawMsg, key) + case "strategyType": + err = unpopulate(val, "StrategyType", &c.StrategyType) + delete(rawMsg, key) + case "thresholdType": + err = unpopulate(val, "ThresholdType", &c.ThresholdType) + delete(rawMsg, key) + case "thresholdValue": + err = unpopulate(val, "ThresholdValue", &c.ThresholdValue) + delete(rawMsg, key) + case "waitTimeMinutes": + err = unpopulate(val, "WaitTimeMinutes", &c.WaitTimeMinutes) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ClusterUpdateVersionParameters. func (c ClusterUpdateVersionParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -2562,6 +2793,37 @@ func (c *ClusterUpdateVersionParameters) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CommandOutputSettings. +func (c CommandOutputSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "associatedIdentity", c.AssociatedIdentity) + populate(objectMap, "containerUrl", c.ContainerURL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommandOutputSettings. +func (c *CommandOutputSettings) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "associatedIdentity": + err = unpopulate(val, "AssociatedIdentity", &c.AssociatedIdentity) + delete(rawMsg, key) + case "containerUrl": + err = unpopulate(val, "ContainerURL", &c.ContainerURL) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type Console. func (c Console) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -2811,6 +3073,7 @@ func (c *ControlPlaneNodeConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ControlPlaneNodePatchConfiguration. func (c ControlPlaneNodePatchConfiguration) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "administratorConfiguration", c.AdministratorConfiguration) populate(objectMap, "count", c.Count) return json.Marshal(objectMap) } @@ -2824,6 +3087,9 @@ func (c *ControlPlaneNodePatchConfiguration) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "administratorConfiguration": + err = unpopulate(val, "AdministratorConfiguration", &c.AdministratorConfiguration) + delete(rawMsg, key) case "count": err = unpopulate(val, "Count", &c.Count) delete(rawMsg, key) @@ -3185,6 +3451,37 @@ func (i *IPAddressPool) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type IdentitySelector. +func (i IdentitySelector) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identityType", i.IdentityType) + populate(objectMap, "userAssignedIdentityResourceId", i.UserAssignedIdentityResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IdentitySelector. +func (i *IdentitySelector) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "identityType": + err = unpopulate(val, "IdentityType", &i.IdentityType) + delete(rawMsg, key) + case "userAssignedIdentityResourceId": + err = unpopulate(val, "UserAssignedIdentityResourceID", &i.UserAssignedIdentityResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ImageRepositoryCredentials. func (i ImageRepositoryCredentials) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -3293,6 +3590,7 @@ func (k KeySetUser) MarshalJSON() ([]byte, error) { populate(objectMap, "azureUserName", k.AzureUserName) populate(objectMap, "description", k.Description) populate(objectMap, "sshPublicKey", k.SSHPublicKey) + populate(objectMap, "userPrincipalName", k.UserPrincipalName) return json.Marshal(objectMap) } @@ -3314,6 +3612,9 @@ func (k *KeySetUser) UnmarshalJSON(data []byte) error { case "sshPublicKey": err = unpopulate(val, "SSHPublicKey", &k.SSHPublicKey) delete(rawMsg, key) + case "userPrincipalName": + err = unpopulate(val, "UserPrincipalName", &k.UserPrincipalName) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", k, err) @@ -3412,16 +3713,67 @@ func (k *KubernetesCluster) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type KubernetesClusterList. -func (k KubernetesClusterList) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type KubernetesClusterFeature. +func (k KubernetesClusterFeature) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", k.ID) + populate(objectMap, "location", k.Location) + populate(objectMap, "name", k.Name) + populate(objectMap, "properties", k.Properties) + populate(objectMap, "systemData", k.SystemData) + populate(objectMap, "tags", k.Tags) + populate(objectMap, "type", k.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KubernetesClusterFeature. +func (k *KubernetesClusterFeature) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &k.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &k.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &k.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &k.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &k.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &k.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &k.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KubernetesClusterFeatureList. +func (k KubernetesClusterFeatureList) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) populate(objectMap, "nextLink", k.NextLink) populate(objectMap, "value", k.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type KubernetesClusterList. -func (k *KubernetesClusterList) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type KubernetesClusterFeatureList. +func (k *KubernetesClusterFeatureList) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", k, err) @@ -3443,32 +3795,16 @@ func (k *KubernetesClusterList) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type KubernetesClusterNode. -func (k KubernetesClusterNode) MarshalJSON() ([]byte, error) { +// MarshalJSON implements the json.Marshaller interface for type KubernetesClusterFeaturePatchParameters. +func (k KubernetesClusterFeaturePatchParameters) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) - populate(objectMap, "agentPoolId", k.AgentPoolID) - populate(objectMap, "availabilityZone", k.AvailabilityZone) - populate(objectMap, "bareMetalMachineId", k.BareMetalMachineID) - populate(objectMap, "cpuCores", k.CPUCores) - populate(objectMap, "detailedStatus", k.DetailedStatus) - populate(objectMap, "detailedStatusMessage", k.DetailedStatusMessage) - populate(objectMap, "diskSizeGB", k.DiskSizeGB) - populate(objectMap, "image", k.Image) - populate(objectMap, "kubernetesVersion", k.KubernetesVersion) - populate(objectMap, "labels", k.Labels) - populate(objectMap, "memorySizeGB", k.MemorySizeGB) - populate(objectMap, "mode", k.Mode) - populate(objectMap, "name", k.Name) - populate(objectMap, "networkAttachments", k.NetworkAttachments) - populate(objectMap, "powerState", k.PowerState) - populate(objectMap, "role", k.Role) - populate(objectMap, "taints", k.Taints) - populate(objectMap, "vmSkuName", k.VMSKUName) + populate(objectMap, "properties", k.Properties) + populate(objectMap, "tags", k.Tags) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type KubernetesClusterNode. -func (k *KubernetesClusterNode) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type KubernetesClusterFeaturePatchParameters. +func (k *KubernetesClusterFeaturePatchParameters) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", k, err) @@ -3476,8 +3812,164 @@ func (k *KubernetesClusterNode) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "agentPoolId": - err = unpopulate(val, "AgentPoolID", &k.AgentPoolID) + case "properties": + err = unpopulate(val, "Properties", &k.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &k.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KubernetesClusterFeaturePatchProperties. +func (k KubernetesClusterFeaturePatchProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "options", k.Options) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KubernetesClusterFeaturePatchProperties. +func (k *KubernetesClusterFeaturePatchProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "options": + err = unpopulate(val, "Options", &k.Options) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KubernetesClusterFeatureProperties. +func (k KubernetesClusterFeatureProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "availabilityLifecycle", k.AvailabilityLifecycle) + populate(objectMap, "detailedStatus", k.DetailedStatus) + populate(objectMap, "detailedStatusMessage", k.DetailedStatusMessage) + populate(objectMap, "options", k.Options) + populate(objectMap, "provisioningState", k.ProvisioningState) + populate(objectMap, "required", k.Required) + populate(objectMap, "version", k.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KubernetesClusterFeatureProperties. +func (k *KubernetesClusterFeatureProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "availabilityLifecycle": + err = unpopulate(val, "AvailabilityLifecycle", &k.AvailabilityLifecycle) + delete(rawMsg, key) + case "detailedStatus": + err = unpopulate(val, "DetailedStatus", &k.DetailedStatus) + delete(rawMsg, key) + case "detailedStatusMessage": + err = unpopulate(val, "DetailedStatusMessage", &k.DetailedStatusMessage) + delete(rawMsg, key) + case "options": + err = unpopulate(val, "Options", &k.Options) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &k.ProvisioningState) + delete(rawMsg, key) + case "required": + err = unpopulate(val, "Required", &k.Required) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &k.Version) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KubernetesClusterList. +func (k KubernetesClusterList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", k.NextLink) + populate(objectMap, "value", k.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KubernetesClusterList. +func (k *KubernetesClusterList) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &k.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &k.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KubernetesClusterNode. +func (k KubernetesClusterNode) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentPoolId", k.AgentPoolID) + populate(objectMap, "availabilityZone", k.AvailabilityZone) + populate(objectMap, "bareMetalMachineId", k.BareMetalMachineID) + populate(objectMap, "cpuCores", k.CPUCores) + populate(objectMap, "detailedStatus", k.DetailedStatus) + populate(objectMap, "detailedStatusMessage", k.DetailedStatusMessage) + populate(objectMap, "diskSizeGB", k.DiskSizeGB) + populate(objectMap, "image", k.Image) + populate(objectMap, "kubernetesVersion", k.KubernetesVersion) + populate(objectMap, "labels", k.Labels) + populate(objectMap, "memorySizeGB", k.MemorySizeGB) + populate(objectMap, "mode", k.Mode) + populate(objectMap, "name", k.Name) + populate(objectMap, "networkAttachments", k.NetworkAttachments) + populate(objectMap, "powerState", k.PowerState) + populate(objectMap, "role", k.Role) + populate(objectMap, "taints", k.Taints) + populate(objectMap, "vmSkuName", k.VMSKUName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KubernetesClusterNode. +func (k *KubernetesClusterNode) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "agentPoolId": + err = unpopulate(val, "AgentPoolID", &k.AgentPoolID) delete(rawMsg, key) case "availabilityZone": err = unpopulate(val, "AvailabilityZone", &k.AvailabilityZone) @@ -3572,6 +4064,7 @@ func (k *KubernetesClusterPatchParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KubernetesClusterPatchProperties. func (k KubernetesClusterPatchProperties) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) + populate(objectMap, "administratorConfiguration", k.AdministratorConfiguration) populate(objectMap, "controlPlaneNodeConfiguration", k.ControlPlaneNodeConfiguration) populate(objectMap, "kubernetesVersion", k.KubernetesVersion) return json.Marshal(objectMap) @@ -3586,6 +4079,9 @@ func (k *KubernetesClusterPatchProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "administratorConfiguration": + err = unpopulate(val, "AdministratorConfiguration", &k.AdministratorConfiguration) + delete(rawMsg, key) case "controlPlaneNodeConfiguration": err = unpopulate(val, "ControlPlaneNodeConfiguration", &k.ControlPlaneNodeConfiguration) delete(rawMsg, key) @@ -3956,6 +4452,33 @@ func (l *L2NetworkProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type L2ServiceLoadBalancerConfiguration. +func (l L2ServiceLoadBalancerConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "ipAddressPools", l.IPAddressPools) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type L2ServiceLoadBalancerConfiguration. +func (l *L2ServiceLoadBalancerConfiguration) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "ipAddressPools": + err = unpopulate(val, "IPAddressPools", &l.IPAddressPools) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type L3Network. func (l L3Network) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -4390,6 +4913,45 @@ func (m *ManagedResourceGroupConfiguration) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ManagedServiceIdentity. +func (m ManagedServiceIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "principalId", m.PrincipalID) + populate(objectMap, "tenantId", m.TenantID) + populate(objectMap, "type", m.Type) + populate(objectMap, "userAssignedIdentities", m.UserAssignedIdentities) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedServiceIdentity. +func (m *ManagedServiceIdentity) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "principalId": + err = unpopulate(val, "PrincipalID", &m.PrincipalID) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &m.TenantID) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + delete(rawMsg, key) + case "userAssignedIdentities": + err = unpopulate(val, "UserAssignedIdentities", &m.UserAssignedIdentities) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", m, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type NetworkAttachment. func (n NetworkAttachment) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -4449,6 +5011,7 @@ func (n NetworkConfiguration) MarshalJSON() ([]byte, error) { populate(objectMap, "cloudServicesNetworkId", n.CloudServicesNetworkID) populate(objectMap, "cniNetworkId", n.CniNetworkID) populate(objectMap, "dnsServiceIp", n.DNSServiceIP) + populate(objectMap, "l2ServiceLoadBalancerConfiguration", n.L2ServiceLoadBalancerConfiguration) populate(objectMap, "podCidrs", n.PodCidrs) populate(objectMap, "serviceCidrs", n.ServiceCidrs) return json.Marshal(objectMap) @@ -4478,6 +5041,9 @@ func (n *NetworkConfiguration) UnmarshalJSON(data []byte) error { case "dnsServiceIp": err = unpopulate(val, "DNSServiceIP", &n.DNSServiceIP) delete(rawMsg, key) + case "l2ServiceLoadBalancerConfiguration": + err = unpopulate(val, "L2ServiceLoadBalancerConfiguration", &n.L2ServiceLoadBalancerConfiguration) + delete(rawMsg, key) case "podCidrs": err = unpopulate(val, "PodCidrs", &n.PodCidrs) delete(rawMsg, key) @@ -4578,6 +5144,33 @@ func (n *Nic) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type NodePoolAdministratorConfigurationPatch. +func (n NodePoolAdministratorConfigurationPatch) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "sshPublicKeys", n.SSHPublicKeys) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NodePoolAdministratorConfigurationPatch. +func (n *NodePoolAdministratorConfigurationPatch) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", n, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "sshPublicKeys": + err = unpopulate(val, "SSHPublicKeys", &n.SSHPublicKeys) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", n, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type Operation. func (o Operation) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -4700,6 +5293,7 @@ func (o OperationStatusResult) MarshalJSON() ([]byte, error) { populate(objectMap, "name", o.Name) populate(objectMap, "operations", o.Operations) populate(objectMap, "percentComplete", o.PercentComplete) + populate(objectMap, "properties", o.Properties) populate(objectMap, "resourceId", o.ResourceID) populateDateTimeRFC3339(objectMap, "startTime", o.StartTime) populate(objectMap, "status", o.Status) @@ -4733,6 +5327,9 @@ func (o *OperationStatusResult) UnmarshalJSON(data []byte) error { case "percentComplete": err = unpopulate(val, "PercentComplete", &o.PercentComplete) delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &o.Properties) + delete(rawMsg, key) case "resourceId": err = unpopulate(val, "ResourceID", &o.ResourceID) delete(rawMsg, key) @@ -4750,6 +5347,45 @@ func (o *OperationStatusResult) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type OperationStatusResultProperties. +func (o OperationStatusResultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "exitCode", o.ExitCode) + populate(objectMap, "outputHead", o.OutputHead) + populate(objectMap, "resultRef", o.ResultRef) + populate(objectMap, "resultUrl", o.ResultURL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationStatusResultProperties. +func (o *OperationStatusResultProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "exitCode": + err = unpopulate(val, "ExitCode", &o.ExitCode) + delete(rawMsg, key) + case "outputHead": + err = unpopulate(val, "OutputHead", &o.OutputHead) + delete(rawMsg, key) + case "resultRef": + err = unpopulate(val, "ResultRef", &o.ResultRef) + delete(rawMsg, key) + case "resultUrl": + err = unpopulate(val, "ResultURL", &o.ResultURL) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type OsDisk. func (o OsDisk) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -5168,6 +5804,76 @@ func (r *RacksPatchProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type RuntimeProtectionConfiguration. +func (r RuntimeProtectionConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enforcementLevel", r.EnforcementLevel) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RuntimeProtectionConfiguration. +func (r *RuntimeProtectionConfiguration) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "enforcementLevel": + err = unpopulate(val, "EnforcementLevel", &r.EnforcementLevel) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type RuntimeProtectionStatus. +func (r RuntimeProtectionStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateDateTimeRFC3339(objectMap, "definitionsLastUpdated", r.DefinitionsLastUpdated) + populate(objectMap, "definitionsVersion", r.DefinitionsVersion) + populateDateTimeRFC3339(objectMap, "scanCompletedTime", r.ScanCompletedTime) + populateDateTimeRFC3339(objectMap, "scanScheduledTime", r.ScanScheduledTime) + populateDateTimeRFC3339(objectMap, "scanStartedTime", r.ScanStartedTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RuntimeProtectionStatus. +func (r *RuntimeProtectionStatus) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "definitionsLastUpdated": + err = unpopulateDateTimeRFC3339(val, "DefinitionsLastUpdated", &r.DefinitionsLastUpdated) + delete(rawMsg, key) + case "definitionsVersion": + err = unpopulate(val, "DefinitionsVersion", &r.DefinitionsVersion) + delete(rawMsg, key) + case "scanCompletedTime": + err = unpopulateDateTimeRFC3339(val, "ScanCompletedTime", &r.ScanCompletedTime) + delete(rawMsg, key) + case "scanScheduledTime": + err = unpopulateDateTimeRFC3339(val, "ScanScheduledTime", &r.ScanScheduledTime) + delete(rawMsg, key) + case "scanStartedTime": + err = unpopulateDateTimeRFC3339(val, "ScanStartedTime", &r.ScanStartedTime) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type SSHPublicKey. func (s SSHPublicKey) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -5195,6 +5901,84 @@ func (s *SSHPublicKey) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SecretArchiveReference. +func (s SecretArchiveReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyVaultId", s.KeyVaultID) + populate(objectMap, "secretName", s.SecretName) + populate(objectMap, "secretVersion", s.SecretVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SecretArchiveReference. +func (s *SecretArchiveReference) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "keyVaultId": + err = unpopulate(val, "KeyVaultID", &s.KeyVaultID) + delete(rawMsg, key) + case "secretName": + err = unpopulate(val, "SecretName", &s.SecretName) + delete(rawMsg, key) + case "secretVersion": + err = unpopulate(val, "SecretVersion", &s.SecretVersion) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SecretRotationStatus. +func (s SecretRotationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "expirePeriodDays", s.ExpirePeriodDays) + populateDateTimeRFC3339(objectMap, "lastRotationTime", s.LastRotationTime) + populate(objectMap, "rotationPeriodDays", s.RotationPeriodDays) + populate(objectMap, "secretArchiveReference", s.SecretArchiveReference) + populate(objectMap, "secretType", s.SecretType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SecretRotationStatus. +func (s *SecretRotationStatus) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "expirePeriodDays": + err = unpopulate(val, "ExpirePeriodDays", &s.ExpirePeriodDays) + delete(rawMsg, key) + case "lastRotationTime": + err = unpopulateDateTimeRFC3339(val, "LastRotationTime", &s.LastRotationTime) + delete(rawMsg, key) + case "rotationPeriodDays": + err = unpopulate(val, "RotationPeriodDays", &s.RotationPeriodDays) + delete(rawMsg, key) + case "secretArchiveReference": + err = unpopulate(val, "SecretArchiveReference", &s.SecretArchiveReference) + delete(rawMsg, key) + case "secretType": + err = unpopulate(val, "SecretType", &s.SecretType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ServiceLoadBalancerBgpPeer. func (s ServiceLoadBalancerBgpPeer) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -5517,13 +6301,17 @@ func (s StorageApplianceProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "detailedStatus", s.DetailedStatus) populate(objectMap, "detailedStatusMessage", s.DetailedStatusMessage) populate(objectMap, "managementIpv4Address", s.ManagementIPv4Address) + populate(objectMap, "manufacturer", s.Manufacturer) + populate(objectMap, "model", s.Model) populate(objectMap, "provisioningState", s.ProvisioningState) populate(objectMap, "rackId", s.RackID) populate(objectMap, "rackSlot", s.RackSlot) populate(objectMap, "remoteVendorManagementFeature", s.RemoteVendorManagementFeature) populate(objectMap, "remoteVendorManagementStatus", s.RemoteVendorManagementStatus) + populate(objectMap, "secretRotationStatus", s.SecretRotationStatus) populate(objectMap, "serialNumber", s.SerialNumber) populate(objectMap, "storageApplianceSkuId", s.StorageApplianceSKUID) + populate(objectMap, "version", s.Version) return json.Marshal(objectMap) } @@ -5557,6 +6345,12 @@ func (s *StorageApplianceProperties) UnmarshalJSON(data []byte) error { case "managementIpv4Address": err = unpopulate(val, "ManagementIPv4Address", &s.ManagementIPv4Address) delete(rawMsg, key) + case "manufacturer": + err = unpopulate(val, "Manufacturer", &s.Manufacturer) + delete(rawMsg, key) + case "model": + err = unpopulate(val, "Model", &s.Model) + delete(rawMsg, key) case "provisioningState": err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) delete(rawMsg, key) @@ -5572,12 +6366,18 @@ func (s *StorageApplianceProperties) UnmarshalJSON(data []byte) error { case "remoteVendorManagementStatus": err = unpopulate(val, "RemoteVendorManagementStatus", &s.RemoteVendorManagementStatus) delete(rawMsg, key) + case "secretRotationStatus": + err = unpopulate(val, "SecretRotationStatus", &s.SecretRotationStatus) + delete(rawMsg, key) case "serialNumber": err = unpopulate(val, "SerialNumber", &s.SerialNumber) delete(rawMsg, key) case "storageApplianceSkuId": err = unpopulate(val, "StorageApplianceSKUID", &s.StorageApplianceSKUID) delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -5679,6 +6479,37 @@ func (s *StorageProfile) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type StringKeyValuePair. +func (s StringKeyValuePair) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "key", s.Key) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StringKeyValuePair. +func (s *StringKeyValuePair) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "key": + err = unpopulate(val, "Key", &s.Key) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -5937,6 +6768,37 @@ func (t *TrunkedNetworkProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity. +func (u UserAssignedIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientId", u.ClientID) + populate(objectMap, "principalId", u.PrincipalID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentity. +func (u *UserAssignedIdentity) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", u, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "clientId": + err = unpopulate(val, "ClientID", &u.ClientID) + delete(rawMsg, key) + case "principalId": + err = unpopulate(val, "PrincipalID", &u.PrincipalID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", u, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ValidationThreshold. func (v ValidationThreshold) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) @@ -6482,7 +7344,7 @@ func populateAny(m map[string]any, k string, v any) { } func unpopulate(data json.RawMessage, fn string, v any) error { - if data == nil { + if data == nil || string(data) == "null" { return nil } if err := json.Unmarshal(data, v); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client.go index 44d09f3dca2d..9ba46edf9975 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client.go @@ -40,7 +40,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - Get a list of all available resource provider operations. It contains a URL link to get the next set of // results. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ @@ -73,7 +73,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client_example_test.go index a6308439873e..fbfe3ae1fa5d 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/operations_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Operations_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Operations_List.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/options.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/options.go index 2d7984a319e2..f23ce14f8d6e 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/options.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/options.go @@ -288,6 +288,13 @@ type ClusterManagersClientUpdateOptions struct { // placeholder for future optional parameters } +// ClustersClientBeginContinueUpdateVersionOptions contains the optional parameters for the ClustersClient.BeginContinueUpdateVersion +// method. +type ClustersClientBeginContinueUpdateVersionOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + // ClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the ClustersClient.BeginCreateOrUpdate method. type ClustersClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. @@ -309,6 +316,15 @@ type ClustersClientBeginDeployOptions struct { ResumeToken string } +// ClustersClientBeginScanRuntimeOptions contains the optional parameters for the ClustersClient.BeginScanRuntime method. +type ClustersClientBeginScanRuntimeOptions struct { + // The request body. + ClusterScanRuntimeParameters *ClusterScanRuntimeParameters + + // Resumes the LRO from the provided token. + ResumeToken string +} + // ClustersClientBeginUpdateOptions contains the optional parameters for the ClustersClient.BeginUpdate method. type ClustersClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. @@ -367,6 +383,39 @@ type ConsolesClientListByVirtualMachineOptions struct { // placeholder for future optional parameters } +// KubernetesClusterFeaturesClientBeginCreateOrUpdateOptions contains the optional parameters for the KubernetesClusterFeaturesClient.BeginCreateOrUpdate +// method. +type KubernetesClusterFeaturesClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// KubernetesClusterFeaturesClientBeginDeleteOptions contains the optional parameters for the KubernetesClusterFeaturesClient.BeginDelete +// method. +type KubernetesClusterFeaturesClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// KubernetesClusterFeaturesClientBeginUpdateOptions contains the optional parameters for the KubernetesClusterFeaturesClient.BeginUpdate +// method. +type KubernetesClusterFeaturesClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// KubernetesClusterFeaturesClientGetOptions contains the optional parameters for the KubernetesClusterFeaturesClient.Get +// method. +type KubernetesClusterFeaturesClientGetOptions struct { + // placeholder for future optional parameters +} + +// KubernetesClusterFeaturesClientListByKubernetesClusterOptions contains the optional parameters for the KubernetesClusterFeaturesClient.NewListByKubernetesClusterPager +// method. +type KubernetesClusterFeaturesClientListByKubernetesClusterOptions struct { + // placeholder for future optional parameters +} + // KubernetesClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the KubernetesClustersClient.BeginCreateOrUpdate // method. type KubernetesClustersClientBeginCreateOrUpdateOptions struct { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client.go index 766dc5d939ee..e19a5e3fe182 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client.go @@ -47,7 +47,7 @@ func NewRacksClient(subscriptionID string, credential azcore.TokenCredential, op // be rejected as the life cycle of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - rackName - The name of the rack. // - rackParameters - The request body. @@ -75,7 +75,7 @@ func (client *RacksClient) BeginCreateOrUpdate(ctx context.Context, resourceGrou // as the life cycle of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *RacksClient) createOrUpdate(ctx context.Context, resourceGroupName string, rackName string, rackParameters Rack, options *RacksClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "RacksClient.BeginCreateOrUpdate" @@ -117,7 +117,7 @@ func (client *RacksClient) createOrUpdateCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, rackParameters); err != nil { @@ -130,7 +130,7 @@ func (client *RacksClient) createOrUpdateCreateRequest(ctx context.Context, reso // is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - rackName - The name of the rack. // - options - RacksClientBeginDeleteOptions contains the optional parameters for the RacksClient.BeginDelete method. @@ -156,7 +156,7 @@ func (client *RacksClient) BeginDelete(ctx context.Context, resourceGroupName st // is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *RacksClient) deleteOperation(ctx context.Context, resourceGroupName string, rackName string, options *RacksClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "RacksClient.BeginDelete" @@ -198,7 +198,7 @@ func (client *RacksClient) deleteCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -207,7 +207,7 @@ func (client *RacksClient) deleteCreateRequest(ctx context.Context, resourceGrou // Get - Get properties of the provided rack. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - rackName - The name of the rack. // - options - RacksClientGetOptions contains the optional parameters for the RacksClient.Get method. @@ -253,7 +253,7 @@ func (client *RacksClient) getCreateRequest(ctx context.Context, resourceGroupNa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -270,7 +270,7 @@ func (client *RacksClient) getHandleResponse(resp *http.Response) (RacksClientGe // NewListByResourceGroupPager - Get a list of racks in the provided resource group. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - RacksClientListByResourceGroupOptions contains the optional parameters for the RacksClient.NewListByResourceGroupPager // method. @@ -313,7 +313,7 @@ func (client *RacksClient) listByResourceGroupCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -330,7 +330,7 @@ func (client *RacksClient) listByResourceGroupHandleResponse(resp *http.Response // NewListBySubscriptionPager - Get a list of racks in the provided subscription. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - options - RacksClientListBySubscriptionOptions contains the optional parameters for the RacksClient.NewListBySubscriptionPager // method. func (client *RacksClient) NewListBySubscriptionPager(options *RacksClientListBySubscriptionOptions) *runtime.Pager[RacksClientListBySubscriptionResponse] { @@ -368,7 +368,7 @@ func (client *RacksClient) listBySubscriptionCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -387,7 +387,7 @@ func (client *RacksClient) listBySubscriptionHandleResponse(resp *http.Response) // can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - rackName - The name of the rack. // - rackUpdateParameters - The request body. @@ -414,7 +414,7 @@ func (client *RacksClient) BeginUpdate(ctx context.Context, resourceGroupName st // can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *RacksClient) update(ctx context.Context, resourceGroupName string, rackName string, rackUpdateParameters RackPatchParameters, options *RacksClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "RacksClient.BeginUpdate" @@ -456,7 +456,7 @@ func (client *RacksClient) updateCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, rackUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client_example_test.go index 742fba454513..7942fab805f8 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/racks_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_ListBySubscription.json func ExampleRacksClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -71,14 +71,14 @@ func ExampleRacksClient_NewListBySubscriptionPager() { // ProvisioningState: to.Ptr(armnetworkcloud.RackProvisioningStateSucceeded), // RackLocation: to.Ptr("Rack 28"), // RackSerialNumber: to.Ptr("RACK_SERIAL_NUMBER"), - // RackSKUID: to.Ptr("RACK-TYPE-1"), + // RackSKUID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName"), // }, // }}, // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_ListByResourceGroup.json func ExampleRacksClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -131,14 +131,14 @@ func ExampleRacksClient_NewListByResourceGroupPager() { // ProvisioningState: to.Ptr(armnetworkcloud.RackProvisioningStateSucceeded), // RackLocation: to.Ptr("Rack 28"), // RackSerialNumber: to.Ptr("RACK_SERIAL_NUMBER"), - // RackSKUID: to.Ptr("RACK-TYPE-1"), + // RackSKUID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName"), // }, // }}, // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Get.json func ExampleRacksClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -185,12 +185,12 @@ func ExampleRacksClient_Get() { // ProvisioningState: to.Ptr(armnetworkcloud.RackProvisioningStateSucceeded), // RackLocation: to.Ptr("Rack 28"), // RackSerialNumber: to.Ptr("RACK_SERIAL_NUMBER"), - // RackSKUID: to.Ptr("RACK-TYPE-1"), + // RackSKUID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName"), // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Create.json func ExampleRacksClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -215,7 +215,7 @@ func ExampleRacksClient_BeginCreateOrUpdate() { AvailabilityZone: to.Ptr("1"), RackLocation: to.Ptr("Rack 28"), RackSerialNumber: to.Ptr("RACK_SERIAL_NUMBER"), - RackSKUID: to.Ptr("RACK-TYPE-1"), + RackSKUID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName"), }, }, nil) if err != nil { @@ -257,12 +257,12 @@ func ExampleRacksClient_BeginCreateOrUpdate() { // ProvisioningState: to.Ptr(armnetworkcloud.RackProvisioningStateSucceeded), // RackLocation: to.Ptr("Rack 28"), // RackSerialNumber: to.Ptr("RACK_SERIAL_NUMBER"), - // RackSKUID: to.Ptr("RACK-TYPE-1"), + // RackSKUID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName"), // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Delete.json func ExampleRacksClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -283,7 +283,7 @@ func ExampleRacksClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Racks_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Racks_Patch.json func ExampleRacksClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -343,7 +343,7 @@ func ExampleRacksClient_BeginUpdate() { // ProvisioningState: to.Ptr(armnetworkcloud.RackProvisioningStateSucceeded), // RackLocation: to.Ptr("Rack 28"), // RackSerialNumber: to.Ptr("RACK_SERIAL_NUMBER"), - // RackSKUID: to.Ptr("RACK-TYPE-1"), + // RackSKUID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/rackSkus/rackSkuName"), // }, // } } diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client.go index 274e0f877aca..c396b8282b92 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client.go @@ -46,7 +46,7 @@ func NewRackSKUsClient(subscriptionID string, credential azcore.TokenCredential, // Get - Get the properties of the provided rack SKU. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - rackSKUName - The name of the rack SKU. // - options - RackSKUsClientGetOptions contains the optional parameters for the RackSKUsClient.Get method. func (client *RackSKUsClient) Get(ctx context.Context, rackSKUName string, options *RackSKUsClientGetOptions) (RackSKUsClientGetResponse, error) { @@ -87,7 +87,7 @@ func (client *RackSKUsClient) getCreateRequest(ctx context.Context, rackSKUName return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -104,7 +104,7 @@ func (client *RackSKUsClient) getHandleResponse(resp *http.Response) (RackSKUsCl // NewListBySubscriptionPager - Get a list of rack SKUs in the provided subscription. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - options - RackSKUsClientListBySubscriptionOptions contains the optional parameters for the RackSKUsClient.NewListBySubscriptionPager // method. func (client *RackSKUsClient) NewListBySubscriptionPager(options *RackSKUsClientListBySubscriptionOptions) *runtime.Pager[RackSKUsClientListBySubscriptionResponse] { @@ -142,7 +142,7 @@ func (client *RackSKUsClient) listBySubscriptionCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client_example_test.go index fbf7d32ef2ca..ac81a1ac1cf1 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/rackskus_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/RackSkus_ListBySubscription.json func ExampleRackSKUsClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -134,7 +134,7 @@ func ExampleRackSKUsClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/RackSkus_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/RackSkus_Get.json func ExampleRackSKUsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/response_types.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/responses.go similarity index 90% rename from sdk/resourcemanager/networkcloud/armnetworkcloud/response_types.go rename to sdk/resourcemanager/networkcloud/armnetworkcloud/responses.go index 9e69971b188e..eea5ad9bf50b 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/response_types.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/responses.go @@ -16,7 +16,8 @@ type AgentPoolsClientCreateOrUpdateResponse struct { // AgentPoolsClientDeleteResponse contains the response from method AgentPoolsClient.BeginDelete. type AgentPoolsClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // AgentPoolsClientGetResponse contains the response from method AgentPoolsClient.Get. @@ -45,7 +46,8 @@ type BareMetalMachineKeySetsClientCreateOrUpdateResponse struct { // BareMetalMachineKeySetsClientDeleteResponse contains the response from method BareMetalMachineKeySetsClient.BeginDelete. type BareMetalMachineKeySetsClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // BareMetalMachineKeySetsClientGetResponse contains the response from method BareMetalMachineKeySetsClient.Get. @@ -80,7 +82,8 @@ type BareMetalMachinesClientCreateOrUpdateResponse struct { // BareMetalMachinesClientDeleteResponse contains the response from method BareMetalMachinesClient.BeginDelete. type BareMetalMachinesClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // BareMetalMachinesClientGetResponse contains the response from method BareMetalMachinesClient.Get. @@ -169,7 +172,8 @@ type BmcKeySetsClientCreateOrUpdateResponse struct { // BmcKeySetsClientDeleteResponse contains the response from method BmcKeySetsClient.BeginDelete. type BmcKeySetsClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // BmcKeySetsClientGetResponse contains the response from method BmcKeySetsClient.Get. @@ -201,7 +205,8 @@ type CloudServicesNetworksClientCreateOrUpdateResponse struct { // CloudServicesNetworksClientDeleteResponse contains the response from method CloudServicesNetworksClient.BeginDelete. type CloudServicesNetworksClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // CloudServicesNetworksClientGetResponse contains the response from method CloudServicesNetworksClient.Get. @@ -242,7 +247,8 @@ type ClusterManagersClientCreateOrUpdateResponse struct { // ClusterManagersClientDeleteResponse contains the response from method ClusterManagersClient.BeginDelete. type ClusterManagersClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // ClusterManagersClientGetResponse contains the response from method ClusterManagersClient.Get. @@ -269,6 +275,12 @@ type ClusterManagersClientUpdateResponse struct { ClusterManager } +// ClustersClientContinueUpdateVersionResponse contains the response from method ClustersClient.BeginContinueUpdateVersion. +type ClustersClientContinueUpdateVersionResponse struct { + // The current status of an async operation. + OperationStatusResult +} + // ClustersClientCreateOrUpdateResponse contains the response from method ClustersClient.BeginCreateOrUpdate. type ClustersClientCreateOrUpdateResponse struct { // Cluster represents the on-premises Network Cloud cluster. @@ -277,7 +289,8 @@ type ClustersClientCreateOrUpdateResponse struct { // ClustersClientDeleteResponse contains the response from method ClustersClient.BeginDelete. type ClustersClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // ClustersClientDeployResponse contains the response from method ClustersClient.BeginDeploy. @@ -304,6 +317,12 @@ type ClustersClientListBySubscriptionResponse struct { ClusterList } +// ClustersClientScanRuntimeResponse contains the response from method ClustersClient.BeginScanRuntime. +type ClustersClientScanRuntimeResponse struct { + // The current status of an async operation. + OperationStatusResult +} + // ClustersClientUpdateResponse contains the response from method ClustersClient.BeginUpdate. type ClustersClientUpdateResponse struct { // Cluster represents the on-premises Network Cloud cluster. @@ -324,7 +343,8 @@ type ConsolesClientCreateOrUpdateResponse struct { // ConsolesClientDeleteResponse contains the response from method ConsolesClient.BeginDelete. type ConsolesClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // ConsolesClientGetResponse contains the response from method ConsolesClient.Get. @@ -345,6 +365,36 @@ type ConsolesClientUpdateResponse struct { Console } +// KubernetesClusterFeaturesClientCreateOrUpdateResponse contains the response from method KubernetesClusterFeaturesClient.BeginCreateOrUpdate. +type KubernetesClusterFeaturesClientCreateOrUpdateResponse struct { + // KubernetesClusterFeature represents the feature of a Kubernetes cluster. + KubernetesClusterFeature +} + +// KubernetesClusterFeaturesClientDeleteResponse contains the response from method KubernetesClusterFeaturesClient.BeginDelete. +type KubernetesClusterFeaturesClientDeleteResponse struct { + // The current status of an async operation. + OperationStatusResult +} + +// KubernetesClusterFeaturesClientGetResponse contains the response from method KubernetesClusterFeaturesClient.Get. +type KubernetesClusterFeaturesClientGetResponse struct { + // KubernetesClusterFeature represents the feature of a Kubernetes cluster. + KubernetesClusterFeature +} + +// KubernetesClusterFeaturesClientListByKubernetesClusterResponse contains the response from method KubernetesClusterFeaturesClient.NewListByKubernetesClusterPager. +type KubernetesClusterFeaturesClientListByKubernetesClusterResponse struct { + // KubernetesClusterFeatureList represents the list of Kubernetes cluster feature resources. + KubernetesClusterFeatureList +} + +// KubernetesClusterFeaturesClientUpdateResponse contains the response from method KubernetesClusterFeaturesClient.BeginUpdate. +type KubernetesClusterFeaturesClientUpdateResponse struct { + // KubernetesClusterFeature represents the feature of a Kubernetes cluster. + KubernetesClusterFeature +} + // KubernetesClustersClientCreateOrUpdateResponse contains the response from method KubernetesClustersClient.BeginCreateOrUpdate. type KubernetesClustersClientCreateOrUpdateResponse struct { // KubernetesCluster represents the Kubernetes cluster hosted on Network Cloud. @@ -353,7 +403,8 @@ type KubernetesClustersClientCreateOrUpdateResponse struct { // KubernetesClustersClientDeleteResponse contains the response from method KubernetesClustersClient.BeginDelete. type KubernetesClustersClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // KubernetesClustersClientGetResponse contains the response from method KubernetesClustersClient.Get. @@ -394,7 +445,8 @@ type L2NetworksClientCreateOrUpdateResponse struct { // L2NetworksClientDeleteResponse contains the response from method L2NetworksClient.BeginDelete. type L2NetworksClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // L2NetworksClientGetResponse contains the response from method L2NetworksClient.Get. @@ -429,7 +481,8 @@ type L3NetworksClientCreateOrUpdateResponse struct { // L3NetworksClientDeleteResponse contains the response from method L3NetworksClient.BeginDelete. type L3NetworksClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // L3NetworksClientGetResponse contains the response from method L3NetworksClient.Get. @@ -464,7 +517,8 @@ type MetricsConfigurationsClientCreateOrUpdateResponse struct { // MetricsConfigurationsClientDeleteResponse contains the response from method MetricsConfigurationsClient.BeginDelete. type MetricsConfigurationsClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // MetricsConfigurationsClientGetResponse contains the response from method MetricsConfigurationsClient.Get. @@ -511,7 +565,8 @@ type RacksClientCreateOrUpdateResponse struct { // RacksClientDeleteResponse contains the response from method RacksClient.BeginDelete. type RacksClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // RacksClientGetResponse contains the response from method RacksClient.Get. @@ -546,7 +601,8 @@ type StorageAppliancesClientCreateOrUpdateResponse struct { // StorageAppliancesClientDeleteResponse contains the response from method StorageAppliancesClient.BeginDelete. type StorageAppliancesClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // StorageAppliancesClientDisableRemoteVendorManagementResponse contains the response from method StorageAppliancesClient.BeginDisableRemoteVendorManagement. @@ -593,7 +649,8 @@ type TrunkedNetworksClientCreateOrUpdateResponse struct { // TrunkedNetworksClientDeleteResponse contains the response from method TrunkedNetworksClient.BeginDelete. type TrunkedNetworksClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // TrunkedNetworksClientGetResponse contains the response from method TrunkedNetworksClient.Get. @@ -628,7 +685,8 @@ type VirtualMachinesClientCreateOrUpdateResponse struct { // VirtualMachinesClientDeleteResponse contains the response from method VirtualMachinesClient.BeginDelete. type VirtualMachinesClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // VirtualMachinesClientGetResponse contains the response from method VirtualMachinesClient.Get. @@ -687,7 +745,8 @@ type VolumesClientCreateOrUpdateResponse struct { // VolumesClientDeleteResponse contains the response from method VolumesClient.BeginDelete. type VolumesClientDeleteResponse struct { - // placeholder for future response values + // The current status of an async operation. + OperationStatusResult } // VolumesClientGetResponse contains the response from method VolumesClient.Get. diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client.go index c31172790d7f..aa6af8c801fb 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client.go @@ -47,7 +47,7 @@ func NewStorageAppliancesClient(subscriptionID string, credential azcore.TokenCr // requests will be rejected as the life cycle of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageApplianceName - The name of the storage appliance. // - storageApplianceParameters - The request body. @@ -75,7 +75,7 @@ func (client *StorageAppliancesClient) BeginCreateOrUpdate(ctx context.Context, // will be rejected as the life cycle of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *StorageAppliancesClient) createOrUpdate(ctx context.Context, resourceGroupName string, storageApplianceName string, storageApplianceParameters StorageAppliance, options *StorageAppliancesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "StorageAppliancesClient.BeginCreateOrUpdate" @@ -117,7 +117,7 @@ func (client *StorageAppliancesClient) createOrUpdateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, storageApplianceParameters); err != nil { @@ -130,7 +130,7 @@ func (client *StorageAppliancesClient) createOrUpdateCreateRequest(ctx context.C // of this resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageApplianceName - The name of the storage appliance. // - options - StorageAppliancesClientBeginDeleteOptions contains the optional parameters for the StorageAppliancesClient.BeginDelete @@ -157,7 +157,7 @@ func (client *StorageAppliancesClient) BeginDelete(ctx context.Context, resource // resource is managed by the system. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *StorageAppliancesClient) deleteOperation(ctx context.Context, resourceGroupName string, storageApplianceName string, options *StorageAppliancesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "StorageAppliancesClient.BeginDelete" @@ -199,7 +199,7 @@ func (client *StorageAppliancesClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -208,7 +208,7 @@ func (client *StorageAppliancesClient) deleteCreateRequest(ctx context.Context, // BeginDisableRemoteVendorManagement - Disable remote vendor management of the provided storage appliance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageApplianceName - The name of the storage appliance. // - options - StorageAppliancesClientBeginDisableRemoteVendorManagementOptions contains the optional parameters for the StorageAppliancesClient.BeginDisableRemoteVendorManagement @@ -234,7 +234,7 @@ func (client *StorageAppliancesClient) BeginDisableRemoteVendorManagement(ctx co // DisableRemoteVendorManagement - Disable remote vendor management of the provided storage appliance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *StorageAppliancesClient) disableRemoteVendorManagement(ctx context.Context, resourceGroupName string, storageApplianceName string, options *StorageAppliancesClientBeginDisableRemoteVendorManagementOptions) (*http.Response, error) { var err error const operationName = "StorageAppliancesClient.BeginDisableRemoteVendorManagement" @@ -249,7 +249,7 @@ func (client *StorageAppliancesClient) disableRemoteVendorManagement(ctx context if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -276,7 +276,7 @@ func (client *StorageAppliancesClient) disableRemoteVendorManagementCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -285,7 +285,7 @@ func (client *StorageAppliancesClient) disableRemoteVendorManagementCreateReques // BeginEnableRemoteVendorManagement - Enable remote vendor management of the provided storage appliance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageApplianceName - The name of the storage appliance. // - options - StorageAppliancesClientBeginEnableRemoteVendorManagementOptions contains the optional parameters for the StorageAppliancesClient.BeginEnableRemoteVendorManagement @@ -311,7 +311,7 @@ func (client *StorageAppliancesClient) BeginEnableRemoteVendorManagement(ctx con // EnableRemoteVendorManagement - Enable remote vendor management of the provided storage appliance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *StorageAppliancesClient) enableRemoteVendorManagement(ctx context.Context, resourceGroupName string, storageApplianceName string, options *StorageAppliancesClientBeginEnableRemoteVendorManagementOptions) (*http.Response, error) { var err error const operationName = "StorageAppliancesClient.BeginEnableRemoteVendorManagement" @@ -326,7 +326,7 @@ func (client *StorageAppliancesClient) enableRemoteVendorManagement(ctx context. if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -353,7 +353,7 @@ func (client *StorageAppliancesClient) enableRemoteVendorManagementCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.StorageApplianceEnableRemoteVendorManagementParameters != nil { @@ -368,7 +368,7 @@ func (client *StorageAppliancesClient) enableRemoteVendorManagementCreateRequest // Get - Get properties of the provided storage appliance. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageApplianceName - The name of the storage appliance. // - options - StorageAppliancesClientGetOptions contains the optional parameters for the StorageAppliancesClient.Get method. @@ -414,7 +414,7 @@ func (client *StorageAppliancesClient) getCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -431,7 +431,7 @@ func (client *StorageAppliancesClient) getHandleResponse(resp *http.Response) (S // NewListByResourceGroupPager - Get a list of storage appliances in the provided resource group. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - StorageAppliancesClientListByResourceGroupOptions contains the optional parameters for the StorageAppliancesClient.NewListByResourceGroupPager // method. @@ -474,7 +474,7 @@ func (client *StorageAppliancesClient) listByResourceGroupCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -491,7 +491,7 @@ func (client *StorageAppliancesClient) listByResourceGroupHandleResponse(resp *h // NewListBySubscriptionPager - Get a list of storage appliances in the provided subscription. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - options - StorageAppliancesClientListBySubscriptionOptions contains the optional parameters for the StorageAppliancesClient.NewListBySubscriptionPager // method. func (client *StorageAppliancesClient) NewListBySubscriptionPager(options *StorageAppliancesClientListBySubscriptionOptions) *runtime.Pager[StorageAppliancesClientListBySubscriptionResponse] { @@ -529,7 +529,7 @@ func (client *StorageAppliancesClient) listBySubscriptionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -548,7 +548,7 @@ func (client *StorageAppliancesClient) listBySubscriptionHandleResponse(resp *ht // Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageApplianceName - The name of the storage appliance. // - storageApplianceUpdateParameters - The request body. @@ -576,7 +576,7 @@ func (client *StorageAppliancesClient) BeginUpdate(ctx context.Context, resource // and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *StorageAppliancesClient) update(ctx context.Context, resourceGroupName string, storageApplianceName string, storageApplianceUpdateParameters StorageAppliancePatchParameters, options *StorageAppliancesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "StorageAppliancesClient.BeginUpdate" @@ -618,7 +618,7 @@ func (client *StorageAppliancesClient) updateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, storageApplianceUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client_example_test.go index 86e9f2136712..cc28ef751851 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/storageappliances_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_ListBySubscription.json func ExampleStorageAppliancesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -73,20 +73,35 @@ func ExampleStorageAppliancesClient_NewListBySubscriptionPager() { // DetailedStatus: to.Ptr(armnetworkcloud.StorageApplianceDetailedStatusAvailable), // DetailedStatusMessage: to.Ptr("Storage appliance is up and running"), // ManagementIPv4Address: to.Ptr("192.0.2.2"), + // Manufacturer: to.Ptr("Contoso Storage"), + // Model: to.Ptr("ArrayStore-Flash70"), // ProvisioningState: to.Ptr(armnetworkcloud.StorageApplianceProvisioningStateSucceeded), // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), // RackSlot: to.Ptr[int64](1), // RemoteVendorManagementFeature: to.Ptr(armnetworkcloud.RemoteVendorManagementFeatureSupported), // RemoteVendorManagementStatus: to.Ptr(armnetworkcloud.RemoteVendorManagementStatusEnabled), + // SecretRotationStatus: []*armnetworkcloud.SecretRotationStatus{ + // { + // ExpirePeriodDays: to.Ptr[int64](90), + // LastRotationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // RotationPeriodDays: to.Ptr[int64](60), + // SecretArchiveReference: &armnetworkcloud.SecretArchiveReference{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // SecretName: to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff-resource-group-cluster-1679871-storage-appliance-credential-manager-ffffffff"), + // SecretVersion: to.Ptr("02ab6c1f9c0f4982b0632b0d5d74a33b"), + // }, + // SecretType: to.Ptr("Storage Appliance User"), + // }}, // SerialNumber: to.Ptr("BM1219XXX"), // StorageApplianceSKUID: to.Ptr("684E-3B16-399E"), + // Version: to.Ptr("9.9.9"), // }, // }}, // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_ListByResourceGroup.json func ExampleStorageAppliancesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -141,20 +156,35 @@ func ExampleStorageAppliancesClient_NewListByResourceGroupPager() { // DetailedStatus: to.Ptr(armnetworkcloud.StorageApplianceDetailedStatusAvailable), // DetailedStatusMessage: to.Ptr("Storage appliance is up and running"), // ManagementIPv4Address: to.Ptr("192.0.2.2"), + // Manufacturer: to.Ptr("Contoso Storage"), + // Model: to.Ptr("ArrayStore-Flash70"), // ProvisioningState: to.Ptr(armnetworkcloud.StorageApplianceProvisioningStateSucceeded), // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), // RackSlot: to.Ptr[int64](1), // RemoteVendorManagementFeature: to.Ptr(armnetworkcloud.RemoteVendorManagementFeatureSupported), // RemoteVendorManagementStatus: to.Ptr(armnetworkcloud.RemoteVendorManagementStatusEnabled), + // SecretRotationStatus: []*armnetworkcloud.SecretRotationStatus{ + // { + // ExpirePeriodDays: to.Ptr[int64](90), + // LastRotationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // RotationPeriodDays: to.Ptr[int64](60), + // SecretArchiveReference: &armnetworkcloud.SecretArchiveReference{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // SecretName: to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff-resource-group-cluster-1679871-storage-appliance-credential-manager-ffffffff"), + // SecretVersion: to.Ptr("02ab6c1f9c0f4982b0632b0d5d74a33b"), + // }, + // SecretType: to.Ptr("Storage Appliance User"), + // }}, // SerialNumber: to.Ptr("BM1219XXX"), // StorageApplianceSKUID: to.Ptr("684E-3B16-399E"), + // Version: to.Ptr("9.9.9"), // }, // }}, // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Get.json func ExampleStorageAppliancesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -203,18 +233,33 @@ func ExampleStorageAppliancesClient_Get() { // DetailedStatus: to.Ptr(armnetworkcloud.StorageApplianceDetailedStatusAvailable), // DetailedStatusMessage: to.Ptr("Storage appliance is up and running"), // ManagementIPv4Address: to.Ptr("192.0.2.2"), + // Manufacturer: to.Ptr("Contoso Storage"), + // Model: to.Ptr("ArrayStore-Flash70"), // ProvisioningState: to.Ptr(armnetworkcloud.StorageApplianceProvisioningStateSucceeded), // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), // RackSlot: to.Ptr[int64](1), // RemoteVendorManagementFeature: to.Ptr(armnetworkcloud.RemoteVendorManagementFeatureSupported), // RemoteVendorManagementStatus: to.Ptr(armnetworkcloud.RemoteVendorManagementStatusEnabled), + // SecretRotationStatus: []*armnetworkcloud.SecretRotationStatus{ + // { + // ExpirePeriodDays: to.Ptr[int64](90), + // LastRotationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // RotationPeriodDays: to.Ptr[int64](60), + // SecretArchiveReference: &armnetworkcloud.SecretArchiveReference{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // SecretName: to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff-resource-group-cluster-1679871-storage-appliance-credential-manager-ffffffff"), + // SecretVersion: to.Ptr("02ab6c1f9c0f4982b0632b0d5d74a33b"), + // }, + // SecretType: to.Ptr("Storage Appliance User"), + // }}, // SerialNumber: to.Ptr("BM1219XXX"), // StorageApplianceSKUID: to.Ptr("684E-3B16-399E"), + // Version: to.Ptr("9.9.9"), // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Create.json func ExampleStorageAppliancesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -287,18 +332,33 @@ func ExampleStorageAppliancesClient_BeginCreateOrUpdate() { // DetailedStatus: to.Ptr(armnetworkcloud.StorageApplianceDetailedStatusAvailable), // DetailedStatusMessage: to.Ptr("Storage appliance is up and running"), // ManagementIPv4Address: to.Ptr("192.0.2.2"), + // Manufacturer: to.Ptr("Contoso Storage"), + // Model: to.Ptr("ArrayStore-Flash70"), // ProvisioningState: to.Ptr(armnetworkcloud.StorageApplianceProvisioningStateSucceeded), // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), // RackSlot: to.Ptr[int64](1), // RemoteVendorManagementFeature: to.Ptr(armnetworkcloud.RemoteVendorManagementFeatureSupported), // RemoteVendorManagementStatus: to.Ptr(armnetworkcloud.RemoteVendorManagementStatusEnabled), + // SecretRotationStatus: []*armnetworkcloud.SecretRotationStatus{ + // { + // ExpirePeriodDays: to.Ptr[int64](90), + // LastRotationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // RotationPeriodDays: to.Ptr[int64](60), + // SecretArchiveReference: &armnetworkcloud.SecretArchiveReference{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // SecretName: to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff-resource-group-cluster-1679871-storage-appliance-credential-manager-ffffffff"), + // SecretVersion: to.Ptr("02ab6c1f9c0f4982b0632b0d5d74a33b"), + // }, + // SecretType: to.Ptr("Storage Appliance User"), + // }}, // SerialNumber: to.Ptr("BM1219XXX"), // StorageApplianceSKUID: to.Ptr("684E-3B16-399E"), + // Version: to.Ptr("9.9.9"), // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Delete.json func ExampleStorageAppliancesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -319,7 +379,7 @@ func ExampleStorageAppliancesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_Patch.json func ExampleStorageAppliancesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -380,18 +440,33 @@ func ExampleStorageAppliancesClient_BeginUpdate() { // DetailedStatus: to.Ptr(armnetworkcloud.StorageApplianceDetailedStatusAvailable), // DetailedStatusMessage: to.Ptr("Storage appliance is up and running"), // ManagementIPv4Address: to.Ptr("192.0.2.2"), + // Manufacturer: to.Ptr("Contoso Storage"), + // Model: to.Ptr("ArrayStore-Flash70"), // ProvisioningState: to.Ptr(armnetworkcloud.StorageApplianceProvisioningStateSucceeded), // RackID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/racks/rackName"), // RackSlot: to.Ptr[int64](1), // RemoteVendorManagementFeature: to.Ptr(armnetworkcloud.RemoteVendorManagementFeatureSupported), // RemoteVendorManagementStatus: to.Ptr(armnetworkcloud.RemoteVendorManagementStatusEnabled), + // SecretRotationStatus: []*armnetworkcloud.SecretRotationStatus{ + // { + // ExpirePeriodDays: to.Ptr[int64](90), + // LastRotationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-09-30T13:27:23.103Z"); return t}()), + // RotationPeriodDays: to.Ptr[int64](60), + // SecretArchiveReference: &armnetworkcloud.SecretArchiveReference{ + // KeyVaultID: to.Ptr("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName"), + // SecretName: to.Ptr("ffffffff-ffff-ffff-ffff-ffffffffffff-resource-group-cluster-1679871-storage-appliance-credential-manager-ffffffff"), + // SecretVersion: to.Ptr("02ab6c1f9c0f4982b0632b0d5d74a33b"), + // }, + // SecretType: to.Ptr("Storage Appliance User"), + // }}, // SerialNumber: to.Ptr("BM1219XXX"), // StorageApplianceSKUID: to.Ptr("684E-3B16-399E"), + // Version: to.Ptr("9.9.9"), // }, // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_DisableRemoteVendorManagement.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_DisableRemoteVendorManagement.json func ExampleStorageAppliancesClient_BeginDisableRemoteVendorManagement() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -412,7 +487,7 @@ func ExampleStorageAppliancesClient_BeginDisableRemoteVendorManagement() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/StorageAppliances_EnableRemoteVendorManagement.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/StorageAppliances_EnableRemoteVendorManagement.json func ExampleStorageAppliancesClient_BeginEnableRemoteVendorManagement() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/time_rfc3339.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/time_rfc3339.go index 1bbf18f2b148..5f4752fb9a01 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/time_rfc3339.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/time_rfc3339.go @@ -19,12 +19,16 @@ import ( ) // Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. -var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`) +var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`) const ( - utcDateTimeJSON = `"2006-01-02T15:04:05.999999999"` - utcDateTime = "2006-01-02T15:04:05.999999999" - dateTimeJSON = `"` + time.RFC3339Nano + `"` + utcDateTime = "2006-01-02T15:04:05.999999999" + utcDateTimeJSON = `"` + utcDateTime + `"` + utcDateTimeNoT = "2006-01-02 15:04:05.999999999" + utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"` + dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00` + dateTimeJSON = `"` + time.RFC3339Nano + `"` + dateTimeJSONNoT = `"` + dateTimeNoT + `"` ) type dateTimeRFC3339 time.Time @@ -40,17 +44,33 @@ func (t dateTimeRFC3339) MarshalText() ([]byte, error) { } func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error { - layout := utcDateTimeJSON - if tzOffsetRegex.Match(data) { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { layout = dateTimeJSON + } else if tzOffset { + layout = dateTimeJSONNoT + } else if hasT { + layout = utcDateTimeJSON + } else { + layout = utcDateTimeJSONNoT } return t.Parse(layout, string(data)) } func (t *dateTimeRFC3339) UnmarshalText(data []byte) error { - layout := utcDateTime - if tzOffsetRegex.Match(data) { + tzOffset := tzOffsetRegex.Match(data) + hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t") + var layout string + if tzOffset && hasT { layout = time.RFC3339Nano + } else if tzOffset { + layout = dateTimeNoT + } else if hasT { + layout = utcDateTime + } else { + layout = utcDateTimeNoT } return t.Parse(layout, string(data)) } @@ -61,6 +81,10 @@ func (t *dateTimeRFC3339) Parse(layout, value string) error { return err } +func (t dateTimeRFC3339) String() string { + return time.Time(t).Format(time.RFC3339Nano) +} + func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return @@ -74,7 +98,7 @@ func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) { } func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { - if data == nil || strings.EqualFold(string(data), "null") { + if data == nil || string(data) == "null" { return nil } var aux dateTimeRFC3339 diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client.go index ef93818b5b57..4b79ef05e2a5 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client.go @@ -46,7 +46,7 @@ func NewTrunkedNetworksClient(subscriptionID string, credential azcore.TokenCred // BeginCreateOrUpdate - Create a new trunked network or update the properties of the existing trunked network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - trunkedNetworkName - The name of the trunked network. // - trunkedNetworkParameters - The request body. @@ -73,7 +73,7 @@ func (client *TrunkedNetworksClient) BeginCreateOrUpdate(ctx context.Context, re // CreateOrUpdate - Create a new trunked network or update the properties of the existing trunked network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *TrunkedNetworksClient) createOrUpdate(ctx context.Context, resourceGroupName string, trunkedNetworkName string, trunkedNetworkParameters TrunkedNetwork, options *TrunkedNetworksClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "TrunkedNetworksClient.BeginCreateOrUpdate" @@ -115,7 +115,7 @@ func (client *TrunkedNetworksClient) createOrUpdateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, trunkedNetworkParameters); err != nil { @@ -127,7 +127,7 @@ func (client *TrunkedNetworksClient) createOrUpdateCreateRequest(ctx context.Con // BeginDelete - Delete the provided trunked network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - trunkedNetworkName - The name of the trunked network. // - options - TrunkedNetworksClientBeginDeleteOptions contains the optional parameters for the TrunkedNetworksClient.BeginDelete @@ -153,7 +153,7 @@ func (client *TrunkedNetworksClient) BeginDelete(ctx context.Context, resourceGr // Delete - Delete the provided trunked network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *TrunkedNetworksClient) deleteOperation(ctx context.Context, resourceGroupName string, trunkedNetworkName string, options *TrunkedNetworksClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "TrunkedNetworksClient.BeginDelete" @@ -195,7 +195,7 @@ func (client *TrunkedNetworksClient) deleteCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -204,7 +204,7 @@ func (client *TrunkedNetworksClient) deleteCreateRequest(ctx context.Context, re // Get - Get properties of the provided trunked network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - trunkedNetworkName - The name of the trunked network. // - options - TrunkedNetworksClientGetOptions contains the optional parameters for the TrunkedNetworksClient.Get method. @@ -250,7 +250,7 @@ func (client *TrunkedNetworksClient) getCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -267,7 +267,7 @@ func (client *TrunkedNetworksClient) getHandleResponse(resp *http.Response) (Tru // NewListByResourceGroupPager - Get a list of trunked networks in the provided resource group. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - TrunkedNetworksClientListByResourceGroupOptions contains the optional parameters for the TrunkedNetworksClient.NewListByResourceGroupPager // method. @@ -310,7 +310,7 @@ func (client *TrunkedNetworksClient) listByResourceGroupCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -327,7 +327,7 @@ func (client *TrunkedNetworksClient) listByResourceGroupHandleResponse(resp *htt // NewListBySubscriptionPager - Get a list of trunked networks in the provided subscription. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - options - TrunkedNetworksClientListBySubscriptionOptions contains the optional parameters for the TrunkedNetworksClient.NewListBySubscriptionPager // method. func (client *TrunkedNetworksClient) NewListBySubscriptionPager(options *TrunkedNetworksClientListBySubscriptionOptions) *runtime.Pager[TrunkedNetworksClientListBySubscriptionResponse] { @@ -365,7 +365,7 @@ func (client *TrunkedNetworksClient) listBySubscriptionCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -383,7 +383,7 @@ func (client *TrunkedNetworksClient) listBySubscriptionHandleResponse(resp *http // Update - Update tags associated with the provided trunked network. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - trunkedNetworkName - The name of the trunked network. // - trunkedNetworkUpdateParameters - The request body. @@ -430,7 +430,7 @@ func (client *TrunkedNetworksClient) updateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, trunkedNetworkUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client_example_test.go index 797b4b9ea026..3ec64501fc22 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/trunkednetworks_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_ListBySubscription.json func ExampleTrunkedNetworksClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -83,7 +83,7 @@ func ExampleTrunkedNetworksClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_ListByResourceGroup.json func ExampleTrunkedNetworksClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -148,7 +148,7 @@ func ExampleTrunkedNetworksClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Get.json func ExampleTrunkedNetworksClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -205,7 +205,7 @@ func ExampleTrunkedNetworksClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Create.json func ExampleTrunkedNetworksClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -285,7 +285,7 @@ func ExampleTrunkedNetworksClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Delete.json func ExampleTrunkedNetworksClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -306,7 +306,7 @@ func ExampleTrunkedNetworksClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/TrunkedNetworks_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/TrunkedNetworks_Patch.json func ExampleTrunkedNetworksClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client.go index 195b3013d1ac..93b1f8d007a2 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client.go @@ -46,7 +46,7 @@ func NewVirtualMachinesClient(subscriptionID string, credential azcore.TokenCred // BeginCreateOrUpdate - Create a new virtual machine or update the properties of the existing virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - virtualMachineParameters - The request body. @@ -73,7 +73,7 @@ func (client *VirtualMachinesClient) BeginCreateOrUpdate(ctx context.Context, re // CreateOrUpdate - Create a new virtual machine or update the properties of the existing virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *VirtualMachinesClient) createOrUpdate(ctx context.Context, resourceGroupName string, virtualMachineName string, virtualMachineParameters VirtualMachine, options *VirtualMachinesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginCreateOrUpdate" @@ -115,7 +115,7 @@ func (client *VirtualMachinesClient) createOrUpdateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, virtualMachineParameters); err != nil { @@ -127,7 +127,7 @@ func (client *VirtualMachinesClient) createOrUpdateCreateRequest(ctx context.Con // BeginDelete - Delete the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - VirtualMachinesClientBeginDeleteOptions contains the optional parameters for the VirtualMachinesClient.BeginDelete @@ -153,7 +153,7 @@ func (client *VirtualMachinesClient) BeginDelete(ctx context.Context, resourceGr // Delete - Delete the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *VirtualMachinesClient) deleteOperation(ctx context.Context, resourceGroupName string, virtualMachineName string, options *VirtualMachinesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginDelete" @@ -195,7 +195,7 @@ func (client *VirtualMachinesClient) deleteCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -204,7 +204,7 @@ func (client *VirtualMachinesClient) deleteCreateRequest(ctx context.Context, re // Get - Get properties of the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - VirtualMachinesClientGetOptions contains the optional parameters for the VirtualMachinesClient.Get method. @@ -250,7 +250,7 @@ func (client *VirtualMachinesClient) getCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -267,7 +267,7 @@ func (client *VirtualMachinesClient) getHandleResponse(resp *http.Response) (Vir // NewListByResourceGroupPager - Get a list of virtual machines in the provided resource group. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - VirtualMachinesClientListByResourceGroupOptions contains the optional parameters for the VirtualMachinesClient.NewListByResourceGroupPager // method. @@ -310,7 +310,7 @@ func (client *VirtualMachinesClient) listByResourceGroupCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -327,7 +327,7 @@ func (client *VirtualMachinesClient) listByResourceGroupHandleResponse(resp *htt // NewListBySubscriptionPager - Get a list of virtual machines in the provided subscription. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - options - VirtualMachinesClientListBySubscriptionOptions contains the optional parameters for the VirtualMachinesClient.NewListBySubscriptionPager // method. func (client *VirtualMachinesClient) NewListBySubscriptionPager(options *VirtualMachinesClientListBySubscriptionOptions) *runtime.Pager[VirtualMachinesClientListBySubscriptionResponse] { @@ -365,7 +365,7 @@ func (client *VirtualMachinesClient) listBySubscriptionCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -383,7 +383,7 @@ func (client *VirtualMachinesClient) listBySubscriptionHandleResponse(resp *http // BeginPowerOff - Power off the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - VirtualMachinesClientBeginPowerOffOptions contains the optional parameters for the VirtualMachinesClient.BeginPowerOff @@ -409,7 +409,7 @@ func (client *VirtualMachinesClient) BeginPowerOff(ctx context.Context, resource // PowerOff - Power off the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *VirtualMachinesClient) powerOff(ctx context.Context, resourceGroupName string, virtualMachineName string, options *VirtualMachinesClientBeginPowerOffOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginPowerOff" @@ -424,7 +424,7 @@ func (client *VirtualMachinesClient) powerOff(ctx context.Context, resourceGroup if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -451,7 +451,7 @@ func (client *VirtualMachinesClient) powerOffCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.VirtualMachinePowerOffParameters != nil { @@ -466,7 +466,7 @@ func (client *VirtualMachinesClient) powerOffCreateRequest(ctx context.Context, // BeginReimage - Reimage the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - VirtualMachinesClientBeginReimageOptions contains the optional parameters for the VirtualMachinesClient.BeginReimage @@ -492,7 +492,7 @@ func (client *VirtualMachinesClient) BeginReimage(ctx context.Context, resourceG // Reimage - Reimage the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *VirtualMachinesClient) reimage(ctx context.Context, resourceGroupName string, virtualMachineName string, options *VirtualMachinesClientBeginReimageOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginReimage" @@ -507,7 +507,7 @@ func (client *VirtualMachinesClient) reimage(ctx context.Context, resourceGroupN if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -534,7 +534,7 @@ func (client *VirtualMachinesClient) reimageCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -543,7 +543,7 @@ func (client *VirtualMachinesClient) reimageCreateRequest(ctx context.Context, r // BeginRestart - Restart the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - VirtualMachinesClientBeginRestartOptions contains the optional parameters for the VirtualMachinesClient.BeginRestart @@ -569,7 +569,7 @@ func (client *VirtualMachinesClient) BeginRestart(ctx context.Context, resourceG // Restart - Restart the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *VirtualMachinesClient) restart(ctx context.Context, resourceGroupName string, virtualMachineName string, options *VirtualMachinesClientBeginRestartOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginRestart" @@ -584,7 +584,7 @@ func (client *VirtualMachinesClient) restart(ctx context.Context, resourceGroupN if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -611,7 +611,7 @@ func (client *VirtualMachinesClient) restartCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -620,7 +620,7 @@ func (client *VirtualMachinesClient) restartCreateRequest(ctx context.Context, r // BeginStart - Start the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - options - VirtualMachinesClientBeginStartOptions contains the optional parameters for the VirtualMachinesClient.BeginStart @@ -646,7 +646,7 @@ func (client *VirtualMachinesClient) BeginStart(ctx context.Context, resourceGro // Start - Start the provided virtual machine. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *VirtualMachinesClient) start(ctx context.Context, resourceGroupName string, virtualMachineName string, options *VirtualMachinesClientBeginStartOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginStart" @@ -661,7 +661,7 @@ func (client *VirtualMachinesClient) start(ctx context.Context, resourceGroupNam if err != nil { return nil, err } - if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + if !runtime.HasStatusCode(httpResp, http.StatusOK, http.StatusAccepted) { err = runtime.NewResponseError(httpResp) return nil, err } @@ -688,7 +688,7 @@ func (client *VirtualMachinesClient) startCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -698,7 +698,7 @@ func (client *VirtualMachinesClient) startCreateRequest(ctx context.Context, res // Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - virtualMachineName - The name of the virtual machine. // - virtualMachineUpdateParameters - The request body. @@ -726,7 +726,7 @@ func (client *VirtualMachinesClient) BeginUpdate(ctx context.Context, resourceGr // Properties and tag updates can be done independently. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *VirtualMachinesClient) update(ctx context.Context, resourceGroupName string, virtualMachineName string, virtualMachineUpdateParameters VirtualMachinePatchParameters, options *VirtualMachinesClientBeginUpdateOptions) (*http.Response, error) { var err error const operationName = "VirtualMachinesClient.BeginUpdate" @@ -768,7 +768,7 @@ func (client *VirtualMachinesClient) updateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, virtualMachineUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client_example_test.go index 8e754680e20d..9967c46be309 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/virtualmachines_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_ListBySubscription.json func ExampleVirtualMachinesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -125,7 +125,7 @@ func ExampleVirtualMachinesClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_ListByResourceGroup.json func ExampleVirtualMachinesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -232,7 +232,7 @@ func ExampleVirtualMachinesClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Get.json func ExampleVirtualMachinesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -331,7 +331,7 @@ func ExampleVirtualMachinesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Create.json func ExampleVirtualMachinesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -492,7 +492,7 @@ func ExampleVirtualMachinesClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Delete.json func ExampleVirtualMachinesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -513,7 +513,7 @@ func ExampleVirtualMachinesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Patch.json func ExampleVirtualMachinesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -628,7 +628,7 @@ func ExampleVirtualMachinesClient_BeginUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_PowerOff.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_PowerOff.json func ExampleVirtualMachinesClient_BeginPowerOff() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -652,7 +652,7 @@ func ExampleVirtualMachinesClient_BeginPowerOff() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Reimage.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Reimage.json func ExampleVirtualMachinesClient_BeginReimage() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -673,7 +673,7 @@ func ExampleVirtualMachinesClient_BeginReimage() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Restart.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Restart.json func ExampleVirtualMachinesClient_BeginRestart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -694,7 +694,7 @@ func ExampleVirtualMachinesClient_BeginRestart() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/VirtualMachines_Start.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/VirtualMachines_Start.json func ExampleVirtualMachinesClient_BeginStart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client.go index 8cff3f75e77b..21b733d06524 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client.go @@ -46,7 +46,7 @@ func NewVolumesClient(subscriptionID string, credential azcore.TokenCredential, // BeginCreateOrUpdate - Create a new volume or update the properties of the existing one. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - volumeName - The name of the volume. // - volumeParameters - The request body. @@ -73,7 +73,7 @@ func (client *VolumesClient) BeginCreateOrUpdate(ctx context.Context, resourceGr // CreateOrUpdate - Create a new volume or update the properties of the existing one. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *VolumesClient) createOrUpdate(ctx context.Context, resourceGroupName string, volumeName string, volumeParameters Volume, options *VolumesClientBeginCreateOrUpdateOptions) (*http.Response, error) { var err error const operationName = "VolumesClient.BeginCreateOrUpdate" @@ -115,7 +115,7 @@ func (client *VolumesClient) createOrUpdateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, volumeParameters); err != nil { @@ -127,7 +127,7 @@ func (client *VolumesClient) createOrUpdateCreateRequest(ctx context.Context, re // BeginDelete - Delete the provided volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - volumeName - The name of the volume. // - options - VolumesClientBeginDeleteOptions contains the optional parameters for the VolumesClient.BeginDelete method. @@ -152,7 +152,7 @@ func (client *VolumesClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Delete the provided volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview func (client *VolumesClient) deleteOperation(ctx context.Context, resourceGroupName string, volumeName string, options *VolumesClientBeginDeleteOptions) (*http.Response, error) { var err error const operationName = "VolumesClient.BeginDelete" @@ -194,7 +194,7 @@ func (client *VolumesClient) deleteCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -203,7 +203,7 @@ func (client *VolumesClient) deleteCreateRequest(ctx context.Context, resourceGr // Get - Get properties of the provided volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - volumeName - The name of the volume. // - options - VolumesClientGetOptions contains the optional parameters for the VolumesClient.Get method. @@ -249,7 +249,7 @@ func (client *VolumesClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -266,7 +266,7 @@ func (client *VolumesClient) getHandleResponse(resp *http.Response) (VolumesClie // NewListByResourceGroupPager - Get a list of volumes in the provided resource group. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - VolumesClientListByResourceGroupOptions contains the optional parameters for the VolumesClient.NewListByResourceGroupPager // method. @@ -309,7 +309,7 @@ func (client *VolumesClient) listByResourceGroupCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -326,7 +326,7 @@ func (client *VolumesClient) listByResourceGroupHandleResponse(resp *http.Respon // NewListBySubscriptionPager - Get a list of volumes in the provided subscription. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - options - VolumesClientListBySubscriptionOptions contains the optional parameters for the VolumesClient.NewListBySubscriptionPager // method. func (client *VolumesClient) NewListBySubscriptionPager(options *VolumesClientListBySubscriptionOptions) *runtime.Pager[VolumesClientListBySubscriptionResponse] { @@ -364,7 +364,7 @@ func (client *VolumesClient) listBySubscriptionCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -382,7 +382,7 @@ func (client *VolumesClient) listBySubscriptionHandleResponse(resp *http.Respons // Update - Update tags associated with the provided volume. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2023-07-01 +// Generated from API version 2024-06-01-preview // - resourceGroupName - The name of the resource group. The name is case insensitive. // - volumeName - The name of the volume. // - volumeUpdateParameters - The request body. @@ -429,7 +429,7 @@ func (client *VolumesClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2023-07-01") + reqQP.Set("api-version", "2024-06-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if err := runtime.MarshalAsJSON(req, volumeUpdateParameters); err != nil { diff --git a/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client_example_test.go b/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client_example_test.go index 3d27ea411acc..b6683ff8d8ea 100644 --- a/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client_example_test.go +++ b/sdk/resourcemanager/networkcloud/armnetworkcloud/volumes_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/networkcloud/armnetworkcloud" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_ListBySubscription.json func ExampleVolumesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -77,7 +77,7 @@ func ExampleVolumesClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_ListByResourceGroup.json func ExampleVolumesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -136,7 +136,7 @@ func ExampleVolumesClient_NewListByResourceGroupPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Get.json func ExampleVolumesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -187,7 +187,7 @@ func ExampleVolumesClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Create.json func ExampleVolumesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -255,7 +255,7 @@ func ExampleVolumesClient_BeginCreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Delete.json func ExampleVolumesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -276,7 +276,7 @@ func ExampleVolumesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4cd95123fb961c68740565a1efcaa5e43bd35802/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/stable/2023-07-01/examples/Volumes_Patch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/98d74b2db60e46ceb7e3b75755e51519cd500485/specification/networkcloud/resource-manager/Microsoft.NetworkCloud/preview/2024-06-01-preview/examples/Volumes_Patch.json func ExampleVolumesClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { From bf41d765663822eaec2736c69f663c6507be9e4a Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 15 Nov 2024 17:10:58 -0800 Subject: [PATCH 25/33] Add helpers to log a GitHub "notice" (#23764) Co-authored-by: Mike Harder --- eng/common/scripts/logging.ps1 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/eng/common/scripts/logging.ps1 b/eng/common/scripts/logging.ps1 index 91640cd7eb5d..1b459d004ad0 100644 --- a/eng/common/scripts/logging.ps1 +++ b/eng/common/scripts/logging.ps1 @@ -10,6 +10,26 @@ function LogInfo { Write-Host "$args" } +function LogNotice { + if (Test-SupportsGitHubLogging) { + Write-Host ("::notice::$args" -replace "`n", "%0D%0A") + } + else { + # No equivalent for DevOps + Write-Host "[Notice] $args" + } +} + +function LogNoticeForFile($file, $noticeString) { + if (Test-SupportsGitHubLogging) { + Write-Host ("::notice file=$file,line=1,col=1::$noticeString" -replace "`n", "%0D%0A") + } + else { + # No equivalent for DevOps + Write-Host "[Notice in file $file] $noticeString" + } +} + function LogWarning { if (Test-SupportsDevOpsLogging) { Write-Host ("##vso[task.LogIssue type=warning;]$args" -replace "`n", "%0D%0A") From acd13213aa80e688c90255dc09261c4fa0eb5824 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Sun, 17 Nov 2024 23:11:44 -0800 Subject: [PATCH 26/33] Increment package version after release of storage/azdatalake (#23745) --- sdk/storage/azdatalake/CHANGELOG.md | 10 ++++++++++ sdk/storage/azdatalake/internal/exported/version.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/storage/azdatalake/CHANGELOG.md b/sdk/storage/azdatalake/CHANGELOG.md index 3a697d9a16db..6b9162e40d9b 100644 --- a/sdk/storage/azdatalake/CHANGELOG.md +++ b/sdk/storage/azdatalake/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.3.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.3.0 (2024-11-13) ### Features Added diff --git a/sdk/storage/azdatalake/internal/exported/version.go b/sdk/storage/azdatalake/internal/exported/version.go index 79308e13eec8..340d4b70f0ce 100644 --- a/sdk/storage/azdatalake/internal/exported/version.go +++ b/sdk/storage/azdatalake/internal/exported/version.go @@ -8,5 +8,5 @@ package exported const ( ModuleName = "github.com/Azure/azure-sdk-for-go/sdk/storage/azdatalake" - ModuleVersion = "v1.3.0" + ModuleVersion = "v1.3.1" ) From 9b8ccc5180052038c1a04ae1cd23cd8e5a702a93 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Sun, 17 Nov 2024 23:11:49 -0800 Subject: [PATCH 27/33] Increment package version after release of storage/azblob (#23744) --- sdk/storage/azblob/CHANGELOG.md | 10 ++++++++++ sdk/storage/azblob/internal/exported/version.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/storage/azblob/CHANGELOG.md b/sdk/storage/azblob/CHANGELOG.md index 07be3af2b83b..18e72e1c89fc 100644 --- a/sdk/storage/azblob/CHANGELOG.md +++ b/sdk/storage/azblob/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.5.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.5.0 (2024-11-13) ### Features Added diff --git a/sdk/storage/azblob/internal/exported/version.go b/sdk/storage/azblob/internal/exported/version.go index 3e95fff69a9d..8a8a7674eca8 100644 --- a/sdk/storage/azblob/internal/exported/version.go +++ b/sdk/storage/azblob/internal/exported/version.go @@ -8,5 +8,5 @@ package exported const ( ModuleName = "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob" - ModuleVersion = "v1.5.0" + ModuleVersion = "v1.5.1" ) From 72728af0015d79baaaa70f951e21595f3c2794d4 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Sun, 17 Nov 2024 23:11:57 -0800 Subject: [PATCH 28/33] Increment package version after release of storage/azfile (#23743) --- sdk/storage/azfile/CHANGELOG.md | 10 ++++++++++ sdk/storage/azfile/internal/exported/version.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/storage/azfile/CHANGELOG.md b/sdk/storage/azfile/CHANGELOG.md index 70ae5cc17da0..44ae26bfe402 100644 --- a/sdk/storage/azfile/CHANGELOG.md +++ b/sdk/storage/azfile/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.4.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.4.0 (2024-11-13) ### Features Added diff --git a/sdk/storage/azfile/internal/exported/version.go b/sdk/storage/azfile/internal/exported/version.go index ca239b40e7ea..002d156473dc 100644 --- a/sdk/storage/azfile/internal/exported/version.go +++ b/sdk/storage/azfile/internal/exported/version.go @@ -8,5 +8,5 @@ package exported const ( ModuleName = "github.com/Azure/azure-sdk-for-go/sdk/storage/azfile" - ModuleVersion = "v1.4.0" + ModuleVersion = "v1.4.1" ) From 52e99f7b027f5ed45e14079f92b51c216ecc27ab Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 18 Nov 2024 12:57:41 -0800 Subject: [PATCH 29/33] batching adjustments for create-prjobmatrix (#23773) Co-authored-by: Scott Beddall --- .../scripts/job-matrix/Create-PrJobMatrix.ps1 | 16 +++++++++------- .../scripts/job-matrix/job-matrix-functions.ps1 | 2 +- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1 b/eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1 index 03fc6422e3aa..1d86cfcd79db 100644 --- a/eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1 +++ b/eng/common/scripts/job-matrix/Create-PrJobMatrix.ps1 @@ -90,31 +90,33 @@ foreach ($matrixBatchKey in $matrixBatchesByConfig.Keys) { $packageBatches = Split-ArrayIntoBatches -InputArray $matrixBatch -BatchSize $BATCHSIZE - # we only need to modify the generated job name if there is more than one matrix config or batch in the matrix - $matrixSuffixNecessary = $matrixConfigs.Count -gt 1 + # we only need to modify the generated job name if there is more than one matrix config + batch + $matrixSuffixNecessary = $matrixBatchesByConfig.Keys.Count -gt 1 $batchSuffixNecessary = $packageBatches.Length -gt 1 $batchCounter = 1 foreach ($batch in $packageBatches) { + $namesForBatch = ($batch | ForEach-Object { $_.ArtifactName }) -join "," # to understand this iteration, one must understand that the matrix is a list of hashtables, each with a couple keys: # [ # { "name": "jobname", "parameters": { matrixSetting1: matrixValue1, ...} }, # ] foreach ($matrixOutputItem in $matrixResults) { - $namesForBatch = ($batch | ForEach-Object { $_.ArtifactName }) -join "," + # we need to clone this, as each item is an object with possible children + $outputItem = $matrixOutputItem | ConvertTo-Json -Depth 100 | ConvertFrom-Json -AsHashtable # we just need to iterate across them, grab the parameters hashtable, and add the new key # if there is more than one batch, we will need to add a suffix including the batch name to the job name - $matrixOutputItem["parameters"]["$PRMatrixSetting"] = $namesForBatch + $outputItem["parameters"]["$PRMatrixSetting"] = $namesForBatch if ($matrixSuffixNecessary) { - $matrixOutputItem["name"] = $matrixOutputItem["name"] + $matrixConfig.Name + $outputItem["name"] = $outputItem["name"] + "_" + $matrixConfig.Name } if ($batchSuffixNecessary) { - $matrixOutputItem["name"] = $matrixOutputItem["name"] + "b$batchCounter" + $outputItem["name"] = $outputItem["name"] + "_b$batchCounter" } - $OverallResult += $matrixOutputItem + $OverallResult += $outputItem } $batchCounter += 1 } diff --git a/eng/common/scripts/job-matrix/job-matrix-functions.ps1 b/eng/common/scripts/job-matrix/job-matrix-functions.ps1 index 0693f7983f18..e271d0f21e3c 100644 --- a/eng/common/scripts/job-matrix/job-matrix-functions.ps1 +++ b/eng/common/scripts/job-matrix/job-matrix-functions.ps1 @@ -490,7 +490,7 @@ function CloneOrderedDictionary([System.Collections.Specialized.OrderedDictionar function SerializePipelineMatrix([Array]$matrix) { $pipelineMatrix = [Ordered]@{} foreach ($entry in $matrix) { - if ($pipelineMatrix.Contains($entry.Name)) { + if ($pipelineMatrix.Contains($entry.name)) { Write-Warning "Found duplicate configurations for job `"$($entry.name)`". Multiple values may have been replaced with the same value." continue } From fe3471a639a10bef8e000349a333a125904ad700 Mon Sep 17 00:00:00 2001 From: Gerardo Lecaros <10088504+glecaros@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:19:43 +0000 Subject: [PATCH 30/33] changelog --- sdk/ai/azopenaiassistants/CHANGELOG.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/ai/azopenaiassistants/CHANGELOG.md b/sdk/ai/azopenaiassistants/CHANGELOG.md index de8f13abca6d..0d81895a115d 100644 --- a/sdk/ai/azopenaiassistants/CHANGELOG.md +++ b/sdk/ai/azopenaiassistants/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 0.2.2 (unreleased) + +### Features Added + +- Added support for the `ParallelToolCalls` option. + +### Breaking Changes + +- `MessageAttachmentToolAssignment` is now `MessageAttachmentToolDefinition`. + ## 0.2.1 (2024-09-10) ### Features Added @@ -23,7 +33,7 @@ ### Bugs Fixed - ThreadRun.RequiredAction was deserialized incorrectly, making it impossible to actually resubmit a tool output. (PR#22834) - +a ## 0.1.0 (2024-03-05) * Initial release of the `azopenaiassistants` library From ede6b74d2f66069025a67890cf71a899f807592e Mon Sep 17 00:00:00 2001 From: Gerardo Lecaros <10088504+glecaros@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:50:36 +0000 Subject: [PATCH 31/33] updated version --- sdk/ai/azopenaiassistants/CHANGELOG.md | 2 +- sdk/ai/azopenaiassistants/version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/ai/azopenaiassistants/CHANGELOG.md b/sdk/ai/azopenaiassistants/CHANGELOG.md index 0d81895a115d..440113a79b30 100644 --- a/sdk/ai/azopenaiassistants/CHANGELOG.md +++ b/sdk/ai/azopenaiassistants/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 0.2.2 (unreleased) +## 0.2.2 (2024-12-02) ### Features Added diff --git a/sdk/ai/azopenaiassistants/version.go b/sdk/ai/azopenaiassistants/version.go index 90f0c93ccacf..b95e8b7c6cd3 100644 --- a/sdk/ai/azopenaiassistants/version.go +++ b/sdk/ai/azopenaiassistants/version.go @@ -7,5 +7,5 @@ package azopenaiassistants const ( - version = "v0.2.1" + version = "v0.2.2" ) From f68aeddbfd30fd5394b77aba64cc31e3429cd344 Mon Sep 17 00:00:00 2001 From: Gerardo Lecaros <10088504+glecaros@users.noreply.github.com> Date: Mon, 2 Dec 2024 14:27:21 -0800 Subject: [PATCH 32/33] Update sdk/ai/azopenaiassistants/CHANGELOG.md Co-authored-by: Wes Haggard --- sdk/ai/azopenaiassistants/CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/ai/azopenaiassistants/CHANGELOG.md b/sdk/ai/azopenaiassistants/CHANGELOG.md index 440113a79b30..919f14480943 100644 --- a/sdk/ai/azopenaiassistants/CHANGELOG.md +++ b/sdk/ai/azopenaiassistants/CHANGELOG.md @@ -33,7 +33,6 @@ ### Bugs Fixed - ThreadRun.RequiredAction was deserialized incorrectly, making it impossible to actually resubmit a tool output. (PR#22834) -a ## 0.1.0 (2024-03-05) * Initial release of the `azopenaiassistants` library From 28f95be0dc0657b3f6dbc73a22d1c368b8e924e2 Mon Sep 17 00:00:00 2001 From: Gerardo Lecaros <10088504+glecaros@users.noreply.github.com> Date: Tue, 3 Dec 2024 18:45:29 +0000 Subject: [PATCH 33/33] updated --- sdk/ai/azopenaiassistants/CHANGELOG.md | 2 +- sdk/ai/azopenaiassistants/version.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/ai/azopenaiassistants/CHANGELOG.md b/sdk/ai/azopenaiassistants/CHANGELOG.md index 919f14480943..2346663cea94 100644 --- a/sdk/ai/azopenaiassistants/CHANGELOG.md +++ b/sdk/ai/azopenaiassistants/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 0.2.2 (2024-12-02) +## 0.3.0 (2024-12-03) ### Features Added diff --git a/sdk/ai/azopenaiassistants/version.go b/sdk/ai/azopenaiassistants/version.go index b95e8b7c6cd3..c418e8e81825 100644 --- a/sdk/ai/azopenaiassistants/version.go +++ b/sdk/ai/azopenaiassistants/version.go @@ -7,5 +7,5 @@ package azopenaiassistants const ( - version = "v0.2.2" + version = "v0.3.0" )