diff --git a/sdk/resourcemanager/computeschedule/armcomputeschedule/CHANGELOG.md b/sdk/resourcemanager/computeschedule/armcomputeschedule/CHANGELOG.md index c9818d32195a..f0b320b03609 100644 --- a/sdk/resourcemanager/computeschedule/armcomputeschedule/CHANGELOG.md +++ b/sdk/resourcemanager/computeschedule/armcomputeschedule/CHANGELOG.md @@ -1,5 +1,80 @@ # Release History +## 1.2.0-beta.1 (2025-09-17) +### Features Added + +- New enum type `CreatedByType` with values `CreatedByTypeApplication`, `CreatedByTypeKey`, `CreatedByTypeManagedIdentity`, `CreatedByTypeUser` +- New enum type `Language` with values `LanguageEnUs` +- New enum type `Month` with values `MonthAll`, `MonthApril`, `MonthAugust`, `MonthDecember`, `MonthFebruary`, `MonthJanuary`, `MonthJuly`, `MonthJune`, `MonthMarch`, `MonthMay`, `MonthNovember`, `MonthOctober`, `MonthSeptember` +- New enum type `NotificationType` with values `NotificationTypeEmail` +- New enum type `OccurrenceState` with values `OccurrenceStateCanceled`, `OccurrenceStateCancelling`, `OccurrenceStateCreated`, `OccurrenceStateFailed`, `OccurrenceStateRescheduling`, `OccurrenceStateScheduled`, `OccurrenceStateSucceeded` +- New enum type `ProvisioningState` with values `ProvisioningStateCanceled`, `ProvisioningStateDeleting`, `ProvisioningStateFailed`, `ProvisioningStateSucceeded` +- New enum type `ResourceOperationStatus` with values `ResourceOperationStatusFailed`, `ResourceOperationStatusSucceeded` +- New enum type `ResourceProvisioningState` with values `ResourceProvisioningStateCanceled`, `ResourceProvisioningStateFailed`, `ResourceProvisioningStateSucceeded` +- New enum type `ResourceType` with values `ResourceTypeVirtualMachine`, `ResourceTypeVirtualMachineScaleSet` +- New enum type `ScheduledActionType` with values `ScheduledActionTypeDeallocate`, `ScheduledActionTypeHibernate`, `ScheduledActionTypeStart` +- New enum type `WeekDay` with values `WeekDayAll`, `WeekDayFriday`, `WeekDayMonday`, `WeekDaySaturday`, `WeekDaySunday`, `WeekDayThursday`, `WeekDayTuesday`, `WeekDayWednesday` +- New function `*ClientFactory.NewOccurrenceExtensionClient() *OccurrenceExtensionClient` +- New function `*ClientFactory.NewOccurrencesClient() *OccurrencesClient` +- New function `*ClientFactory.NewScheduledActionExtensionClient() *ScheduledActionExtensionClient` +- New function `NewOccurrenceExtensionClient(azcore.TokenCredential, *arm.ClientOptions) (*OccurrenceExtensionClient, error)` +- New function `*OccurrenceExtensionClient.NewListOccurrenceByVMsPager(string, *OccurrenceExtensionClientListOccurrenceByVMsOptions) *runtime.Pager[OccurrenceExtensionClientListOccurrenceByVMsResponse]` +- New function `NewOccurrencesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*OccurrencesClient, error)` +- New function `*OccurrencesClient.Cancel(context.Context, string, string, string, CancelOccurrenceRequest, *OccurrencesClientCancelOptions) (OccurrencesClientCancelResponse, error)` +- New function `*OccurrencesClient.BeginDelay(context.Context, string, string, string, DelayRequest, *OccurrencesClientBeginDelayOptions) (*runtime.Poller[OccurrencesClientDelayResponse], error)` +- New function `*OccurrencesClient.Get(context.Context, string, string, string, *OccurrencesClientGetOptions) (OccurrencesClientGetResponse, error)` +- New function `*OccurrencesClient.NewListByScheduledActionPager(string, string, *OccurrencesClientListByScheduledActionOptions) *runtime.Pager[OccurrencesClientListByScheduledActionResponse]` +- New function `*OccurrencesClient.NewListResourcesPager(string, string, string, *OccurrencesClientListResourcesOptions) *runtime.Pager[OccurrencesClientListResourcesResponse]` +- New function `NewScheduledActionExtensionClient(azcore.TokenCredential, *arm.ClientOptions) (*ScheduledActionExtensionClient, error)` +- New function `*ScheduledActionExtensionClient.NewListByVMsPager(string, *ScheduledActionExtensionClientListByVMsOptions) *runtime.Pager[ScheduledActionExtensionClientListByVMsResponse]` +- New function `*ScheduledActionsClient.AttachResources(context.Context, string, string, ResourceAttachRequest, *ScheduledActionsClientAttachResourcesOptions) (ScheduledActionsClientAttachResourcesResponse, error)` +- New function `*ScheduledActionsClient.CancelNextOccurrence(context.Context, string, string, CancelOccurrenceRequest, *ScheduledActionsClientCancelNextOccurrenceOptions) (ScheduledActionsClientCancelNextOccurrenceResponse, error)` +- New function `*ScheduledActionsClient.BeginCreateOrUpdate(context.Context, string, string, ScheduledAction, *ScheduledActionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ScheduledActionsClientCreateOrUpdateResponse], error)` +- New function `*ScheduledActionsClient.BeginDelete(context.Context, string, string, *ScheduledActionsClientBeginDeleteOptions) (*runtime.Poller[ScheduledActionsClientDeleteResponse], error)` +- New function `*ScheduledActionsClient.DetachResources(context.Context, string, string, ResourceDetachRequest, *ScheduledActionsClientDetachResourcesOptions) (ScheduledActionsClientDetachResourcesResponse, error)` +- New function `*ScheduledActionsClient.Disable(context.Context, string, string, *ScheduledActionsClientDisableOptions) (ScheduledActionsClientDisableResponse, error)` +- New function `*ScheduledActionsClient.Enable(context.Context, string, string, *ScheduledActionsClientEnableOptions) (ScheduledActionsClientEnableResponse, error)` +- New function `*ScheduledActionsClient.Get(context.Context, string, string, *ScheduledActionsClientGetOptions) (ScheduledActionsClientGetResponse, error)` +- New function `*ScheduledActionsClient.NewListByResourceGroupPager(string, *ScheduledActionsClientListByResourceGroupOptions) *runtime.Pager[ScheduledActionsClientListByResourceGroupResponse]` +- New function `*ScheduledActionsClient.NewListBySubscriptionPager(*ScheduledActionsClientListBySubscriptionOptions) *runtime.Pager[ScheduledActionsClientListBySubscriptionResponse]` +- New function `*ScheduledActionsClient.NewListResourcesPager(string, string, *ScheduledActionsClientListResourcesOptions) *runtime.Pager[ScheduledActionsClientListResourcesResponse]` +- New function `*ScheduledActionsClient.PatchResources(context.Context, string, string, ResourcePatchRequest, *ScheduledActionsClientPatchResourcesOptions) (ScheduledActionsClientPatchResourcesResponse, error)` +- New function `*ScheduledActionsClient.TriggerManualOccurrence(context.Context, string, string, *ScheduledActionsClientTriggerManualOccurrenceOptions) (ScheduledActionsClientTriggerManualOccurrenceResponse, error)` +- New function `*ScheduledActionsClient.Update(context.Context, string, string, ScheduledActionUpdate, *ScheduledActionsClientUpdateOptions) (ScheduledActionsClientUpdateResponse, error)` +- New struct `CancelOccurrenceRequest` +- New struct `DelayRequest` +- New struct `Error` +- New struct `InnerError` +- New struct `NotificationProperties` +- New struct `Occurrence` +- New struct `OccurrenceExtensionProperties` +- New struct `OccurrenceExtensionResource` +- New struct `OccurrenceExtensionResourceListResult` +- New struct `OccurrenceListResult` +- New struct `OccurrenceProperties` +- New struct `OccurrenceResource` +- New struct `OccurrenceResourceListResponse` +- New struct `OccurrenceResultSummary` +- New struct `RecurringActionsResourceOperationResult` +- New struct `ResourceAttachRequest` +- New struct `ResourceDetachRequest` +- New struct `ResourceListResponse` +- New struct `ResourcePatchRequest` +- New struct `ResourceResultSummary` +- New struct `ResourceStatus` +- New struct `ScheduledAction` +- New struct `ScheduledActionListResult` +- New struct `ScheduledActionProperties` +- New struct `ScheduledActionResource` +- New struct `ScheduledActionResources` +- New struct `ScheduledActionResourcesListResult` +- New struct `ScheduledActionUpdate` +- New struct `ScheduledActionUpdateProperties` +- New struct `ScheduledActionsExtensionProperties` +- New struct `ScheduledActionsSchedule` +- New struct `SystemData` + + ## 1.2.0-beta.1 (2025-07-24) ### Features Added diff --git a/sdk/resourcemanager/computeschedule/armcomputeschedule/go.mod b/sdk/resourcemanager/computeschedule/armcomputeschedule/go.mod index 3c744fa3c68e..c9cebf03737c 100644 --- a/sdk/resourcemanager/computeschedule/armcomputeschedule/go.mod +++ b/sdk/resourcemanager/computeschedule/armcomputeschedule/go.mod @@ -1,10 +1,12 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/computeschedule/armcomputeschedule -go 1.23.0 +go 1.24.0 + +toolchain go1.24.7 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.18.1 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.10.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.19.1 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.12.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0 ) @@ -15,16 +17,16 @@ require ( ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.1 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.2 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.1.0 - github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2 // indirect - github.com/golang-jwt/jwt/v5 v5.2.2 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v1.5.0 // indirect + github.com/golang-jwt/jwt/v5 v5.3.0 // indirect github.com/google/uuid v1.6.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect - github.com/stretchr/testify v1.10.0 - golang.org/x/crypto v0.40.0 // indirect - golang.org/x/net v0.42.0 // indirect - golang.org/x/sys v0.34.0 // indirect - golang.org/x/text v0.27.0 // indirect + github.com/stretchr/testify v1.11.1 + golang.org/x/crypto v0.42.0 // indirect + golang.org/x/net v0.44.0 // indirect + golang.org/x/sys v0.36.0 // indirect + golang.org/x/text v0.29.0 // indirect ) diff --git a/sdk/resourcemanager/computeschedule/armcomputeschedule/go.sum b/sdk/resourcemanager/computeschedule/armcomputeschedule/go.sum index 2bf8ec4cf7b1..6639a8b330a0 100644 --- a/sdk/resourcemanager/computeschedule/armcomputeschedule/go.sum +++ b/sdk/resourcemanager/computeschedule/armcomputeschedule/go.sum @@ -1,11 +1,11 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.18.1 h1:Wc1ml6QlJs2BHQ/9Bqu1jiyggbsSjramq2oUmp5WeIo= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.18.1/go.mod h1:Ot/6aikWnKWi4l9QB7qVSwa8iMphQNqkWALMoNT3rzM= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.10.1 h1:B+blDbyVIG3WaikNxPnhPiJ1MThR03b3vKGtER95TP4= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.10.1/go.mod h1:JdM5psgjfBf5fo2uWOZhflPWyDBZ/O/CNAH9CtsuZE4= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.19.1 h1:5YTBM8QDVIBN3sxBil89WfdAAqDZbyJTgh688DSxX5w= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.19.1/go.mod h1:YD5h/ldMsG0XiIw7PdyNhLxaM317eFh5yNLccNfGdyw= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.12.0 h1:wL5IEG5zb7BVv1Kv0Xm92orq+5hB5Nipn3B5tn4Rqfk= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.12.0/go.mod h1:J7MUC/wtRpfGVbQ5sIItY5/FuVWmvzlY21WAOfQnq/I= github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.2 h1:yz1bePFlP5Vws5+8ez6T3HWXPmwOK7Yvq8QxDBD3SKY= github.com/Azure/azure-sdk-for-go/sdk/azidentity/cache v0.3.2/go.mod h1:Pa9ZNPuoNu/GztvBSKk9J1cDJW6vk/n0zLtV4mgd8N8= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.1 h1:FPKJS1T+clwv+OLGt13a8UjqeRuh0O4SJ3lUriThc+4= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.1/go.mod h1:j2chePtV91HrC22tGoRX3sGY42uF13WzmmV80/OdVAA= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.2 h1:9iefClla7iYpfYWdzPCRDozdmndjTm8DXdpCzPajMgA= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.11.2/go.mod h1:XtLgD3ZD34DAaVIIAyG3objl5DynM3CQ/vMcbBNJZGI= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0 h1:PTFGRSlMKCQelWwxUyYVEUqseBJVemLyqWJjvMyt0do= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v2 v2.0.0/go.mod h1:LRr2FzBTQlONPPa5HREE5+RjSCTXl7BwOvYOaWTqCaI= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/v3 v3.1.0 h1:2qsIIvxVT+uE6yrNldntJKlLRgxGbZ85kgtz5SNBhMw= @@ -16,16 +16,12 @@ github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1. github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.2.0/go.mod h1:5kakwfW5CjC9KK+Q4wjXAg+ShuIm2mBMua0ZFj2C8PE= github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1 h1:WJTmL004Abzc5wDB5VtZG2PJk5ndYDgVacGqfirKxjM= github.com/AzureAD/microsoft-authentication-extensions-for-go/cache v0.1.1/go.mod h1:tCcJZ0uHAmvjsVYzEFivsRTN00oz5BEsRgQHu5JZ9WE= -github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2 h1:oygO0locgZJe7PpYPXT5A29ZkwJaPqcva7BVeemZOZs= -github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= -github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= -github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/AzureAD/microsoft-authentication-library-for-go v1.5.0 h1:XkkQbfMyuH2jTSjQjSoihryI8GINRcs4xp8lNawg0FI= +github.com/AzureAD/microsoft-authentication-library-for-go v1.5.0/go.mod h1:HKpQxkWaGLJ+D/5H8QRpyQXA1eKjxkFlOMwck5+33Jk= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78= -github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= -github.com/golang-jwt/jwt/v5 v5.2.2 h1:Rl4B7itRWVtYIHFrSNd7vhTiz9UpLdi6gZhZ3wEeDy8= -github.com/golang-jwt/jwt/v5 v5.2.2/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= +github.com/golang-jwt/jwt/v5 v5.3.0 h1:pv4AsKCKKZuqlgs5sUmn4x8UlGa0kEVt/puTpKx9vvo= +github.com/golang-jwt/jwt/v5 v5.3.0/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/keybase/go-keychain v0.0.1 h1:way+bWYa6lDppZoZcgMbYsvC7GxljxrskdNInRtuthU= @@ -40,21 +36,19 @@ github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmd github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/redis/go-redis/v9 v9.8.0 h1:q3nRvjrlge/6UD7eTu/DSg2uYiU2mCL0G/uzBWqhicI= -github.com/redis/go-redis/v9 v9.8.0/go.mod h1:huWgSWd8mW6+m0VPhJjSSQ+d6Nh1VICQ6Q5lHuCH/Iw= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -golang.org/x/crypto v0.40.0 h1:r4x+VvoG5Fm+eJcxMaY8CQM7Lb0l1lsmjGBQ6s8BfKM= -golang.org/x/crypto v0.40.0/go.mod h1:Qr1vMER5WyS2dfPHAlsOj01wgLbsyWtFn/aY+5+ZdxY= -golang.org/x/net v0.42.0 h1:jzkYrhi3YQWD6MLBJcsklgQsoAcw89EcZbJw8Z614hs= -golang.org/x/net v0.42.0/go.mod h1:FF1RA5d3u7nAYA4z2TkclSCKh68eSXtiFwcWQpPXdt8= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= +golang.org/x/crypto v0.42.0 h1:chiH31gIWm57EkTXpwnqf8qeuMUi0yekh6mT2AvFlqI= +golang.org/x/crypto v0.42.0/go.mod h1:4+rDnOTJhQCx2q7/j6rAN5XDw8kPjeaXEUR2eL94ix8= +golang.org/x/net v0.44.0 h1:evd8IRDyfNBMBTTY5XRF1vaZlD+EmWx6x8PkhR04H/I= +golang.org/x/net v0.44.0/go.mod h1:ECOoLqd5U3Lhyeyo/QDCEVQ4sNgYsqvCZ722XogGieY= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.34.0 h1:H5Y5sJ2L2JRdyv7ROF1he/lPdvFsd0mJHFw2ThKHxLA= -golang.org/x/sys v0.34.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= -golang.org/x/text v0.27.0 h1:4fGWRpyh641NLlecmyl4LOe6yDdfaYNrGb2zdfo4JV4= -golang.org/x/text v0.27.0/go.mod h1:1D28KMCvyooCX9hBiosv5Tz/+YLxj0j7XhWjpSUF7CU= +golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k= +golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/text v0.29.0 h1:1neNs90w9YzJ9BocxfsQNHKuAT4pkghyXc4nhZ6sJvk= +golang.org/x/text v0.29.0/go.mod h1:7MhJOA9CD2qZyOKYazxdYMF85OwPdEr9jTtBpO7ydH4= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/sdk/resourcemanager/computeschedule/armcomputeschedule/models.go b/sdk/resourcemanager/computeschedule/armcomputeschedule/models.go index 7e02e6fe636a..9243c816b658 100644 --- a/sdk/resourcemanager/computeschedule/armcomputeschedule/models.go +++ b/sdk/resourcemanager/computeschedule/armcomputeschedule/models.go @@ -244,12 +244,12 @@ type Occurrence struct { // The resource-specific properties for this resource. Properties *OccurrenceProperties - // READ-ONLY; The name of the Occurrence - Name *string - // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string + // READ-ONLY; The name of the resource + Name *string + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData @@ -284,12 +284,12 @@ type OccurrenceExtensionResource struct { // The resource-specific properties for this resource. Properties *OccurrenceExtensionProperties - // READ-ONLY; The name of the OccurrenceProperties - Name *string - // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string + // READ-ONLY; The name of the resource + Name *string + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData @@ -655,12 +655,12 @@ type ScheduledAction struct { // Resource tags. Tags map[string]*string - // READ-ONLY; The name of the ScheduledAction - Name *string - // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string + // READ-ONLY; The name of the resource + Name *string + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData @@ -726,14 +726,14 @@ type ScheduledActionResource struct { // ScheduledActionResources - The scheduled action extension type ScheduledActionResources struct { // The resource-specific properties for this resource. - Properties *ScheduledActionProperties - - // READ-ONLY; The name of the ScheduledActionResources - Name *string + Properties *ScheduledActionsExtensionProperties // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string + // READ-ONLY; The name of the resource + Name *string + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData @@ -783,6 +783,37 @@ type ScheduledActionUpdateProperties struct { StartTime *time.Time } +// ScheduledActionsExtensionProperties - Scheduled action extension properties +type ScheduledActionsExtensionProperties struct { + // REQUIRED; The action the scheduled action should perform in the resources + ActionType *ScheduledActionType + + // REQUIRED; The notification settings for the scheduled action + NotificationSettings []*NotificationProperties + + // REQUIRED; The type of resource the scheduled action is targeting + ResourceType *ResourceType + + // REQUIRED; The schedule the scheduled action is supposed to follow + Schedule *ScheduledActionsSchedule + + // REQUIRED; The time which the scheduled action is supposed to start running + StartTime *time.Time + + // Tell if the scheduled action is disabled or not + Disabled *bool + + // The time when the scheduled action is supposed to stop scheduling + EndTime *time.Time + + // READ-ONLY; The status of the last provisioning operation performed on the resource. + ProvisioningState *ProvisioningState + + // READ-ONLY; The notification settings for the scheduled action at a resource level. Resource level notification settings + // are scope to specific resources only and submitted through attach requests. + ResourceNotificationSettings []*NotificationProperties +} + // ScheduledActionsSchedule - Specify the schedule in which the scheduled action is supposed to follow type ScheduledActionsSchedule struct { // REQUIRED; The days of the month the scheduled action is supposed to run on. If empty, it means it will run on every day diff --git a/sdk/resourcemanager/computeschedule/armcomputeschedule/models_serde.go b/sdk/resourcemanager/computeschedule/armcomputeschedule/models_serde.go index 8a3729f76a4c..c60f8c08be60 100644 --- a/sdk/resourcemanager/computeschedule/armcomputeschedule/models_serde.go +++ b/sdk/resourcemanager/computeschedule/armcomputeschedule/models_serde.go @@ -2106,6 +2106,65 @@ func (s *ScheduledActionUpdateProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ScheduledActionsExtensionProperties. +func (s ScheduledActionsExtensionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "actionType", s.ActionType) + populate(objectMap, "disabled", s.Disabled) + populateDateTimeRFC3339(objectMap, "endTime", s.EndTime) + populate(objectMap, "notificationSettings", s.NotificationSettings) + populate(objectMap, "provisioningState", s.ProvisioningState) + populate(objectMap, "resourceNotificationSettings", s.ResourceNotificationSettings) + populate(objectMap, "resourceType", s.ResourceType) + populate(objectMap, "schedule", s.Schedule) + populateDateTimeRFC3339(objectMap, "startTime", s.StartTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScheduledActionsExtensionProperties. +func (s *ScheduledActionsExtensionProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "actionType": + err = unpopulate(val, "ActionType", &s.ActionType) + delete(rawMsg, key) + case "disabled": + err = unpopulate(val, "Disabled", &s.Disabled) + delete(rawMsg, key) + case "endTime": + err = unpopulateDateTimeRFC3339(val, "EndTime", &s.EndTime) + delete(rawMsg, key) + case "notificationSettings": + err = unpopulate(val, "NotificationSettings", &s.NotificationSettings) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) + delete(rawMsg, key) + case "resourceNotificationSettings": + err = unpopulate(val, "ResourceNotificationSettings", &s.ResourceNotificationSettings) + delete(rawMsg, key) + case "resourceType": + err = unpopulate(val, "ResourceType", &s.ResourceType) + delete(rawMsg, key) + case "schedule": + err = unpopulate(val, "Schedule", &s.Schedule) + delete(rawMsg, key) + case "startTime": + err = unpopulateDateTimeRFC3339(val, "StartTime", &s.StartTime) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ScheduledActionsSchedule. func (s ScheduledActionsSchedule) MarshalJSON() ([]byte, error) { objectMap := make(map[string]any) diff --git a/sdk/resourcemanager/computeschedule/armcomputeschedule/scheduledactionextension_client_example_test.go b/sdk/resourcemanager/computeschedule/armcomputeschedule/scheduledactionextension_client_example_test.go index 7a345a42b16b..402a26a53d2c 100644 --- a/sdk/resourcemanager/computeschedule/armcomputeschedule/scheduledactionextension_client_example_test.go +++ b/sdk/resourcemanager/computeschedule/armcomputeschedule/scheduledactionextension_client_example_test.go @@ -37,7 +37,7 @@ func ExampleScheduledActionExtensionClient_NewListByVMsPager_scheduledActionExte // ScheduledActionResourcesListResult: armcomputeschedule.ScheduledActionResourcesListResult{ // Value: []*armcomputeschedule.ScheduledActionResources{ // { - // Properties: &armcomputeschedule.ScheduledActionProperties{ + // Properties: &armcomputeschedule.ScheduledActionsExtensionProperties{ // 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}()), @@ -73,6 +73,14 @@ func ExampleScheduledActionExtensionClient_NewListByVMsPager_scheduledActionExte // }, // Disabled: to.Ptr(true), // ProvisioningState: to.Ptr(armcomputeschedule.ProvisioningStateSucceeded), + // ResourceNotificationSettings: []*armcomputeschedule.NotificationProperties{ + // { + // Destination: to.Ptr("hjnstepnzzdg"), + // Type: to.Ptr(armcomputeschedule.NotificationTypeEmail), + // Language: to.Ptr(armcomputeschedule.LanguageEnUs), + // Disabled: to.Ptr(true), + // }, + // }, // }, // ID: to.Ptr("/subscriptions/83C27AB3-A7B9-498B-B165-D9440661474F/resourceGroups/myRg/providers/Microsoft.ComputeSchedule/scheduledActions/myScheduledAction"), // Name: to.Ptr("lktvylsmyrhgllrxisfdeqd"), @@ -119,7 +127,7 @@ func ExampleScheduledActionExtensionClient_NewListByVMsPager_scheduledActionExte // ScheduledActionResourcesListResult: armcomputeschedule.ScheduledActionResourcesListResult{ // Value: []*armcomputeschedule.ScheduledActionResources{ // { - // Properties: &armcomputeschedule.ScheduledActionProperties{ + // Properties: &armcomputeschedule.ScheduledActionsExtensionProperties{ // 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}()), diff --git a/sdk/resourcemanager/computeschedule/armcomputeschedule/scheduledactions_client.go b/sdk/resourcemanager/computeschedule/armcomputeschedule/scheduledactions_client.go index 7659e9c0fac1..c48960d418e5 100644 --- a/sdk/resourcemanager/computeschedule/armcomputeschedule/scheduledactions_client.go +++ b/sdk/resourcemanager/computeschedule/armcomputeschedule/scheduledactions_client.go @@ -332,7 +332,6 @@ func (client *ScheduledActionsClient) deleteCreateRequest(ctx context.Context, r reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2025-04-15-preview") req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -457,7 +456,6 @@ func (client *ScheduledActionsClient) disableCreateRequest(ctx context.Context, reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2025-04-15-preview") req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } @@ -511,7 +509,6 @@ func (client *ScheduledActionsClient) enableCreateRequest(ctx context.Context, r reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2025-04-15-preview") req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } diff --git a/sdk/resourcemanager/computeschedule/armcomputeschedule/testdata/_metadata.json b/sdk/resourcemanager/computeschedule/armcomputeschedule/testdata/_metadata.json index 26b382c92690..a4f4781309e2 100644 --- a/sdk/resourcemanager/computeschedule/armcomputeschedule/testdata/_metadata.json +++ b/sdk/resourcemanager/computeschedule/armcomputeschedule/testdata/_metadata.json @@ -1,4 +1,4 @@ { "apiVersion": "2025-04-15-preview", - "emitterVersion": "0.7.0" + "emitterVersion": "0.8.2" } \ No newline at end of file diff --git a/sdk/resourcemanager/computeschedule/armcomputeschedule/tsp-location.yaml b/sdk/resourcemanager/computeschedule/armcomputeschedule/tsp-location.yaml index 775aaa31ef82..2f458a5ed24c 100644 --- a/sdk/resourcemanager/computeschedule/armcomputeschedule/tsp-location.yaml +++ b/sdk/resourcemanager/computeschedule/armcomputeschedule/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/computeschedule/ComputeSchedule.Management -commit: 0a8628b33f8e51b56304d616b8b50be6fa158fb3 +commit: ed62b71c0a8fa0be08e971fe21ba0ca43d548d31 repo: Azure/azure-rest-api-specs additionalDirectories: