// 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) Go Code Generator. DO NOT EDIT.

package armcomputeschedule_test

import (
	"context"
	"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/computeschedule/armcomputeschedule"
	"log"
	"time"
)

// Generated from example definition: 2025-04-15-preview/ScheduledActions_AttachResources_MaximumSet_Gen.json
func ExampleScheduledActionsClient_AttachResources() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().AttachResources(ctx, "rgcomputeschedule", "myScheduledAction", armcomputeschedule.ResourceAttachRequest{
		Resources: []*armcomputeschedule.ScheduledActionResource{
			{
				ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm"),
				NotificationSettings: []*armcomputeschedule.NotificationProperties{
					{
						Destination: to.Ptr("wbhryycyolvnypjxzlawwvb"),
						Type:        to.Ptr(armcomputeschedule.NotificationTypeEmail),
						Language:    to.Ptr(armcomputeschedule.LanguageEnUs),
						Disabled:    to.Ptr(true),
					},
				},
			},
		},
	}, 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 = armcomputeschedule.ScheduledActionsClientAttachResourcesResponse{
	// 	RecurringActionsResourceOperationResult: &armcomputeschedule.RecurringActionsResourceOperationResult{
	// 		TotalResources: to.Ptr[int32](11),
	// 		ResourcesStatuses: []*armcomputeschedule.ResourceStatus{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm"),
	// 				Status: to.Ptr(armcomputeschedule.ResourceOperationStatusSucceeded),
	// 				Error: &armcomputeschedule.Error{
	// 					Code: to.Ptr("baxjmkbhoatqcj"),
	// 					Message: to.Ptr("chapcwfkqymeof"),
	// 					Target: to.Ptr("mkirmorowetsigohjamvk"),
	// 					Details: []*armcomputeschedule.Error{
	// 					},
	// 					Innererror: &armcomputeschedule.InnerError{
	// 						Code: to.Ptr("cgalioufsabcwatbxa"),
	// 					},
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_CancelNextOccurrence_MaximumSet_Gen.json
func ExampleScheduledActionsClient_CancelNextOccurrence() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().CancelNextOccurrence(ctx, "rgcomputeschedule", "myScheduledAction", armcomputeschedule.CancelOccurrenceRequest{
		ResourceIDs: []*string{
			to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm"),
		},
	}, 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 = armcomputeschedule.ScheduledActionsClientCancelNextOccurrenceResponse{
	// 	RecurringActionsResourceOperationResult: &armcomputeschedule.RecurringActionsResourceOperationResult{
	// 		TotalResources: to.Ptr[int32](11),
	// 		ResourcesStatuses: []*armcomputeschedule.ResourceStatus{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm"),
	// 				Status: to.Ptr(armcomputeschedule.ResourceOperationStatusSucceeded),
	// 				Error: &armcomputeschedule.Error{
	// 					Code: to.Ptr("baxjmkbhoatqcj"),
	// 					Message: to.Ptr("chapcwfkqymeof"),
	// 					Target: to.Ptr("mkirmorowetsigohjamvk"),
	// 					Details: []*armcomputeschedule.Error{
	// 					},
	// 					Innererror: &armcomputeschedule.InnerError{
	// 						Code: to.Ptr("cgalioufsabcwatbxa"),
	// 					},
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_CreateOrUpdate_MaximumSet_Gen.json
func ExampleScheduledActionsClient_BeginCreateOrUpdate() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewScheduledActionsClient().BeginCreateOrUpdate(ctx, "rgcomputeschedule", "myScheduledAction", armcomputeschedule.ScheduledAction{
		Properties: &armcomputeschedule.ScheduledActionProperties{
			ResourceType: to.Ptr(armcomputeschedule.ResourceTypeVirtualMachine),
			ActionType:   to.Ptr(armcomputeschedule.ScheduledActionTypeStart),
			StartTime:    to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.281Z"); return t }()),
			EndTime:      to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.286Z"); return t }()),
			Schedule: &armcomputeschedule.ScheduledActionsSchedule{
				ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse("15:04:05.999999999Z07:00", "19:00:00"); return t }()),
				TimeZone:      to.Ptr("g"),
				RequestedWeekDays: []*armcomputeschedule.WeekDay{
					to.Ptr(armcomputeschedule.WeekDayMonday),
				},
				RequestedMonths: []*armcomputeschedule.Month{
					to.Ptr(armcomputeschedule.MonthJanuary),
				},
				RequestedDaysOfTheMonth: []*int32{
					to.Ptr[int32](15),
				},
				ExecutionParameters: &armcomputeschedule.ExecutionParameters{
					OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
					RetryPolicy: &armcomputeschedule.RetryPolicy{
						RetryCount:           to.Ptr[int32](17),
						RetryWindowInMinutes: to.Ptr[int32](29),
					},
				},
				DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
			},
			NotificationSettings: []*armcomputeschedule.NotificationProperties{
				{
					Destination: to.Ptr("wbhryycyolvnypjxzlawwvb"),
					Type:        to.Ptr(armcomputeschedule.NotificationTypeEmail),
					Language:    to.Ptr(armcomputeschedule.LanguageEnUs),
					Disabled:    to.Ptr(true),
				},
			},
			Disabled: to.Ptr(true),
		},
		Tags: map[string]*string{
			"key2102": to.Ptr("obwsqwdydpkscnzceopxgkrhrxtdhv"),
		},
		Location: to.Ptr("vmuhgdgipeypkcv"),
	}, 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 = armcomputeschedule.ScheduledActionsClientCreateOrUpdateResponse{
	// 	ScheduledAction: &armcomputeschedule.ScheduledAction{
	// 		Properties: &armcomputeschedule.ScheduledActionProperties{
	// 			ResourceType: to.Ptr(armcomputeschedule.ResourceTypeVirtualMachine),
	// 			ActionType: to.Ptr(armcomputeschedule.ScheduledActionTypeStart),
	// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.281Z"); return t}()),
	// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.286Z"); return t}()),
	// 			Schedule: &armcomputeschedule.ScheduledActionsSchedule{
	// 				ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse("15:04:05.999999999Z07:00", "19:00:00"); return t}()),
	// 				TimeZone: to.Ptr("g"),
	// 				RequestedWeekDays: []*armcomputeschedule.WeekDay{
	// 					to.Ptr(armcomputeschedule.WeekDayMonday),
	// 				},
	// 				RequestedMonths: []*armcomputeschedule.Month{
	// 					to.Ptr(armcomputeschedule.MonthJanuary),
	// 				},
	// 				RequestedDaysOfTheMonth: []*int32{
	// 					to.Ptr[int32](15),
	// 				},
	// 				ExecutionParameters: &armcomputeschedule.ExecutionParameters{
	// 					OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](17),
	// 						RetryWindowInMinutes: to.Ptr[int32](29),
	// 					},
	// 				},
	// 				DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
	// 			},
	// 			NotificationSettings: []*armcomputeschedule.NotificationProperties{
	// 				{
	// 					Destination: to.Ptr("wbhryycyolvnypjxzlawwvb"),
	// 					Type: to.Ptr(armcomputeschedule.NotificationTypeEmail),
	// 					Language: to.Ptr(armcomputeschedule.LanguageEnUs),
	// 					Disabled: to.Ptr(true),
	// 				},
	// 			},
	// 			Disabled: to.Ptr(true),
	// 			ProvisioningState: to.Ptr(armcomputeschedule.ProvisioningStateSucceeded),
	// 		},
	// 		Tags: map[string]*string{
	// 			"key2102": to.Ptr("obwsqwdydpkscnzceopxgkrhrxtdhv"),
	// 		},
	// 		Location: to.Ptr("vmuhgdgipeypkcv"),
	// 		ID: to.Ptr("/subscriptions/83C27AB3-A7B9-498B-B165-D9440661474F/resourceGroups/myRg/providers/Microsoft.ComputeSchedule/scheduledActions/myScheduledAction"),
	// 		Name: to.Ptr("a"),
	// 		Type: to.Ptr("obafnwpw"),
	// 		SystemData: &armcomputeschedule.SystemData{
	// 			CreatedBy: to.Ptr("cvryvreuvvjtiamcwhisrt"),
	// 			CreatedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("supbnksztdbgulxgvfmqvriqdlpirh"),
	// 			LastModifiedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_Delete_MaximumSet_Gen.json
func ExampleScheduledActionsClient_BeginDelete() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	poller, err := clientFactory.NewScheduledActionsClient().BeginDelete(ctx, "rgcomputeschedule", "myScheduledAction", 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: 2025-04-15-preview/ScheduledActions_DetachResources_MaximumSet_Gen.json
func ExampleScheduledActionsClient_DetachResources() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().DetachResources(ctx, "rgcomputeschedule", "myScheduledAction", armcomputeschedule.ResourceDetachRequest{
		Resources: []*string{
			to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm"),
		},
	}, 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 = armcomputeschedule.ScheduledActionsClientDetachResourcesResponse{
	// 	RecurringActionsResourceOperationResult: &armcomputeschedule.RecurringActionsResourceOperationResult{
	// 		TotalResources: to.Ptr[int32](11),
	// 		ResourcesStatuses: []*armcomputeschedule.ResourceStatus{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm"),
	// 				Status: to.Ptr(armcomputeschedule.ResourceOperationStatusSucceeded),
	// 				Error: &armcomputeschedule.Error{
	// 					Code: to.Ptr("baxjmkbhoatqcj"),
	// 					Message: to.Ptr("chapcwfkqymeof"),
	// 					Target: to.Ptr("mkirmorowetsigohjamvk"),
	// 					Details: []*armcomputeschedule.Error{
	// 					},
	// 					Innererror: &armcomputeschedule.InnerError{
	// 						Code: to.Ptr("cgalioufsabcwatbxa"),
	// 					},
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_Disable_MaximumSet_Gen.json
func ExampleScheduledActionsClient_Disable() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().Disable(ctx, "rgcomputeschedule", "myScheduledAction", 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 = armcomputeschedule.ScheduledActionsClientDisableResponse{
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_Enable_MaximumSet_Gen.json
func ExampleScheduledActionsClient_Enable() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().Enable(ctx, "rgcomputeschedule", "myScheduledAction", 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 = armcomputeschedule.ScheduledActionsClientEnableResponse{
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_Get_MaximumSet_Gen.json
func ExampleScheduledActionsClient_Get() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().Get(ctx, "rgcomputeschedule", "myScheduledAction", 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 = armcomputeschedule.ScheduledActionsClientGetResponse{
	// 	ScheduledAction: &armcomputeschedule.ScheduledAction{
	// 		Properties: &armcomputeschedule.ScheduledActionProperties{
	// 			ResourceType: to.Ptr(armcomputeschedule.ResourceTypeVirtualMachine),
	// 			ActionType: to.Ptr(armcomputeschedule.ScheduledActionTypeStart),
	// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.281Z"); return t}()),
	// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.286Z"); return t}()),
	// 			Schedule: &armcomputeschedule.ScheduledActionsSchedule{
	// 				ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse("15:04:05.999999999Z07:00", "19:00:00"); return t}()),
	// 				TimeZone: to.Ptr("g"),
	// 				RequestedWeekDays: []*armcomputeschedule.WeekDay{
	// 					to.Ptr(armcomputeschedule.WeekDayMonday),
	// 				},
	// 				RequestedMonths: []*armcomputeschedule.Month{
	// 					to.Ptr(armcomputeschedule.MonthJanuary),
	// 				},
	// 				RequestedDaysOfTheMonth: []*int32{
	// 					to.Ptr[int32](15),
	// 				},
	// 				ExecutionParameters: &armcomputeschedule.ExecutionParameters{
	// 					OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](17),
	// 						RetryWindowInMinutes: to.Ptr[int32](29),
	// 					},
	// 				},
	// 				DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
	// 			},
	// 			NotificationSettings: []*armcomputeschedule.NotificationProperties{
	// 				{
	// 					Destination: to.Ptr("wbhryycyolvnypjxzlawwvb"),
	// 					Type: to.Ptr(armcomputeschedule.NotificationTypeEmail),
	// 					Language: to.Ptr(armcomputeschedule.LanguageEnUs),
	// 					Disabled: to.Ptr(true),
	// 				},
	// 			},
	// 			Disabled: to.Ptr(true),
	// 			ProvisioningState: to.Ptr(armcomputeschedule.ProvisioningStateSucceeded),
	// 		},
	// 		Tags: map[string]*string{
	// 			"key2102": to.Ptr("obwsqwdydpkscnzceopxgkrhrxtdhv"),
	// 		},
	// 		Location: to.Ptr("vmuhgdgipeypkcv"),
	// 		ID: to.Ptr("/subscriptions/83C27AB3-A7B9-498B-B165-D9440661474F/resourceGroups/myRg/providers/Microsoft.ComputeSchedule/scheduledActions/myScheduledAction"),
	// 		Name: to.Ptr("a"),
	// 		Type: to.Ptr("obafnwpw"),
	// 		SystemData: &armcomputeschedule.SystemData{
	// 			CreatedBy: to.Ptr("cvryvreuvvjtiamcwhisrt"),
	// 			CreatedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("supbnksztdbgulxgvfmqvriqdlpirh"),
	// 			LastModifiedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_ListByResourceGroup_MaximumSet_Gen.json
func ExampleScheduledActionsClient_NewListByResourceGroupPager_scheduledActionsListByResourceGroupMaximumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewScheduledActionsClient().NewListByResourceGroupPager("rgcomputeschedule", 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 = armcomputeschedule.ScheduledActionsClientListByResourceGroupResponse{
		// 	ScheduledActionListResult: armcomputeschedule.ScheduledActionListResult{
		// 		Value: []*armcomputeschedule.ScheduledAction{
		// 			{
		// 				Properties: &armcomputeschedule.ScheduledActionProperties{
		// 					ResourceType: to.Ptr(armcomputeschedule.ResourceTypeVirtualMachine),
		// 					ActionType: to.Ptr(armcomputeschedule.ScheduledActionTypeStart),
		// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.281Z"); return t}()),
		// 					EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.286Z"); return t}()),
		// 					Schedule: &armcomputeschedule.ScheduledActionsSchedule{
		// 						ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse("15:04:05.999999999Z07:00", "19:00:00"); return t}()),
		// 						TimeZone: to.Ptr("g"),
		// 						RequestedWeekDays: []*armcomputeschedule.WeekDay{
		// 							to.Ptr(armcomputeschedule.WeekDayMonday),
		// 						},
		// 						RequestedMonths: []*armcomputeschedule.Month{
		// 							to.Ptr(armcomputeschedule.MonthJanuary),
		// 						},
		// 						RequestedDaysOfTheMonth: []*int32{
		// 							to.Ptr[int32](15),
		// 						},
		// 						ExecutionParameters: &armcomputeschedule.ExecutionParameters{
		// 							OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
		// 							RetryPolicy: &armcomputeschedule.RetryPolicy{
		// 								RetryCount: to.Ptr[int32](17),
		// 								RetryWindowInMinutes: to.Ptr[int32](29),
		// 							},
		// 						},
		// 						DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
		// 					},
		// 					NotificationSettings: []*armcomputeschedule.NotificationProperties{
		// 						{
		// 							Destination: to.Ptr("wbhryycyolvnypjxzlawwvb"),
		// 							Type: to.Ptr(armcomputeschedule.NotificationTypeEmail),
		// 							Language: to.Ptr(armcomputeschedule.LanguageEnUs),
		// 							Disabled: to.Ptr(true),
		// 						},
		// 					},
		// 					Disabled: to.Ptr(true),
		// 					ProvisioningState: to.Ptr(armcomputeschedule.ProvisioningStateSucceeded),
		// 				},
		// 				Tags: map[string]*string{
		// 					"key2102": to.Ptr("obwsqwdydpkscnzceopxgkrhrxtdhv"),
		// 				},
		// 				Location: to.Ptr("vmuhgdgipeypkcv"),
		// 				ID: to.Ptr("/subscriptions/83C27AB3-A7B9-498B-B165-D9440661474F/resourceGroups/myRg/providers/Microsoft.ComputeSchedule/scheduledActions/myScheduledAction"),
		// 				Name: to.Ptr("a"),
		// 				Type: to.Ptr("obafnwpw"),
		// 				SystemData: &armcomputeschedule.SystemData{
		// 					CreatedBy: to.Ptr("cvryvreuvvjtiamcwhisrt"),
		// 					CreatedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
		// 					LastModifiedBy: to.Ptr("supbnksztdbgulxgvfmqvriqdlpirh"),
		// 					LastModifiedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
		// 				},
		// 			},
		// 		},
		// 		NextLink: to.Ptr("https://microsoft.com/a"),
		// 	},
		// }
	}
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_ListByResourceGroup_MinimumSet_Gen.json
func ExampleScheduledActionsClient_NewListByResourceGroupPager_scheduledActionsListByResourceGroupMinimumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewScheduledActionsClient().NewListByResourceGroupPager("rgcomputeschedule", 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 = armcomputeschedule.ScheduledActionsClientListByResourceGroupResponse{
		// 	ScheduledActionListResult: armcomputeschedule.ScheduledActionListResult{
		// 		Value: []*armcomputeschedule.ScheduledAction{
		// 			{
		// 				Properties: &armcomputeschedule.ScheduledActionProperties{
		// 					ResourceType: to.Ptr(armcomputeschedule.ResourceTypeVirtualMachine),
		// 					ActionType: to.Ptr(armcomputeschedule.ScheduledActionTypeStart),
		// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.281Z"); return t}()),
		// 					EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.286Z"); return t}()),
		// 					Schedule: &armcomputeschedule.ScheduledActionsSchedule{
		// 						ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse("15:04:05.999999999Z07:00", "19:00:00"); return t}()),
		// 						TimeZone: to.Ptr("g"),
		// 						RequestedWeekDays: []*armcomputeschedule.WeekDay{
		// 							to.Ptr(armcomputeschedule.WeekDayMonday),
		// 						},
		// 						RequestedMonths: []*armcomputeschedule.Month{
		// 							to.Ptr(armcomputeschedule.MonthJanuary),
		// 						},
		// 						RequestedDaysOfTheMonth: []*int32{
		// 							to.Ptr[int32](15),
		// 						},
		// 						ExecutionParameters: &armcomputeschedule.ExecutionParameters{
		// 							OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
		// 							RetryPolicy: &armcomputeschedule.RetryPolicy{
		// 								RetryCount: to.Ptr[int32](17),
		// 								RetryWindowInMinutes: to.Ptr[int32](29),
		// 							},
		// 						},
		// 						DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
		// 					},
		// 					NotificationSettings: []*armcomputeschedule.NotificationProperties{
		// 						{
		// 							Destination: to.Ptr("wbhryycyolvnypjxzlawwvb"),
		// 							Type: to.Ptr(armcomputeschedule.NotificationTypeEmail),
		// 							Language: to.Ptr(armcomputeschedule.LanguageEnUs),
		// 							Disabled: to.Ptr(true),
		// 						},
		// 					},
		// 					Disabled: to.Ptr(true),
		// 					ProvisioningState: to.Ptr(armcomputeschedule.ProvisioningStateSucceeded),
		// 				},
		// 				Tags: map[string]*string{
		// 					"key2102": to.Ptr("obwsqwdydpkscnzceopxgkrhrxtdhv"),
		// 				},
		// 				Location: to.Ptr("vmuhgdgipeypkcv"),
		// 				ID: to.Ptr("/subscriptions/83C27AB3-A7B9-498B-B165-D9440661474F/resourceGroups/myRg/providers/Microsoft.ComputeSchedule/scheduledActions/myScheduledAction"),
		// 				Name: to.Ptr("a"),
		// 				Type: to.Ptr("obafnwpw"),
		// 				SystemData: &armcomputeschedule.SystemData{
		// 					CreatedBy: to.Ptr("cvryvreuvvjtiamcwhisrt"),
		// 					CreatedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
		// 					LastModifiedBy: to.Ptr("supbnksztdbgulxgvfmqvriqdlpirh"),
		// 					LastModifiedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
		// 				},
		// 			},
		// 		},
		// 		NextLink: to.Ptr("https://microsoft.com/a"),
		// 	},
		// }
	}
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_ListBySubscription_MaximumSet_Gen.json
func ExampleScheduledActionsClient_NewListBySubscriptionPager_scheduledActionsListBySubscriptionMaximumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewScheduledActionsClient().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 = armcomputeschedule.ScheduledActionsClientListBySubscriptionResponse{
		// 	ScheduledActionListResult: armcomputeschedule.ScheduledActionListResult{
		// 		Value: []*armcomputeschedule.ScheduledAction{
		// 			{
		// 				Properties: &armcomputeschedule.ScheduledActionProperties{
		// 					ResourceType: to.Ptr(armcomputeschedule.ResourceTypeVirtualMachine),
		// 					ActionType: to.Ptr(armcomputeschedule.ScheduledActionTypeStart),
		// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.281Z"); return t}()),
		// 					EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.286Z"); return t}()),
		// 					Schedule: &armcomputeschedule.ScheduledActionsSchedule{
		// 						ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse("15:04:05.999999999Z07:00", "19:00:00"); return t}()),
		// 						TimeZone: to.Ptr("g"),
		// 						RequestedWeekDays: []*armcomputeschedule.WeekDay{
		// 							to.Ptr(armcomputeschedule.WeekDayMonday),
		// 						},
		// 						RequestedMonths: []*armcomputeschedule.Month{
		// 							to.Ptr(armcomputeschedule.MonthJanuary),
		// 						},
		// 						RequestedDaysOfTheMonth: []*int32{
		// 							to.Ptr[int32](15),
		// 						},
		// 						ExecutionParameters: &armcomputeschedule.ExecutionParameters{
		// 							OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
		// 							RetryPolicy: &armcomputeschedule.RetryPolicy{
		// 								RetryCount: to.Ptr[int32](17),
		// 								RetryWindowInMinutes: to.Ptr[int32](29),
		// 							},
		// 						},
		// 						DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
		// 					},
		// 					NotificationSettings: []*armcomputeschedule.NotificationProperties{
		// 						{
		// 							Destination: to.Ptr("wbhryycyolvnypjxzlawwvb"),
		// 							Type: to.Ptr(armcomputeschedule.NotificationTypeEmail),
		// 							Language: to.Ptr(armcomputeschedule.LanguageEnUs),
		// 							Disabled: to.Ptr(true),
		// 						},
		// 					},
		// 					Disabled: to.Ptr(true),
		// 					ProvisioningState: to.Ptr(armcomputeschedule.ProvisioningStateSucceeded),
		// 				},
		// 				Tags: map[string]*string{
		// 					"key2102": to.Ptr("obwsqwdydpkscnzceopxgkrhrxtdhv"),
		// 				},
		// 				Location: to.Ptr("vmuhgdgipeypkcv"),
		// 				ID: to.Ptr("/subscriptions/83C27AB3-A7B9-498B-B165-D9440661474F/resourceGroups/myRg/providers/Microsoft.ComputeSchedule/scheduledActions/myScheduledAction"),
		// 				Name: to.Ptr("a"),
		// 				Type: to.Ptr("obafnwpw"),
		// 				SystemData: &armcomputeschedule.SystemData{
		// 					CreatedBy: to.Ptr("cvryvreuvvjtiamcwhisrt"),
		// 					CreatedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
		// 					LastModifiedBy: to.Ptr("supbnksztdbgulxgvfmqvriqdlpirh"),
		// 					LastModifiedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
		// 				},
		// 			},
		// 		},
		// 		NextLink: to.Ptr("https://microsoft.com/a"),
		// 	},
		// }
	}
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_ListBySubscription_MinimumSet_Gen.json
func ExampleScheduledActionsClient_NewListBySubscriptionPager_scheduledActionsListBySubscriptionMinimumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewScheduledActionsClient().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 = armcomputeschedule.ScheduledActionsClientListBySubscriptionResponse{
		// 	ScheduledActionListResult: armcomputeschedule.ScheduledActionListResult{
		// 		Value: []*armcomputeschedule.ScheduledAction{
		// 			{
		// 				Properties: &armcomputeschedule.ScheduledActionProperties{
		// 					ResourceType: to.Ptr(armcomputeschedule.ResourceTypeVirtualMachine),
		// 					ActionType: to.Ptr(armcomputeschedule.ScheduledActionTypeStart),
		// 					StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.281Z"); return t}()),
		// 					EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.286Z"); return t}()),
		// 					Schedule: &armcomputeschedule.ScheduledActionsSchedule{
		// 						ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse("15:04:05.999999999Z07:00", "19:00:00"); return t}()),
		// 						TimeZone: to.Ptr("g"),
		// 						RequestedWeekDays: []*armcomputeschedule.WeekDay{
		// 							to.Ptr(armcomputeschedule.WeekDayMonday),
		// 						},
		// 						RequestedMonths: []*armcomputeschedule.Month{
		// 							to.Ptr(armcomputeschedule.MonthJanuary),
		// 						},
		// 						RequestedDaysOfTheMonth: []*int32{
		// 							to.Ptr[int32](15),
		// 						},
		// 						ExecutionParameters: &armcomputeschedule.ExecutionParameters{
		// 							OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
		// 							RetryPolicy: &armcomputeschedule.RetryPolicy{
		// 								RetryCount: to.Ptr[int32](17),
		// 								RetryWindowInMinutes: to.Ptr[int32](29),
		// 							},
		// 						},
		// 						DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
		// 					},
		// 					NotificationSettings: []*armcomputeschedule.NotificationProperties{
		// 						{
		// 							Destination: to.Ptr("wbhryycyolvnypjxzlawwvb"),
		// 							Type: to.Ptr(armcomputeschedule.NotificationTypeEmail),
		// 							Language: to.Ptr(armcomputeschedule.LanguageEnUs),
		// 							Disabled: to.Ptr(true),
		// 						},
		// 					},
		// 					Disabled: to.Ptr(true),
		// 					ProvisioningState: to.Ptr(armcomputeschedule.ProvisioningStateSucceeded),
		// 				},
		// 				Tags: map[string]*string{
		// 					"key2102": to.Ptr("obwsqwdydpkscnzceopxgkrhrxtdhv"),
		// 				},
		// 				Location: to.Ptr("vmuhgdgipeypkcv"),
		// 				ID: to.Ptr("/subscriptions/83C27AB3-A7B9-498B-B165-D9440661474F/resourceGroups/myRg/providers/Microsoft.ComputeSchedule/scheduledActions/myScheduledAction"),
		// 				Name: to.Ptr("a"),
		// 				Type: to.Ptr("obafnwpw"),
		// 				SystemData: &armcomputeschedule.SystemData{
		// 					CreatedBy: to.Ptr("cvryvreuvvjtiamcwhisrt"),
		// 					CreatedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
		// 					CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
		// 					LastModifiedBy: to.Ptr("supbnksztdbgulxgvfmqvriqdlpirh"),
		// 					LastModifiedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
		// 					LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
		// 				},
		// 			},
		// 		},
		// 		NextLink: to.Ptr("https://microsoft.com/a"),
		// 	},
		// }
	}
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_ListResources_MaximumSet_Gen.json
func ExampleScheduledActionsClient_NewListResourcesPager() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewScheduledActionsClient().NewListResourcesPager("rgcomputeschedule", "myScheduledAction", 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 = armcomputeschedule.ScheduledActionsClientListResourcesResponse{
		// 	ResourceListResponse: armcomputeschedule.ResourceListResponse{
		// 		Value: []*armcomputeschedule.ScheduledActionResource{
		// 			{
		// 				ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm"),
		// 				NotificationSettings: []*armcomputeschedule.NotificationProperties{
		// 					{
		// 						Destination: to.Ptr("wbhryycyolvnypjxzlawwvb"),
		// 						Type: to.Ptr(armcomputeschedule.NotificationTypeEmail),
		// 						Language: to.Ptr(armcomputeschedule.LanguageEnUs),
		// 						Disabled: to.Ptr(true),
		// 					},
		// 				},
		// 				ID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm"),
		// 				Name: to.Ptr("dkmlhpipnlqh"),
		// 				Type: to.Ptr("xgq"),
		// 			},
		// 		},
		// 		NextLink: to.Ptr("https://microsoft.com/awac"),
		// 	},
		// }
	}
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_PatchResources_MaximumSet_Gen.json
func ExampleScheduledActionsClient_PatchResources() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().PatchResources(ctx, "rgcomputeschedule", "myScheduledAction", armcomputeschedule.ResourcePatchRequest{
		Resources: []*armcomputeschedule.ScheduledActionResource{
			{
				ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm"),
				NotificationSettings: []*armcomputeschedule.NotificationProperties{
					{
						Destination: to.Ptr("wbhryycyolvnypjxzlawwvb"),
						Type:        to.Ptr(armcomputeschedule.NotificationTypeEmail),
						Language:    to.Ptr(armcomputeschedule.LanguageEnUs),
						Disabled:    to.Ptr(true),
					},
				},
			},
		},
	}, 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 = armcomputeschedule.ScheduledActionsClientPatchResourcesResponse{
	// 	RecurringActionsResourceOperationResult: &armcomputeschedule.RecurringActionsResourceOperationResult{
	// 		TotalResources: to.Ptr[int32](11),
	// 		ResourcesStatuses: []*armcomputeschedule.ResourceStatus{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm"),
	// 				Status: to.Ptr(armcomputeschedule.ResourceOperationStatusSucceeded),
	// 				Error: &armcomputeschedule.Error{
	// 					Code: to.Ptr("baxjmkbhoatqcj"),
	// 					Message: to.Ptr("chapcwfkqymeof"),
	// 					Target: to.Ptr("mkirmorowetsigohjamvk"),
	// 					Details: []*armcomputeschedule.Error{
	// 					},
	// 					Innererror: &armcomputeschedule.InnerError{
	// 						Code: to.Ptr("cgalioufsabcwatbxa"),
	// 					},
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_TriggerManualOccurrence_MaximumSet_Gen.json
func ExampleScheduledActionsClient_TriggerManualOccurrence() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().TriggerManualOccurrence(ctx, "rgcomputeschedule", "myScheduledAction", 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 = armcomputeschedule.ScheduledActionsClientTriggerManualOccurrenceResponse{
	// 	Occurrence: &armcomputeschedule.Occurrence{
	// 		Properties: &armcomputeschedule.OccurrenceProperties{
	// 			ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:59.243Z"); return t}()),
	// 			ResultSummary: &armcomputeschedule.OccurrenceResultSummary{
	// 				Total: to.Ptr[int32](25),
	// 				Statuses: []*armcomputeschedule.ResourceResultSummary{
	// 					{
	// 						Code: to.Ptr("ubmwzgcwfopegjtkqyrkedgish"),
	// 						Count: to.Ptr[int32](4),
	// 						ErrorDetails: &armcomputeschedule.Error{
	// 							Code: to.Ptr("baxjmkbhoatqcj"),
	// 							Message: to.Ptr("chapcwfkqymeof"),
	// 							Target: to.Ptr("mkirmorowetsigohjamvk"),
	// 							Details: []*armcomputeschedule.Error{
	// 							},
	// 							Innererror: &armcomputeschedule.InnerError{
	// 								Code: to.Ptr("cgalioufsabcwatbxa"),
	// 							},
	// 						},
	// 					},
	// 				},
	// 			},
	// 			ProvisioningState: to.Ptr(armcomputeschedule.OccurrenceStateCreated),
	// 		},
	// 		ID: to.Ptr("/subscriptions/83C27AB3-A7B9-498B-B165-D9440661474F/resourceGroups/myRg/providers/Microsoft.ComputeSchedule/scheduledActions/myScheduledAction"),
	// 		Name: to.Ptr("edirlrdovp"),
	// 		Type: to.Ptr("hvnnadgtjavnsbilpaipgrtdjy"),
	// 		SystemData: &armcomputeschedule.SystemData{
	// 			CreatedBy: to.Ptr("cvryvreuvvjtiamcwhisrt"),
	// 			CreatedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("supbnksztdbgulxgvfmqvriqdlpirh"),
	// 			LastModifiedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_Update_MaximumSet_Gen.json
func ExampleScheduledActionsClient_Update() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().Update(ctx, "rgcomputeschedule", "myScheduledAction", armcomputeschedule.ScheduledActionUpdate{
		Properties: &armcomputeschedule.ScheduledActionUpdateProperties{
			ResourceType: to.Ptr(armcomputeschedule.ResourceTypeVirtualMachine),
			ActionType:   to.Ptr(armcomputeschedule.ScheduledActionTypeStart),
			StartTime:    to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:58.149Z"); return t }()),
			EndTime:      to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:58.149Z"); return t }()),
			Schedule: &armcomputeschedule.ScheduledActionsSchedule{
				ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse("15:04:05.999999999Z07:00", "19:00:00"); return t }()),
				TimeZone:      to.Ptr("bni"),
				RequestedWeekDays: []*armcomputeschedule.WeekDay{
					to.Ptr(armcomputeschedule.WeekDayMonday),
				},
				RequestedMonths: []*armcomputeschedule.Month{
					to.Ptr(armcomputeschedule.MonthJanuary),
				},
				RequestedDaysOfTheMonth: []*int32{
					to.Ptr[int32](15),
				},
				ExecutionParameters: &armcomputeschedule.ExecutionParameters{
					OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
					RetryPolicy: &armcomputeschedule.RetryPolicy{
						RetryCount:           to.Ptr[int32](17),
						RetryWindowInMinutes: to.Ptr[int32](29),
					},
				},
				DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
			},
			NotificationSettings: []*armcomputeschedule.NotificationProperties{
				{
					Destination: to.Ptr("wbhryycyolvnypjxzlawwvb"),
					Type:        to.Ptr(armcomputeschedule.NotificationTypeEmail),
					Language:    to.Ptr(armcomputeschedule.LanguageEnUs),
					Disabled:    to.Ptr(true),
				},
			},
			Disabled: to.Ptr(true),
		},
		Tags: map[string]*string{
			"key9989": to.Ptr("tryjidk"),
		},
	}, 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 = armcomputeschedule.ScheduledActionsClientUpdateResponse{
	// 	ScheduledAction: &armcomputeschedule.ScheduledAction{
	// 		Properties: &armcomputeschedule.ScheduledActionProperties{
	// 			ResourceType: to.Ptr(armcomputeschedule.ResourceTypeVirtualMachine),
	// 			ActionType: to.Ptr(armcomputeschedule.ScheduledActionTypeStart),
	// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.281Z"); return t}()),
	// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.286Z"); return t}()),
	// 			Schedule: &armcomputeschedule.ScheduledActionsSchedule{
	// 				ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse("15:04:05.999999999Z07:00", "19:00:00"); return t}()),
	// 				TimeZone: to.Ptr("bni"),
	// 				RequestedWeekDays: []*armcomputeschedule.WeekDay{
	// 					to.Ptr(armcomputeschedule.WeekDayMonday),
	// 				},
	// 				RequestedMonths: []*armcomputeschedule.Month{
	// 					to.Ptr(armcomputeschedule.MonthJanuary),
	// 				},
	// 				RequestedDaysOfTheMonth: []*int32{
	// 					to.Ptr[int32](15),
	// 				},
	// 				ExecutionParameters: &armcomputeschedule.ExecutionParameters{
	// 					OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](17),
	// 						RetryWindowInMinutes: to.Ptr[int32](29),
	// 					},
	// 				},
	// 				DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
	// 			},
	// 			NotificationSettings: []*armcomputeschedule.NotificationProperties{
	// 				{
	// 					Destination: to.Ptr("wbhryycyolvnypjxzlawwvb"),
	// 					Type: to.Ptr(armcomputeschedule.NotificationTypeEmail),
	// 					Language: to.Ptr(armcomputeschedule.LanguageEnUs),
	// 					Disabled: to.Ptr(true),
	// 				},
	// 			},
	// 			Disabled: to.Ptr(true),
	// 			ProvisioningState: to.Ptr(armcomputeschedule.ProvisioningStateSucceeded),
	// 		},
	// 		Tags: map[string]*string{
	// 			"key2102": to.Ptr("obwsqwdydpkscnzceopxgkrhrxtdhv"),
	// 		},
	// 		Location: to.Ptr("vmuhgdgipeypkcv"),
	// 		ID: to.Ptr("/subscriptions/83C27AB3-A7B9-498B-B165-D9440661474F/resourceGroups/myRg/providers/Microsoft.ComputeSchedule/scheduledActions/myScheduledAction"),
	// 		Name: to.Ptr("a"),
	// 		Type: to.Ptr("obafnwpw"),
	// 		SystemData: &armcomputeschedule.SystemData{
	// 			CreatedBy: to.Ptr("cvryvreuvvjtiamcwhisrt"),
	// 			CreatedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
	// 			CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
	// 			LastModifiedBy: to.Ptr("supbnksztdbgulxgvfmqvriqdlpirh"),
	// 			LastModifiedByType: to.Ptr(armcomputeschedule.CreatedByTypeUser),
	// 			LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.288Z"); return t}()),
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesCancelOperations_scheduledActionsVirtualMachinesCancelOperationsMaximumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesCancelOperations(ctx, "nivsvluajruxhmsfgmxjnl", armcomputeschedule.CancelOperationsRequest{
		OperationIDs: []*string{
			to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesCancelOperationsResponse{
	// 	CancelOperationsResponse: &armcomputeschedule.CancelOperationsResponse{
	// 		Results: []*armcomputeschedule.ResourceOperation{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 				ErrorCode: to.Ptr("fbjbxpbevwhljwbaiazzccepylkq"),
	// 				ErrorDetails: to.Ptr("aszvazbvkfy"),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationTypeUnknown),
	// 					SubscriptionID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
	// 					State: to.Ptr(armcomputeschedule.OperationStateUnknown),
	// 					TimeZone: to.Ptr("gw"),
	// 					ResourceOperationError: &armcomputeschedule.ResourceOperationError{
	// 						ErrorCode: to.Ptr("afhxlwuztofiozdrf"),
	// 						ErrorDetails: to.Ptr("anjvzqsbvwhspqajnnl"),
	// 					},
	// 					CompletedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](17),
	// 						RetryWindowInMinutes: to.Ptr[int32](29),
	// 					},
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesCancelOperations_scheduledActionsVirtualMachinesCancelOperationsMinimumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesCancelOperations(ctx, "fhdunfivmjiltaiakwhhwdgemfcld", armcomputeschedule.CancelOperationsRequest{
		OperationIDs: []*string{
			to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesCancelOperationsResponse{
	// 	CancelOperationsResponse: &armcomputeschedule.CancelOperationsResponse{
	// 		Results: []*armcomputeschedule.ResourceOperation{
	// 			{
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteCreate_MaximumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesExecuteCreate_scheduledActionsVirtualMachinesExecuteCreateMaximumSetGenGeneratedByMaximumSetRule() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("0505D8E4-D41A-48FB-9CA5-4AF8D93BE75F", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesExecuteCreate(ctx, "oslhbouzgevzpeydssyelhw", armcomputeschedule.ExecuteCreateRequest{
		ResourceConfigParameters: &armcomputeschedule.ResourceProvisionPayload{
			BaseProfile: map[string]any{
				"hardwareProfile": map[string]any{
					"name": "F1",
				},
				"provisioningState": 0,
				"storageProfile": map[string]any{
					"osDisk": map[string]any{
						"osType": 0,
					},
				},
				"vmExtensions": []any{
					map[string]any{
						"autoUpgradeMinorVersion": true,
						"protectedSettings":       "SomeDecryptedSecretValue",
						"provisioningState":       0,
						"enableAutomaticUpgrade":  true,
						"publisher":               "Microsoft.Azure.Monitor",
						"type":                    "AzureMonitorLinuxAgent",
						"typeHandlerVersion":      "1.0",
					},
					map[string]any{
						"name": "myExtensionName",
					},
				},
				"resourcegroupName": "RG5ABF491C-3164-42A6-8CB5-BF3CB53B018B",
				"computeApiVersion": "2024-07-01",
			},
			ResourceOverrides: []map[string]any{
				{
					"name":     "myFleet_523",
					"location": "LocalDev",
					"properties": map[string]any{
						"hardwareProfile": map[string]any{
							"vmSize": "Standard_F1s",
						},
						"provisioningState": 0,
						"osProfile": map[string]any{
							"computerName":  "myFleet000000",
							"adminUsername": "adminUser",
							"windowsConfiguration": map[string]any{
								"additionalUnattendContent": []any{
									map[string]any{
										"passName": "someValue",
										"content":  "",
									},
									map[string]any{
										"passName": "someOtherValue",
										"content":  "SomeDecryptedSecretValue",
									},
								},
							},
							"adminPassword": "SomeDecryptedSecretValue",
						},
						"priority": 0,
					},
					"zones": []any{
						"1",
					},
				},
				{
					"name":     "myFleet_524",
					"location": "LocalDev",
					"properties": map[string]any{
						"hardwareProfile": map[string]any{
							"vmSize": "Standard_G1s",
						},
						"provisioningState": 0,
						"osProfile": map[string]any{
							"computerName":  "myFleet000000",
							"adminUsername": "adminUser",
							"windowsConfiguration": map[string]any{
								"additionalUnattendContent": []any{
									map[string]any{
										"passName": "someValue",
										"content":  "",
									},
									map[string]any{
										"passName": "someOtherValue",
										"content":  "SomeDecryptedSecretValue",
									},
								},
							},
							"adminPassword": "SomeDecryptedSecretValue",
						},
						"priority": 0,
					},
					"zones": []any{
						"2",
					},
				},
			},
			ResourceCount:  to.Ptr[int32](2),
			ResourcePrefix: to.Ptr("TL1"),
		},
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{
			RetryPolicy: &armcomputeschedule.RetryPolicy{
				RetryCount:           to.Ptr[int32](5),
				RetryWindowInMinutes: to.Ptr[int32](40),
			},
		},
		Correlationid: to.Ptr("dfe927c5-16a6-40b7-a0f7-8524975ed642"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesExecuteCreateResponse{
	// 	CreateResourceOperationResponse: &armcomputeschedule.CreateResourceOperationResponse{
	// 		Type: to.Ptr("virtualmachines"),
	// 		Location: to.Ptr("eastus"),
	// 		Results: []*armcomputeschedule.ResourceOperation{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/RG5ABF491C-3164-42A6-8CB5-BF3CB53B018B/providers/Microsoft.Compute/virtualMachines/TL13"),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("5cc987d0-4a3a-4b01-b31a-c99219ece5e2"),
	// 					ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/RG5ABF491C-3164-42A6-8CB5-BF3CB53B018B/providers/Microsoft.Compute/virtualMachines/TL13"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationType("Create")),
	// 					SubscriptionID: to.Ptr("1d04e8f1-ee04-4056-b0b2-718f5bb45b04"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-23T22:51:50.1355051+00:00"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeInitiateAt),
	// 					State: to.Ptr(armcomputeschedule.OperationStatePendingScheduling),
	// 					TimeZone: to.Ptr("UTC"),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](3),
	// 						RetryWindowInMinutes: to.Ptr[int32](10),
	// 					},
	// 				},
	// 			},
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/RG5ABF491C-3164-42A6-8CB5-BF3CB53B018B/providers/Microsoft.Compute/virtualMachines/TL14"),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("5cc987d0-4a3a-4b01-b31a-c99219ece5e2"),
	// 					ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/RG5ABF491C-3164-42A6-8CB5-BF3CB53B018B/providers/Microsoft.Compute/virtualMachines/TL14"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationType("Create")),
	// 					SubscriptionID: to.Ptr("1d04e8f1-ee04-4056-b0b2-718f5bb45b04"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-23T22:51:50.1355051+00:00"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeInitiateAt),
	// 					State: to.Ptr(armcomputeschedule.OperationStatePendingScheduling),
	// 					TimeZone: to.Ptr("UTC"),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](3),
	// 						RetryWindowInMinutes: to.Ptr[int32](10),
	// 					},
	// 				},
	// 			},
	// 		},
	// 		Description: to.Ptr("Create Resource response"),
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteCreate_MinimumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesExecuteCreate_scheduledActionsVirtualMachinesExecuteCreateMinimumSetGenGeneratedByMinimumSetRule() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("0505D8E4-D41A-48FB-9CA5-4AF8D93BE75F", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesExecuteCreate(ctx, "useast", armcomputeschedule.ExecuteCreateRequest{
		ResourceConfigParameters: &armcomputeschedule.ResourceProvisionPayload{
			BaseProfile: map[string]any{
				"hardwareProfile": map[string]any{
					"name": "F1",
				},
				"provisioningState": 0,
				"storageProfile": map[string]any{
					"osDisk": map[string]any{
						"osType": 0,
					},
				},
				"vmExtensions": []any{
					map[string]any{
						"autoUpgradeMinorVersion": true,
						"protectedSettings":       "SomeDecryptedSecretValue",
						"provisioningState":       0,
						"enableAutomaticUpgrade":  true,
						"publisher":               "Microsoft.Azure.Monitor",
						"type":                    "AzureMonitorLinuxAgent",
						"typeHandlerVersion":      "1.0",
					},
					map[string]any{
						"name": "myExtensionName",
					},
				},
				"resourcegroupName": "RG5ABF491C-3164-42A6-8CB5-BF3CB53B018B",
				"computeApiVersion": "2024-07-01",
			},
			ResourceOverrides: []map[string]any{
				{
					"name":     "myFleet_523",
					"location": "LocalDev",
					"properties": map[string]any{
						"hardwareProfile": map[string]any{
							"vmSize": "Standard_F1s",
						},
						"provisioningState": 0,
						"osProfile": map[string]any{
							"computerName":  "myFleet000000",
							"adminUsername": "adminUser",
							"windowsConfiguration": map[string]any{
								"additionalUnattendContent": []any{
									map[string]any{
										"passName": "someValue",
										"content":  "",
									},
									map[string]any{
										"passName": "someOtherValue",
										"content":  "SomeDecryptedSecretValue",
									},
								},
							},
							"adminPassword": "SomeDecryptedSecretValue",
						},
						"priority": 0,
					},
					"zones": []any{
						"1",
					},
				},
				{
					"name":     "myFleet_524",
					"location": "LocalDev",
					"properties": map[string]any{
						"hardwareProfile": map[string]any{
							"vmSize": "Standard_G1s",
						},
						"provisioningState": 0,
						"osProfile": map[string]any{
							"computerName":  "myFleet000000",
							"adminUsername": "adminUser",
							"windowsConfiguration": map[string]any{
								"additionalUnattendContent": []any{
									map[string]any{
										"passName": "someValue",
										"content":  "",
									},
									map[string]any{
										"passName": "someOtherValue",
										"content":  "SomeDecryptedSecretValue",
									},
								},
							},
							"adminPassword": "SomeDecryptedSecretValue",
						},
						"priority": 0,
					},
					"zones": []any{
						"2",
					},
				},
			},
			ResourceCount: to.Ptr[int32](2),
		},
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{},
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesExecuteCreateResponse{
	// 	CreateResourceOperationResponse: &armcomputeschedule.CreateResourceOperationResponse{
	// 		Type: to.Ptr("virtualmachines"),
	// 		Location: to.Ptr("eastus"),
	// 		Results: []*armcomputeschedule.ResourceOperation{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/RG5ABF491C-3164-42A6-8CB5-BF3CB53B018B/providers/Microsoft.Compute/virtualMachines/TL13"),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("5cc987d0-4a3a-4b01-b31a-c99219ece5e2"),
	// 					ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/RG5ABF491C-3164-42A6-8CB5-BF3CB53B018B/providers/Microsoft.Compute/virtualMachines/TL13"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationType("Create")),
	// 					SubscriptionID: to.Ptr("1d04e8f1-ee04-4056-b0b2-718f5bb45b04"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-23T22:51:50.1355051+00:00"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeInitiateAt),
	// 					State: to.Ptr(armcomputeschedule.OperationStatePendingScheduling),
	// 					TimeZone: to.Ptr("UTC"),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](3),
	// 						RetryWindowInMinutes: to.Ptr[int32](10),
	// 					},
	// 				},
	// 			},
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/RG5ABF491C-3164-42A6-8CB5-BF3CB53B018B/providers/Microsoft.Compute/virtualMachines/TL14"),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("5cc987d0-4a3a-4b01-b31a-c99219ece5e2"),
	// 					ResourceID: to.Ptr("/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/RG5ABF491C-3164-42A6-8CB5-BF3CB53B018B/providers/Microsoft.Compute/virtualMachines/TL14"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationType("Create")),
	// 					SubscriptionID: to.Ptr("1d04e8f1-ee04-4056-b0b2-718f5bb45b04"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-05-23T22:51:50.1355051+00:00"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeInitiateAt),
	// 					State: to.Ptr(armcomputeschedule.OperationStatePendingScheduling),
	// 					TimeZone: to.Ptr("UTC"),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](3),
	// 						RetryWindowInMinutes: to.Ptr[int32](10),
	// 					},
	// 				},
	// 			},
	// 		},
	// 		Description: to.Ptr("Create Resource response"),
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesExecuteDeallocate_scheduledActionsVirtualMachinesExecuteDeallocateMaximumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesExecuteDeallocate(ctx, "ykcaptgboliddcfyaiuimj", armcomputeschedule.ExecuteDeallocateRequest{
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{
			OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
			RetryPolicy: &armcomputeschedule.RetryPolicy{
				RetryCount:           to.Ptr[int32](17),
				RetryWindowInMinutes: to.Ptr[int32](29),
			},
		},
		Resources: &armcomputeschedule.Resources{
			IDs: []*string{
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
			},
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesExecuteDeallocateResponse{
	// 	DeallocateResourceOperationResponse: &armcomputeschedule.DeallocateResourceOperationResponse{
	// 		Description: to.Ptr("pmx"),
	// 		Type: to.Ptr("tftzqijknwbvxytjmfzszl"),
	// 		Location: to.Ptr("cofallzfmrhbhhiodklevxvow"),
	// 		Results: []*armcomputeschedule.ResourceOperation{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 				ErrorCode: to.Ptr("fbjbxpbevwhljwbaiazzccepylkq"),
	// 				ErrorDetails: to.Ptr("aszvazbvkfy"),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationTypeUnknown),
	// 					SubscriptionID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
	// 					State: to.Ptr(armcomputeschedule.OperationStateUnknown),
	// 					TimeZone: to.Ptr("gw"),
	// 					ResourceOperationError: &armcomputeschedule.ResourceOperationError{
	// 						ErrorCode: to.Ptr("afhxlwuztofiozdrf"),
	// 						ErrorDetails: to.Ptr("anjvzqsbvwhspqajnnl"),
	// 					},
	// 					CompletedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](17),
	// 						RetryWindowInMinutes: to.Ptr[int32](29),
	// 					},
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesExecuteDeallocate_scheduledActionsVirtualMachinesExecuteDeallocateMinimumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesExecuteDeallocate(ctx, "qqfrkswrovcice", armcomputeschedule.ExecuteDeallocateRequest{
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{},
		Resources: &armcomputeschedule.Resources{
			IDs: []*string{
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
			},
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesExecuteDeallocateResponse{
	// 	DeallocateResourceOperationResponse: &armcomputeschedule.DeallocateResourceOperationResponse{
	// 		Description: to.Ptr("pmx"),
	// 		Type: to.Ptr("tftzqijknwbvxytjmfzszl"),
	// 		Location: to.Ptr("cofallzfmrhbhhiodklevxvow"),
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteDelete_MaximumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesExecuteDelete_scheduledActionsVirtualMachinesExecuteDeleteMaximumSetGenGeneratedByMaximumSetRule() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("0505D8E4-D41A-48FB-9CA5-4AF8D93BE75F", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesExecuteDelete(ctx, "east", armcomputeschedule.ExecuteDeleteRequest{
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{
			RetryPolicy: &armcomputeschedule.RetryPolicy{
				RetryCount:           to.Ptr[int32](2),
				RetryWindowInMinutes: to.Ptr[int32](4),
			},
		},
		Resources: &armcomputeschedule.Resources{
			IDs: []*string{
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3"),
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
			},
		},
		Correlationid: to.Ptr("dfe927c5-16a6-40b7-a0f7-8524975ed642"),
		ForceDeletion: to.Ptr(false),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesExecuteDeleteResponse{
	// 	DeleteResourceOperationResponse: &armcomputeschedule.DeleteResourceOperationResponse{
	// 		Type: to.Ptr("virtualmachines"),
	// 		Location: to.Ptr("eastus"),
	// 		Results: []*armcomputeschedule.ResourceOperation{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3"),
	// 				ErrorCode: to.Ptr("ynukyltendgmn"),
	// 				ErrorDetails: to.Ptr("tifeuh"),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("0505H8E4-D41A-48FB-9CA5-4AF8D93BE75F"),
	// 					ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationType("Delete")),
	// 					SubscriptionID: to.Ptr("YourSubscriptionId"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-15T19:47:03.591Z"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeInitiateAt),
	// 					State: to.Ptr(armcomputeschedule.OperationStatePendingScheduling),
	// 					Timezone: to.Ptr("nwugsooykqggcokphgdj"),
	// 					TimeZone: to.Ptr("qkxnxnumvfqmsmpyccv"),
	// 					CompletedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-15T19:47:03.591Z"); return t}()),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](25),
	// 						RetryWindowInMinutes: to.Ptr[int32](4),
	// 					},
	// 				},
	// 			},
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 				ErrorCode: to.Ptr(""),
	// 				ErrorDetails: to.Ptr(""),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("Create Resource request"),
	// 					ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationType("Delete")),
	// 					SubscriptionID: to.Ptr("YourSubscriptionId"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-15T19:47:03.591Z"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeInitiateAt),
	// 					State: to.Ptr(armcomputeschedule.OperationStatePendingScheduling),
	// 					Timezone: to.Ptr("nwugsooykqggcokphgdj"),
	// 					TimeZone: to.Ptr("qkxnxnumvfqmsmpyccv"),
	// 					CompletedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-15T19:47:03.591Z"); return t}()),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](2),
	// 						RetryWindowInMinutes: to.Ptr[int32](4),
	// 					},
	// 				},
	// 			},
	// 		},
	// 		Description: to.Ptr("Delete Resource response"),
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteDelete_MinimumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesExecuteDelete_scheduledActionsVirtualMachinesExecuteDeleteMinimumSetGenGeneratedByMinimumSetRule() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("0505D8E4-D41A-48FB-9CA5-4AF8D93BE75F", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesExecuteDelete(ctx, "east", armcomputeschedule.ExecuteDeleteRequest{
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{},
		Resources: &armcomputeschedule.Resources{
			IDs: []*string{
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3"),
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
			},
		},
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesExecuteDeleteResponse{
	// 	DeleteResourceOperationResponse: &armcomputeschedule.DeleteResourceOperationResponse{
	// 		Type: to.Ptr("virtualMachines"),
	// 		Location: to.Ptr("eastus"),
	// 		Results: []*armcomputeschedule.ResourceOperation{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3"),
	// 				ErrorCode: to.Ptr("ynukyltendgmn"),
	// 				ErrorDetails: to.Ptr("tifeuh"),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("0505H8E4-D41A-48FB-9CA5-4AF8D93BE75F"),
	// 					ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationType("Delete")),
	// 					SubscriptionID: to.Ptr("YourSubscriptionId"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-15T19:47:03.591Z"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeInitiateAt),
	// 					State: to.Ptr(armcomputeschedule.OperationStatePendingScheduling),
	// 					Timezone: to.Ptr("nwugsooykqggcokphgdj"),
	// 					TimeZone: to.Ptr("qkxnxnumvfqmsmpyccv"),
	// 					CompletedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-15T19:47:03.591Z"); return t}()),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](25),
	// 						RetryWindowInMinutes: to.Ptr[int32](4),
	// 					},
	// 				},
	// 			},
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 				ErrorCode: to.Ptr(""),
	// 				ErrorDetails: to.Ptr(""),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("Create Resource request"),
	// 					ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationType("Delete")),
	// 					SubscriptionID: to.Ptr("YourSubscriptionId"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-15T19:47:03.591Z"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeInitiateAt),
	// 					State: to.Ptr(armcomputeschedule.OperationStatePendingScheduling),
	// 					Timezone: to.Ptr("nwugsooykqggcokphgdj"),
	// 					TimeZone: to.Ptr("qkxnxnumvfqmsmpyccv"),
	// 					CompletedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-15T19:47:03.591Z"); return t}()),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](2),
	// 						RetryWindowInMinutes: to.Ptr[int32](4),
	// 					},
	// 				},
	// 			},
	// 		},
	// 		Description: to.Ptr("Delete Resource response"),
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesExecuteHibernate_scheduledActionsVirtualMachinesExecuteHibernateMaximumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesExecuteHibernate(ctx, "gztd", armcomputeschedule.ExecuteHibernateRequest{
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{
			OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
			RetryPolicy: &armcomputeschedule.RetryPolicy{
				RetryCount:           to.Ptr[int32](17),
				RetryWindowInMinutes: to.Ptr[int32](29),
			},
		},
		Resources: &armcomputeschedule.Resources{
			IDs: []*string{
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
			},
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesExecuteHibernateResponse{
	// 	HibernateResourceOperationResponse: &armcomputeschedule.HibernateResourceOperationResponse{
	// 		Description: to.Ptr("zemtxsyjt"),
	// 		Type: to.Ptr("w"),
	// 		Location: to.Ptr("jwwrzblfudvislgynhjwwvpfrta"),
	// 		Results: []*armcomputeschedule.ResourceOperation{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 				ErrorCode: to.Ptr("fbjbxpbevwhljwbaiazzccepylkq"),
	// 				ErrorDetails: to.Ptr("aszvazbvkfy"),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationTypeUnknown),
	// 					SubscriptionID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
	// 					State: to.Ptr(armcomputeschedule.OperationStateUnknown),
	// 					TimeZone: to.Ptr("gw"),
	// 					ResourceOperationError: &armcomputeschedule.ResourceOperationError{
	// 						ErrorCode: to.Ptr("afhxlwuztofiozdrf"),
	// 						ErrorDetails: to.Ptr("anjvzqsbvwhspqajnnl"),
	// 					},
	// 					CompletedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](17),
	// 						RetryWindowInMinutes: to.Ptr[int32](29),
	// 					},
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesExecuteHibernate_scheduledActionsVirtualMachinesExecuteHibernateMinimumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesExecuteHibernate(ctx, "xtmm", armcomputeschedule.ExecuteHibernateRequest{
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{},
		Resources: &armcomputeschedule.Resources{
			IDs: []*string{
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
			},
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesExecuteHibernateResponse{
	// 	HibernateResourceOperationResponse: &armcomputeschedule.HibernateResourceOperationResponse{
	// 		Description: to.Ptr("zemtxsyjt"),
	// 		Type: to.Ptr("w"),
	// 		Location: to.Ptr("jwwrzblfudvislgynhjwwvpfrta"),
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesExecuteStart_scheduledActionsVirtualMachinesExecuteStartMaximumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesExecuteStart(ctx, "qk", armcomputeschedule.ExecuteStartRequest{
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{
			OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
			RetryPolicy: &armcomputeschedule.RetryPolicy{
				RetryCount:           to.Ptr[int32](17),
				RetryWindowInMinutes: to.Ptr[int32](29),
			},
		},
		Resources: &armcomputeschedule.Resources{
			IDs: []*string{
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
			},
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesExecuteStartResponse{
	// 	StartResourceOperationResponse: &armcomputeschedule.StartResourceOperationResponse{
	// 		Description: to.Ptr("tlphodyrecv"),
	// 		Type: to.Ptr("qpmru"),
	// 		Location: to.Ptr("ktsumrgdaifwbpkxurfdfa"),
	// 		Results: []*armcomputeschedule.ResourceOperation{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 				ErrorCode: to.Ptr("fbjbxpbevwhljwbaiazzccepylkq"),
	// 				ErrorDetails: to.Ptr("aszvazbvkfy"),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationTypeUnknown),
	// 					SubscriptionID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
	// 					State: to.Ptr(armcomputeschedule.OperationStateUnknown),
	// 					TimeZone: to.Ptr("gw"),
	// 					ResourceOperationError: &armcomputeschedule.ResourceOperationError{
	// 						ErrorCode: to.Ptr("afhxlwuztofiozdrf"),
	// 						ErrorDetails: to.Ptr("anjvzqsbvwhspqajnnl"),
	// 					},
	// 					CompletedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](17),
	// 						RetryWindowInMinutes: to.Ptr[int32](29),
	// 					},
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesExecuteStart_scheduledActionsVirtualMachinesExecuteStartMinimumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesExecuteStart(ctx, "fbdewllahrteoavajbomjc", armcomputeschedule.ExecuteStartRequest{
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{},
		Resources: &armcomputeschedule.Resources{
			IDs: []*string{
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
			},
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesExecuteStartResponse{
	// 	StartResourceOperationResponse: &armcomputeschedule.StartResourceOperationResponse{
	// 		Description: to.Ptr("tlphodyrecv"),
	// 		Type: to.Ptr("qpmru"),
	// 		Location: to.Ptr("ktsumrgdaifwbpkxurfdfa"),
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesGetOperationErrors_scheduledActionsVirtualMachinesGetOperationErrorsMaximumSetGenGeneratedByMaximumSetRule() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("0505D8E4-D41A-48FB-9CA5-4AF8D93BE75F", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesGetOperationErrors(ctx, "ennweqswbghorrgzbet", armcomputeschedule.GetOperationErrorsRequest{
		OperationIDs: []*string{
			to.Ptr("ksufjznokhsbowdupyt"),
		},
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesGetOperationErrorsResponse{
	// 	GetOperationErrorsResponse: &armcomputeschedule.GetOperationErrorsResponse{
	// 		Results: []*armcomputeschedule.OperationErrorsResult{
	// 			{
	// 				OperationID: to.Ptr("emftjglfbsxaboxqzxlpbjian"),
	// 				CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-15T19:47:04.130Z"); return t}()),
	// 				ActivationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-15T19:47:04.130Z"); return t}()),
	// 				CompletedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-15T19:47:04.130Z"); return t}()),
	// 				OperationErrors: []*armcomputeschedule.OperationErrorDetails{
	// 					{
	// 						ErrorCode: to.Ptr("awrovoihpnqsotznapyrrb"),
	// 						ErrorDetails: to.Ptr("af"),
	// 						Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-15T19:47:04.131Z"); return t}()),
	// 						TimeStamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-15T19:47:04.131Z"); return t}()),
	// 						AzureOperationName: to.Ptr("ipsoybbslitmwsfkygfjhb"),
	// 						CrpOperationID: to.Ptr("cqkmbfb"),
	// 					},
	// 				},
	// 				RequestErrorCode: to.Ptr("vzixjphgeygyhzpbbkgzcjol"),
	// 				RequestErrorDetails: to.Ptr("ficjafazcvbmlbnqhffwtevkla"),
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesGetOperationErrors_scheduledActionsVirtualMachinesGetOperationErrorsMinimumSetGenGeneratedByMinimumSetRule() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("0505D8E4-D41A-48FB-9CA5-4AF8D93BE75F", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesGetOperationErrors(ctx, "gcdqwzmxtcn", armcomputeschedule.GetOperationErrorsRequest{
		OperationIDs: []*string{
			to.Ptr("ksufjznokhsbowdupyt"),
		},
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesGetOperationErrorsResponse{
	// 	GetOperationErrorsResponse: &armcomputeschedule.GetOperationErrorsResponse{
	// 		Results: []*armcomputeschedule.OperationErrorsResult{
	// 			{
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesGetOperationStatus_scheduledActionsVirtualMachinesGetOperationStatusMaximumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesGetOperationStatus(ctx, "ntfcikxsmthfkdhdcjpevmydzu", armcomputeschedule.GetOperationStatusRequest{
		OperationIDs: []*string{
			to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesGetOperationStatusResponse{
	// 	GetOperationStatusResponse: &armcomputeschedule.GetOperationStatusResponse{
	// 		Results: []*armcomputeschedule.ResourceOperation{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 				ErrorCode: to.Ptr("fbjbxpbevwhljwbaiazzccepylkq"),
	// 				ErrorDetails: to.Ptr("aszvazbvkfy"),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationTypeUnknown),
	// 					SubscriptionID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
	// 					State: to.Ptr(armcomputeschedule.OperationStateUnknown),
	// 					TimeZone: to.Ptr("gw"),
	// 					ResourceOperationError: &armcomputeschedule.ResourceOperationError{
	// 						ErrorCode: to.Ptr("afhxlwuztofiozdrf"),
	// 						ErrorDetails: to.Ptr("anjvzqsbvwhspqajnnl"),
	// 					},
	// 					CompletedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](17),
	// 						RetryWindowInMinutes: to.Ptr[int32](29),
	// 					},
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesGetOperationStatus_scheduledActionsVirtualMachinesGetOperationStatusMinimumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesGetOperationStatus(ctx, "ykvvjfoopmkwznctgaiblzvea", armcomputeschedule.GetOperationStatusRequest{
		OperationIDs: []*string{
			to.Ptr("duhqnwosjzexcfwfhryvy"),
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesGetOperationStatusResponse{
	// 	GetOperationStatusResponse: &armcomputeschedule.GetOperationStatusResponse{
	// 		Results: []*armcomputeschedule.ResourceOperation{
	// 			{
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesSubmitDeallocate_scheduledActionsVirtualMachinesSubmitDeallocateMaximumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesSubmitDeallocate(ctx, "ycipx", armcomputeschedule.SubmitDeallocateRequest{
		Schedule: &armcomputeschedule.Schedule{
			DeadLine:     to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:56.803Z"); return t }()),
			TimeZone:     to.Ptr("aigbjdnldtzkteqi"),
			DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
		},
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{
			OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
			RetryPolicy: &armcomputeschedule.RetryPolicy{
				RetryCount:           to.Ptr[int32](17),
				RetryWindowInMinutes: to.Ptr[int32](29),
			},
		},
		Resources: &armcomputeschedule.Resources{
			IDs: []*string{
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
			},
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesSubmitDeallocateResponse{
	// 	DeallocateResourceOperationResponse: &armcomputeschedule.DeallocateResourceOperationResponse{
	// 		Description: to.Ptr("pmx"),
	// 		Type: to.Ptr("tftzqijknwbvxytjmfzszl"),
	// 		Location: to.Ptr("cofallzfmrhbhhiodklevxvow"),
	// 		Results: []*armcomputeschedule.ResourceOperation{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 				ErrorCode: to.Ptr("fbjbxpbevwhljwbaiazzccepylkq"),
	// 				ErrorDetails: to.Ptr("aszvazbvkfy"),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationTypeUnknown),
	// 					SubscriptionID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
	// 					State: to.Ptr(armcomputeschedule.OperationStateUnknown),
	// 					TimeZone: to.Ptr("gw"),
	// 					ResourceOperationError: &armcomputeschedule.ResourceOperationError{
	// 						ErrorCode: to.Ptr("afhxlwuztofiozdrf"),
	// 						ErrorDetails: to.Ptr("anjvzqsbvwhspqajnnl"),
	// 					},
	// 					CompletedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](17),
	// 						RetryWindowInMinutes: to.Ptr[int32](29),
	// 					},
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesSubmitDeallocate_scheduledActionsVirtualMachinesSubmitDeallocateMinimumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesSubmitDeallocate(ctx, "zrcmkxsbuxsxxulky", armcomputeschedule.SubmitDeallocateRequest{
		Schedule: &armcomputeschedule.Schedule{
			DeadLine:     to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:56.803Z"); return t }()),
			TimeZone:     to.Ptr("aigbjdnldtzkteqi"),
			DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
		},
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{},
		Resources: &armcomputeschedule.Resources{
			IDs: []*string{
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
			},
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesSubmitDeallocateResponse{
	// 	DeallocateResourceOperationResponse: &armcomputeschedule.DeallocateResourceOperationResponse{
	// 		Description: to.Ptr("pmx"),
	// 		Type: to.Ptr("tftzqijknwbvxytjmfzszl"),
	// 		Location: to.Ptr("cofallzfmrhbhhiodklevxvow"),
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesSubmitHibernate_scheduledActionsVirtualMachinesSubmitHibernateMaximumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesSubmitHibernate(ctx, "rhadyapnyvmobwg", armcomputeschedule.SubmitHibernateRequest{
		Schedule: &armcomputeschedule.Schedule{
			DeadLine:     to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:56.803Z"); return t }()),
			TimeZone:     to.Ptr("aigbjdnldtzkteqi"),
			DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
		},
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{
			OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
			RetryPolicy: &armcomputeschedule.RetryPolicy{
				RetryCount:           to.Ptr[int32](17),
				RetryWindowInMinutes: to.Ptr[int32](29),
			},
		},
		Resources: &armcomputeschedule.Resources{
			IDs: []*string{
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
			},
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesSubmitHibernateResponse{
	// 	HibernateResourceOperationResponse: &armcomputeschedule.HibernateResourceOperationResponse{
	// 		Description: to.Ptr("zemtxsyjt"),
	// 		Type: to.Ptr("w"),
	// 		Location: to.Ptr("jwwrzblfudvislgynhjwwvpfrta"),
	// 		Results: []*armcomputeschedule.ResourceOperation{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 				ErrorCode: to.Ptr("fbjbxpbevwhljwbaiazzccepylkq"),
	// 				ErrorDetails: to.Ptr("aszvazbvkfy"),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationTypeUnknown),
	// 					SubscriptionID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
	// 					State: to.Ptr(armcomputeschedule.OperationStateUnknown),
	// 					TimeZone: to.Ptr("gw"),
	// 					ResourceOperationError: &armcomputeschedule.ResourceOperationError{
	// 						ErrorCode: to.Ptr("afhxlwuztofiozdrf"),
	// 						ErrorDetails: to.Ptr("anjvzqsbvwhspqajnnl"),
	// 					},
	// 					CompletedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](17),
	// 						RetryWindowInMinutes: to.Ptr[int32](29),
	// 					},
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesSubmitHibernate_scheduledActionsVirtualMachinesSubmitHibernateMinimumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesSubmitHibernate(ctx, "zuevcqpgdohzbjodhachtr", armcomputeschedule.SubmitHibernateRequest{
		Schedule: &armcomputeschedule.Schedule{
			DeadLine:     to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:56.803Z"); return t }()),
			TimeZone:     to.Ptr("aigbjdnldtzkteqi"),
			DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
		},
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{},
		Resources: &armcomputeschedule.Resources{
			IDs: []*string{
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
			},
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesSubmitHibernateResponse{
	// 	HibernateResourceOperationResponse: &armcomputeschedule.HibernateResourceOperationResponse{
	// 		Description: to.Ptr("zemtxsyjt"),
	// 		Type: to.Ptr("w"),
	// 		Location: to.Ptr("jwwrzblfudvislgynhjwwvpfrta"),
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesSubmitStart_scheduledActionsVirtualMachinesSubmitStartMaximumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesSubmitStart(ctx, "pxtvvk", armcomputeschedule.SubmitStartRequest{
		Schedule: &armcomputeschedule.Schedule{
			DeadLine:     to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:56.803Z"); return t }()),
			TimeZone:     to.Ptr("aigbjdnldtzkteqi"),
			DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
		},
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{
			OptimizationPreference: to.Ptr(armcomputeschedule.OptimizationPreferenceCost),
			RetryPolicy: &armcomputeschedule.RetryPolicy{
				RetryCount:           to.Ptr[int32](17),
				RetryWindowInMinutes: to.Ptr[int32](29),
			},
		},
		Resources: &armcomputeschedule.Resources{
			IDs: []*string{
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
			},
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesSubmitStartResponse{
	// 	StartResourceOperationResponse: &armcomputeschedule.StartResourceOperationResponse{
	// 		Description: to.Ptr("tlphodyrecv"),
	// 		Type: to.Ptr("qpmru"),
	// 		Location: to.Ptr("ktsumrgdaifwbpkxurfdfa"),
	// 		Results: []*armcomputeschedule.ResourceOperation{
	// 			{
	// 				ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 				ErrorCode: to.Ptr("fbjbxpbevwhljwbaiazzccepylkq"),
	// 				ErrorDetails: to.Ptr("aszvazbvkfy"),
	// 				Operation: &armcomputeschedule.ResourceOperationDetails{
	// 					OperationID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					ResourceID: to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
	// 					OpType: to.Ptr(armcomputeschedule.ResourceOperationTypeUnknown),
	// 					SubscriptionID: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	// 					Deadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
	// 					State: to.Ptr(armcomputeschedule.OperationStateUnknown),
	// 					TimeZone: to.Ptr("gw"),
	// 					ResourceOperationError: &armcomputeschedule.ResourceOperationError{
	// 						ErrorCode: to.Ptr("afhxlwuztofiozdrf"),
	// 						ErrorDetails: to.Ptr("anjvzqsbvwhspqajnnl"),
	// 					},
	// 					CompletedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:55.772Z"); return t}()),
	// 					RetryPolicy: &armcomputeschedule.RetryPolicy{
	// 						RetryCount: to.Ptr[int32](17),
	// 						RetryWindowInMinutes: to.Ptr[int32](29),
	// 					},
	// 				},
	// 			},
	// 		},
	// 	},
	// }
}

// Generated from example definition: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json
func ExampleScheduledActionsClient_VirtualMachinesSubmitStart_scheduledActionsVirtualMachinesSubmitStartMinimumSet() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armcomputeschedule.NewClientFactory("CB26D7CB-3E27-465F-99C8-EAF7A4118245", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	res, err := clientFactory.NewScheduledActionsClient().VirtualMachinesSubmitStart(ctx, "ufrcsuw", armcomputeschedule.SubmitStartRequest{
		Schedule: &armcomputeschedule.Schedule{
			DeadLine:     to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2025-04-17T00:23:56.803Z"); return t }()),
			TimeZone:     to.Ptr("aigbjdnldtzkteqi"),
			DeadlineType: to.Ptr(armcomputeschedule.DeadlineTypeUnknown),
		},
		ExecutionParameters: &armcomputeschedule.ExecutionParameters{},
		Resources: &armcomputeschedule.Resources{
			IDs: []*string{
				to.Ptr("/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"),
			},
		},
		Correlationid: to.Ptr("b211f086-4b91-4686-a453-2f5c012e4d80"),
	}, 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 = armcomputeschedule.ScheduledActionsClientVirtualMachinesSubmitStartResponse{
	// 	StartResourceOperationResponse: &armcomputeschedule.StartResourceOperationResponse{
	// 		Description: to.Ptr("tlphodyrecv"),
	// 		Type: to.Ptr("qpmru"),
	// 		Location: to.Ptr("ktsumrgdaifwbpkxurfdfa"),
	// 	},
	// }
}
