build(deps): bump the go-deps group across 1 directory with 14 updates

Bumps the go-deps group with 11 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [cloud.google.com/go/compute](https://github.com/googleapis/google-cloud-go) | `1.25.1` | `1.26.0` |
| [github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://github.com/Azure/azure-sdk-for-go) | `1.5.1` | `1.5.2` |
| [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5](https://github.com/Azure/azure-sdk-for-go) | `5.5.0` | `5.7.0` |
| [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) | `1.51.25` | `1.52.0` |
| [github.com/getsentry/sentry-go](https://github.com/getsentry/sentry-go) | `0.26.0` | `0.27.0` |
| [github.com/gophercloud/gophercloud](https://github.com/gophercloud/gophercloud) | `1.10.0` | `1.11.0` |
| [github.com/jackc/pgtype](https://github.com/jackc/pgtype) | `1.14.1` | `1.14.3` |
| [github.com/labstack/echo/v4](https://github.com/labstack/echo) | `4.11.4` | `4.12.0` |
| [github.com/openshift-online/ocm-sdk-go](https://github.com/openshift-online/ocm-sdk-go) | `0.1.398` | `0.1.418` |
| [github.com/osbuild/images](https://github.com/osbuild/images) | `0.56.0` | `0.58.0` |
| [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) | `1.18.0` | `1.19.0` |



Updates `cloud.google.com/go/compute` from 1.25.1 to 1.26.0
- [Release notes](https://github.com/googleapis/google-cloud-go/releases)
- [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/documentai/CHANGES.md)
- [Commits](https://github.com/googleapis/google-cloud-go/compare/pubsub/v1.25.1...pubsub/v1.26.0)

Updates `github.com/Azure/azure-sdk-for-go/sdk/azidentity` from 1.5.1 to 1.5.2
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/internal/v1.5.1...sdk/internal/v1.5.2)

Updates `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5` from 5.5.0 to 5.7.0
- [Release notes](https://github.com/Azure/azure-sdk-for-go/releases)
- [Changelog](https://github.com/Azure/azure-sdk-for-go/blob/main/documentation/release.md)
- [Commits](https://github.com/Azure/azure-sdk-for-go/compare/sdk/resourcemanager/compute/armcompute/v5.5.0...sdk/resourcemanager/compute/armcompute/v5.7.0)

Updates `github.com/aws/aws-sdk-go` from 1.51.25 to 1.52.0
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.51.25...v1.52.0)

Updates `github.com/getsentry/sentry-go` from 0.26.0 to 0.27.0
- [Release notes](https://github.com/getsentry/sentry-go/releases)
- [Changelog](https://github.com/getsentry/sentry-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-go/compare/v0.26.0...v0.27.0)

Updates `github.com/gophercloud/gophercloud` from 1.10.0 to 1.11.0
- [Release notes](https://github.com/gophercloud/gophercloud/releases)
- [Changelog](https://github.com/gophercloud/gophercloud/blob/v1.11.0/CHANGELOG.md)
- [Commits](https://github.com/gophercloud/gophercloud/compare/v1.10.0...v1.11.0)

Updates `github.com/jackc/pgtype` from 1.14.1 to 1.14.3
- [Changelog](https://github.com/jackc/pgtype/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgtype/compare/v1.14.1...v1.14.3)

Updates `github.com/jackc/pgx/v4` from 4.18.1 to 4.18.2
- [Changelog](https://github.com/jackc/pgx/blob/v4.18.2/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v4.18.1...v4.18.2)

Updates `github.com/labstack/echo/v4` from 4.11.4 to 4.12.0
- [Release notes](https://github.com/labstack/echo/releases)
- [Changelog](https://github.com/labstack/echo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/labstack/echo/compare/v4.11.4...v4.12.0)

Updates `github.com/openshift-online/ocm-sdk-go` from 0.1.398 to 0.1.418
- [Release notes](https://github.com/openshift-online/ocm-sdk-go/releases)
- [Changelog](https://github.com/openshift-online/ocm-sdk-go/blob/main/CHANGES.md)
- [Commits](https://github.com/openshift-online/ocm-sdk-go/compare/v0.1.398...v0.1.418)

Updates `github.com/osbuild/images` from 0.56.0 to 0.58.0
- [Release notes](https://github.com/osbuild/images/releases)
- [Commits](https://github.com/osbuild/images/compare/v0.56.0...v0.58.0)

Updates `github.com/prometheus/client_golang` from 1.18.0 to 1.19.0
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prometheus/client_golang/compare/v1.18.0...v1.19.0)

Updates `golang.org/x/sync` from 0.6.0 to 0.7.0
- [Commits](https://github.com/golang/sync/compare/v0.6.0...v0.7.0)

Updates `google.golang.org/api` from 0.175.0 to 0.177.0
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.175.0...v0.177.0)

---
updated-dependencies:
- dependency-name: cloud.google.com/go/compute
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/azidentity
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-deps
- dependency-name: github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: github.com/getsentry/sentry-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: github.com/gophercloud/gophercloud
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: github.com/jackc/pgtype
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-deps
- dependency-name: github.com/jackc/pgx/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-deps
- dependency-name: github.com/labstack/echo/v4
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: github.com/openshift-online/ocm-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: go-deps
- dependency-name: github.com/osbuild/images
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-deps
...

Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
dependabot[bot] 2024-05-02 04:46:13 +00:00 committed by Achilleas Koutsou
parent 49566b7ce4
commit 9193f3eebc
285 changed files with 70293 additions and 63914 deletions

View file

@ -1,5 +1,14 @@
# Release History
## 1.5.2 (2024-04-09)
### Bugs Fixed
* `ManagedIdentityCredential` now specifies resource IDs correctly for Azure Container Instances
### Other Changes
* Restored v1.4.0 error behavior for empty tenant IDs
* Upgraded dependencies
## 1.5.1 (2024-01-17)
### Bugs Fixed

View file

@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "go",
"TagPrefix": "go/azidentity",
"Tag": "go/azidentity_db4a26f583"
"Tag": "go/azidentity_98074050dc"
}

View file

@ -121,6 +121,9 @@ func alphanumeric(r rune) bool {
}
func validTenantID(tenantID string) bool {
if len(tenantID) < 1 {
return false
}
for _, r := range tenantID {
if !(alphanumeric(r) || r == '.' || r == '-') {
return false

View file

@ -3,8 +3,6 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.0-beta.1/go.mod h1:3Ug6Qzto9an
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.0 h1:fb8kj/Dh4CSwgsOzHeZY4Xh68cFVbzXx+ONXGMY//4w=
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.9.0/go.mod h1:uReU2sSxZExRPBAg3qKzmAucSi51+SP1OhohieR821Q=
github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0/go.mod h1:okt5dMMTOFjX/aovMlrjvvXoPMBVSPzk9185BT0+eZM=
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.1 h1:DzHpqpoJVaCgOUdVHxE8QB52S6NiVdDQvGlny1qvPqA=
github.com/AzureAD/microsoft-authentication-library-for-go v1.2.1/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
@ -14,6 +12,7 @@ github.com/montanaflynn/stats v0.7.0/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
@ -23,6 +22,8 @@ golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY=
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
@ -33,6 +34,7 @@ golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU=
golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU=
golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U=
golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0=
golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58=
golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=

View file

@ -34,14 +34,14 @@ const (
identityServerThumbprint = "IDENTITY_SERVER_THUMBPRINT"
headerMetadata = "Metadata"
imdsEndpoint = "http://169.254.169.254/metadata/identity/oauth2/token"
miResID = "mi_res_id"
msiEndpoint = "MSI_ENDPOINT"
msiResID = "msi_res_id"
msiSecret = "MSI_SECRET"
imdsAPIVersion = "2018-02-01"
azureArcAPIVersion = "2019-08-15"
qpClientID = "client_id"
serviceFabricAPIVersion = "2019-07-01-preview"
qpClientID = "client_id"
qpResID = "mi_res_id"
)
type msiType int
@ -286,7 +286,7 @@ func (c *managedIdentityClient) createIMDSAuthRequest(ctx context.Context, id Ma
q.Add("resource", strings.Join(scopes, " "))
if id != nil {
if id.idKind() == miResourceID {
q.Add(qpResID, id.String())
q.Add(msiResID, id.String())
} else {
q.Add(qpClientID, id.String())
}
@ -306,7 +306,7 @@ func (c *managedIdentityClient) createAppServiceAuthRequest(ctx context.Context,
q.Add("resource", scopes[0])
if id != nil {
if id.idKind() == miResourceID {
q.Add(qpResID, id.String())
q.Add(miResID, id.String())
} else {
q.Add(qpClientID, id.String())
}
@ -329,7 +329,7 @@ func (c *managedIdentityClient) createAzureMLAuthRequest(ctx context.Context, id
if id.idKind() == miResourceID {
log.Write(EventAuthentication, "WARNING: Azure ML doesn't support specifying a managed identity by resource ID")
q.Set("clientid", "")
q.Set(qpResID, id.String())
q.Set(miResID, id.String())
} else {
q.Set("clientid", id.String())
}
@ -351,7 +351,7 @@ func (c *managedIdentityClient) createServiceFabricAuthRequest(ctx context.Conte
if id != nil {
log.Write(EventAuthentication, "WARNING: Service Fabric doesn't support selecting a user-assigned identity at runtime")
if id.idKind() == miResourceID {
q.Add(qpResID, id.String())
q.Add(miResID, id.String())
} else {
q.Add(qpClientID, id.String())
}
@ -411,7 +411,7 @@ func (c *managedIdentityClient) createAzureArcAuthRequest(ctx context.Context, i
if id != nil {
log.Write(EventAuthentication, "WARNING: Azure Arc doesn't support user-assigned managed identities")
if id.idKind() == miResourceID {
q.Add(qpResID, id.String())
q.Add(miResID, id.String())
} else {
q.Add(qpClientID, id.String())
}
@ -437,7 +437,7 @@ func (c *managedIdentityClient) createCloudShellAuthRequest(ctx context.Context,
log.Write(EventAuthentication, "WARNING: Cloud Shell doesn't support user-assigned managed identities")
q := request.Raw().URL.Query()
if id.idKind() == miResourceID {
q.Add(qpResID, id.String())
q.Add(miResID, id.String())
} else {
q.Add(qpClientID, id.String())
}

View file

@ -14,5 +14,5 @@ const (
module = "github.com/Azure/azure-sdk-for-go/sdk/" + component
// Version is the semantic version (see http://semver.org) of this module.
version = "v1.5.1"
version = "v1.5.2"
)

View file

@ -1,5 +1,32 @@
# Release History
## 5.7.0 (2024-04-26)
### Features Added
- New value `DiffDiskPlacementNvmeDisk` added to enum type `DiffDiskPlacement`
- New value `DiskCreateOptionTypesCopy`, `DiskCreateOptionTypesRestore` added to enum type `DiskCreateOptionTypes`
- New enum type `ResourceIDOptionsForGetCapacityReservationGroups` with values `ResourceIDOptionsForGetCapacityReservationGroupsAll`, `ResourceIDOptionsForGetCapacityReservationGroupsCreatedInSubscription`, `ResourceIDOptionsForGetCapacityReservationGroupsSharedWithSubscription`
- New struct `EventGridAndResourceGraph`
- New struct `ScheduledEventsAdditionalPublishingTargets`
- New struct `ScheduledEventsPolicy`
- New struct `UserInitiatedReboot`
- New struct `UserInitiatedRedeploy`
- New field `ResourceIDsOnly` in struct `CapacityReservationGroupsClientListBySubscriptionOptions`
- New field `SourceResource` in struct `DataDisk`
- New field `Caching`, `DeleteOption`, `DiskEncryptionSet`, `WriteAcceleratorEnabled` in struct `DataDisksToAttach`
- New field `ScheduledEventsPolicy` in struct `VirtualMachineProperties`
- New field `ScheduledEventsPolicy` in struct `VirtualMachineScaleSetProperties`
- New field `ForceUpdateOSDiskForEphemeral` in struct `VirtualMachineScaleSetReimageParameters`
- New field `DiffDiskSettings` in struct `VirtualMachineScaleSetUpdateOSDisk`
- New field `ForceUpdateOSDiskForEphemeral` in struct `VirtualMachineScaleSetVMReimageParameters`
## 5.6.0 (2024-03-22)
### Features Added
- New field `VirtualMachineID` in struct `GalleryArtifactVersionFullSource`
## 5.5.0 (2024-01-26)
### Features Added

View file

@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "go",
"TagPrefix": "go/resourcemanager/compute/armcompute",
"Tag": "go/resourcemanager/compute/armcompute_444bc7d3bc"
"Tag": "go/resourcemanager/compute/armcompute_6e7bd6d107"
}

View file

@ -5,9 +5,9 @@
``` yaml
azure-arm: true
require:
- https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/compute/resource-manager/readme.md
- https://github.com/Azure/azure-rest-api-specs/blob/41e4538ed7bb3ceac3c1322c9455a0812ed110ac/specification/compute/resource-manager/readme.go.md
- https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/compute/resource-manager/readme.md
- https://github.com/Azure/azure-rest-api-specs/blob/92de53a5f1e0e03c94b40475d2135d97148ed014/specification/compute/resource-manager/readme.go.md
license-header: MICROSOFT_MIT_NO_VERSION
module-version: 5.5.0
tag: package-2023-10-02
module-version: 5.7.0
tag: package-2024-03-01
```

View file

@ -47,7 +47,7 @@ func NewAvailabilitySetsClient(subscriptionID string, credential azcore.TokenCre
// CreateOrUpdate - Create or update an availability set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - availabilitySetName - The name of the availability set.
// - parameters - Parameters supplied to the Create Availability Set operation.
@ -95,7 +95,7 @@ func (client *AvailabilitySetsClient) createOrUpdateCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -116,7 +116,7 @@ func (client *AvailabilitySetsClient) createOrUpdateHandleResponse(resp *http.Re
// Delete - Delete an availability set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - availabilitySetName - The name of the availability set.
// - options - AvailabilitySetsClientDeleteOptions contains the optional parameters for the AvailabilitySetsClient.Delete method.
@ -161,7 +161,7 @@ func (client *AvailabilitySetsClient) deleteCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -170,7 +170,7 @@ func (client *AvailabilitySetsClient) deleteCreateRequest(ctx context.Context, r
// Get - Retrieves information about an availability set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - availabilitySetName - The name of the availability set.
// - options - AvailabilitySetsClientGetOptions contains the optional parameters for the AvailabilitySetsClient.Get method.
@ -216,7 +216,7 @@ func (client *AvailabilitySetsClient) getCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -233,7 +233,7 @@ func (client *AvailabilitySetsClient) getHandleResponse(resp *http.Response) (Av
// NewListPager - Lists all availability sets in a resource group.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - AvailabilitySetsClientListOptions contains the optional parameters for the AvailabilitySetsClient.NewListPager
// method.
@ -276,7 +276,7 @@ func (client *AvailabilitySetsClient) listCreateRequest(ctx context.Context, res
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -294,7 +294,7 @@ func (client *AvailabilitySetsClient) listHandleResponse(resp *http.Response) (A
// NewListAvailableSizesPager - Lists all available virtual machine sizes that can be used to create a new virtual machine
// in an existing availability set.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - availabilitySetName - The name of the availability set.
// - options - AvailabilitySetsClientListAvailableSizesOptions contains the optional parameters for the AvailabilitySetsClient.NewListAvailableSizesPager
@ -343,7 +343,7 @@ func (client *AvailabilitySetsClient) listAvailableSizesCreateRequest(ctx contex
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -360,7 +360,7 @@ func (client *AvailabilitySetsClient) listAvailableSizesHandleResponse(resp *htt
// NewListBySubscriptionPager - Lists all availability sets in a subscription.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - options - AvailabilitySetsClientListBySubscriptionOptions contains the optional parameters for the AvailabilitySetsClient.NewListBySubscriptionPager
// method.
func (client *AvailabilitySetsClient) NewListBySubscriptionPager(options *AvailabilitySetsClientListBySubscriptionOptions) *runtime.Pager[AvailabilitySetsClientListBySubscriptionResponse] {
@ -398,10 +398,10 @@ func (client *AvailabilitySetsClient) listBySubscriptionCreateRequest(ctx contex
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -419,7 +419,7 @@ func (client *AvailabilitySetsClient) listBySubscriptionHandleResponse(resp *htt
// Update - Update an availability set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - availabilitySetName - The name of the availability set.
// - parameters - Parameters supplied to the Update Availability Set operation.
@ -466,7 +466,7 @@ func (client *AvailabilitySetsClient) updateCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {

View file

@ -49,7 +49,7 @@ func NewCapacityReservationGroupsClient(subscriptionID string, credential azcore
// https://aka.ms/CapacityReservation for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - parameters - Parameters supplied to the Create capacity reservation Group.
@ -97,7 +97,7 @@ func (client *CapacityReservationGroupsClient) createOrUpdateCreateRequest(ctx c
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -120,7 +120,7 @@ func (client *CapacityReservationGroupsClient) createOrUpdateHandleResponse(resp
// the reservation group have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - options - CapacityReservationGroupsClientDeleteOptions contains the optional parameters for the CapacityReservationGroupsClient.Delete
@ -166,7 +166,7 @@ func (client *CapacityReservationGroupsClient) deleteCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -175,7 +175,7 @@ func (client *CapacityReservationGroupsClient) deleteCreateRequest(ctx context.C
// Get - The operation that retrieves information about a capacity reservation group.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - options - CapacityReservationGroupsClientGetOptions contains the optional parameters for the CapacityReservationGroupsClient.Get
@ -225,7 +225,7 @@ func (client *CapacityReservationGroupsClient) getCreateRequest(ctx context.Cont
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -243,7 +243,7 @@ func (client *CapacityReservationGroupsClient) getHandleResponse(resp *http.Resp
// NewListByResourceGroupPager - Lists all of the capacity reservation groups in the specified resource group. Use the nextLink
// property in the response to get the next page of capacity reservation groups.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - CapacityReservationGroupsClientListByResourceGroupOptions contains the optional parameters for the CapacityReservationGroupsClient.NewListByResourceGroupPager
// method.
@ -286,10 +286,10 @@ func (client *CapacityReservationGroupsClient) listByResourceGroupCreateRequest(
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -307,7 +307,7 @@ func (client *CapacityReservationGroupsClient) listByResourceGroupHandleResponse
// NewListBySubscriptionPager - Lists all of the capacity reservation groups in the subscription. Use the nextLink property
// in the response to get the next page of capacity reservation groups.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - options - CapacityReservationGroupsClientListBySubscriptionOptions contains the optional parameters for the CapacityReservationGroupsClient.NewListBySubscriptionPager
// method.
func (client *CapacityReservationGroupsClient) NewListBySubscriptionPager(options *CapacityReservationGroupsClientListBySubscriptionOptions) *runtime.Pager[CapacityReservationGroupsClientListBySubscriptionResponse] {
@ -345,10 +345,13 @@ func (client *CapacityReservationGroupsClient) listBySubscriptionCreateRequest(c
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.ResourceIDsOnly != nil {
reqQP.Set("resourceIdsOnly", string(*options.ResourceIDsOnly))
}
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -367,7 +370,7 @@ func (client *CapacityReservationGroupsClient) listBySubscriptionHandleResponse(
// sharing profile may be modified.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - parameters - Parameters supplied to the Update capacity reservation Group operation.
@ -415,7 +418,7 @@ func (client *CapacityReservationGroupsClient) updateCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {

View file

@ -49,7 +49,7 @@ func NewCapacityReservationsClient(subscriptionID string, credential azcore.Toke
// details.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - capacityReservationName - The name of the capacity reservation.
@ -78,7 +78,7 @@ func (client *CapacityReservationsClient) BeginCreateOrUpdate(ctx context.Contex
// details.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *CapacityReservationsClient) createOrUpdate(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, parameters CapacityReservation, options *CapacityReservationsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "CapacityReservationsClient.BeginCreateOrUpdate"
@ -124,7 +124,7 @@ func (client *CapacityReservationsClient) createOrUpdateCreateRequest(ctx contex
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -138,7 +138,7 @@ func (client *CapacityReservationsClient) createOrUpdateCreateRequest(ctx contex
// https://aka.ms/CapacityReservation for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - capacityReservationName - The name of the capacity reservation.
@ -166,7 +166,7 @@ func (client *CapacityReservationsClient) BeginDelete(ctx context.Context, resou
// https://aka.ms/CapacityReservation for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *CapacityReservationsClient) deleteOperation(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, options *CapacityReservationsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "CapacityReservationsClient.BeginDelete"
@ -212,7 +212,7 @@ func (client *CapacityReservationsClient) deleteCreateRequest(ctx context.Contex
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -221,7 +221,7 @@ func (client *CapacityReservationsClient) deleteCreateRequest(ctx context.Contex
// Get - The operation that retrieves information about the capacity reservation.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - capacityReservationName - The name of the capacity reservation.
@ -276,7 +276,7 @@ func (client *CapacityReservationsClient) getCreateRequest(ctx context.Context,
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -294,7 +294,7 @@ func (client *CapacityReservationsClient) getHandleResponse(resp *http.Response)
// NewListByCapacityReservationGroupPager - Lists all of the capacity reservations in the specified capacity reservation group.
// Use the nextLink property in the response to get the next page of capacity reservations.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - options - CapacityReservationsClientListByCapacityReservationGroupOptions contains the optional parameters for the CapacityReservationsClient.NewListByCapacityReservationGroupPager
@ -342,7 +342,7 @@ func (client *CapacityReservationsClient) listByCapacityReservationGroupCreateRe
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -360,7 +360,7 @@ func (client *CapacityReservationsClient) listByCapacityReservationGroupHandleRe
// BeginUpdate - The operation to update a capacity reservation.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - capacityReservationGroupName - The name of the capacity reservation group.
// - capacityReservationName - The name of the capacity reservation.
@ -387,7 +387,7 @@ func (client *CapacityReservationsClient) BeginUpdate(ctx context.Context, resou
// Update - The operation to update a capacity reservation.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *CapacityReservationsClient) update(ctx context.Context, resourceGroupName string, capacityReservationGroupName string, capacityReservationName string, parameters CapacityReservationUpdate, options *CapacityReservationsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "CapacityReservationsClient.BeginUpdate"
@ -433,7 +433,7 @@ func (client *CapacityReservationsClient) updateCreateRequest(ctx context.Contex
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {

View file

@ -21,8 +21,8 @@ pr:
include:
- sdk/resourcemanager/compute/armcompute/
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
extends:
template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/compute/armcompute'

View file

@ -17,8 +17,7 @@ import (
// Don't use this type directly, use NewClientFactory instead.
type ClientFactory struct {
subscriptionID string
credential azcore.TokenCredential
options *arm.ClientOptions
internal *arm.Client
}
// NewClientFactory creates a new instance of ClientFactory with the specified values.
@ -28,306 +27,403 @@ type ClientFactory struct {
// - credential - used to authorize requests. Usually a credential from azidentity.
// - options - pass nil to accept the default values.
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error) {
_, err := arm.NewClient(moduleName, moduleVersion, credential, options)
internal, err := arm.NewClient(moduleName, moduleVersion, credential, options)
if err != nil {
return nil, err
}
return &ClientFactory{
subscriptionID: subscriptionID, credential: credential,
options: options.Clone(),
subscriptionID: subscriptionID,
internal: internal,
}, nil
}
// NewAvailabilitySetsClient creates a new instance of AvailabilitySetsClient.
func (c *ClientFactory) NewAvailabilitySetsClient() *AvailabilitySetsClient {
subClient, _ := NewAvailabilitySetsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &AvailabilitySetsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewCapacityReservationGroupsClient creates a new instance of CapacityReservationGroupsClient.
func (c *ClientFactory) NewCapacityReservationGroupsClient() *CapacityReservationGroupsClient {
subClient, _ := NewCapacityReservationGroupsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &CapacityReservationGroupsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewCapacityReservationsClient creates a new instance of CapacityReservationsClient.
func (c *ClientFactory) NewCapacityReservationsClient() *CapacityReservationsClient {
subClient, _ := NewCapacityReservationsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &CapacityReservationsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewCloudServiceOperatingSystemsClient creates a new instance of CloudServiceOperatingSystemsClient.
func (c *ClientFactory) NewCloudServiceOperatingSystemsClient() *CloudServiceOperatingSystemsClient {
subClient, _ := NewCloudServiceOperatingSystemsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &CloudServiceOperatingSystemsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewCloudServiceRoleInstancesClient creates a new instance of CloudServiceRoleInstancesClient.
func (c *ClientFactory) NewCloudServiceRoleInstancesClient() *CloudServiceRoleInstancesClient {
subClient, _ := NewCloudServiceRoleInstancesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &CloudServiceRoleInstancesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewCloudServiceRolesClient creates a new instance of CloudServiceRolesClient.
func (c *ClientFactory) NewCloudServiceRolesClient() *CloudServiceRolesClient {
subClient, _ := NewCloudServiceRolesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &CloudServiceRolesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewCloudServicesClient creates a new instance of CloudServicesClient.
func (c *ClientFactory) NewCloudServicesClient() *CloudServicesClient {
subClient, _ := NewCloudServicesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &CloudServicesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewCloudServicesUpdateDomainClient creates a new instance of CloudServicesUpdateDomainClient.
func (c *ClientFactory) NewCloudServicesUpdateDomainClient() *CloudServicesUpdateDomainClient {
subClient, _ := NewCloudServicesUpdateDomainClient(c.subscriptionID, c.credential, c.options)
return subClient
return &CloudServicesUpdateDomainClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewCommunityGalleriesClient creates a new instance of CommunityGalleriesClient.
func (c *ClientFactory) NewCommunityGalleriesClient() *CommunityGalleriesClient {
subClient, _ := NewCommunityGalleriesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &CommunityGalleriesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewCommunityGalleryImageVersionsClient creates a new instance of CommunityGalleryImageVersionsClient.
func (c *ClientFactory) NewCommunityGalleryImageVersionsClient() *CommunityGalleryImageVersionsClient {
subClient, _ := NewCommunityGalleryImageVersionsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &CommunityGalleryImageVersionsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewCommunityGalleryImagesClient creates a new instance of CommunityGalleryImagesClient.
func (c *ClientFactory) NewCommunityGalleryImagesClient() *CommunityGalleryImagesClient {
subClient, _ := NewCommunityGalleryImagesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &CommunityGalleryImagesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewDedicatedHostGroupsClient creates a new instance of DedicatedHostGroupsClient.
func (c *ClientFactory) NewDedicatedHostGroupsClient() *DedicatedHostGroupsClient {
subClient, _ := NewDedicatedHostGroupsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &DedicatedHostGroupsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewDedicatedHostsClient creates a new instance of DedicatedHostsClient.
func (c *ClientFactory) NewDedicatedHostsClient() *DedicatedHostsClient {
subClient, _ := NewDedicatedHostsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &DedicatedHostsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewDiskAccessesClient creates a new instance of DiskAccessesClient.
func (c *ClientFactory) NewDiskAccessesClient() *DiskAccessesClient {
subClient, _ := NewDiskAccessesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &DiskAccessesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewDiskEncryptionSetsClient creates a new instance of DiskEncryptionSetsClient.
func (c *ClientFactory) NewDiskEncryptionSetsClient() *DiskEncryptionSetsClient {
subClient, _ := NewDiskEncryptionSetsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &DiskEncryptionSetsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewDiskRestorePointClient creates a new instance of DiskRestorePointClient.
func (c *ClientFactory) NewDiskRestorePointClient() *DiskRestorePointClient {
subClient, _ := NewDiskRestorePointClient(c.subscriptionID, c.credential, c.options)
return subClient
return &DiskRestorePointClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewDisksClient creates a new instance of DisksClient.
func (c *ClientFactory) NewDisksClient() *DisksClient {
subClient, _ := NewDisksClient(c.subscriptionID, c.credential, c.options)
return subClient
return &DisksClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewGalleriesClient creates a new instance of GalleriesClient.
func (c *ClientFactory) NewGalleriesClient() *GalleriesClient {
subClient, _ := NewGalleriesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &GalleriesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewGalleryApplicationVersionsClient creates a new instance of GalleryApplicationVersionsClient.
func (c *ClientFactory) NewGalleryApplicationVersionsClient() *GalleryApplicationVersionsClient {
subClient, _ := NewGalleryApplicationVersionsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &GalleryApplicationVersionsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewGalleryApplicationsClient creates a new instance of GalleryApplicationsClient.
func (c *ClientFactory) NewGalleryApplicationsClient() *GalleryApplicationsClient {
subClient, _ := NewGalleryApplicationsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &GalleryApplicationsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewGalleryImageVersionsClient creates a new instance of GalleryImageVersionsClient.
func (c *ClientFactory) NewGalleryImageVersionsClient() *GalleryImageVersionsClient {
subClient, _ := NewGalleryImageVersionsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &GalleryImageVersionsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewGalleryImagesClient creates a new instance of GalleryImagesClient.
func (c *ClientFactory) NewGalleryImagesClient() *GalleryImagesClient {
subClient, _ := NewGalleryImagesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &GalleryImagesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewGallerySharingProfileClient creates a new instance of GallerySharingProfileClient.
func (c *ClientFactory) NewGallerySharingProfileClient() *GallerySharingProfileClient {
subClient, _ := NewGallerySharingProfileClient(c.subscriptionID, c.credential, c.options)
return subClient
return &GallerySharingProfileClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewImagesClient creates a new instance of ImagesClient.
func (c *ClientFactory) NewImagesClient() *ImagesClient {
subClient, _ := NewImagesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &ImagesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewLogAnalyticsClient creates a new instance of LogAnalyticsClient.
func (c *ClientFactory) NewLogAnalyticsClient() *LogAnalyticsClient {
subClient, _ := NewLogAnalyticsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &LogAnalyticsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewOperationsClient creates a new instance of OperationsClient.
func (c *ClientFactory) NewOperationsClient() *OperationsClient {
subClient, _ := NewOperationsClient(c.credential, c.options)
return subClient
return &OperationsClient{
internal: c.internal,
}
}
// NewProximityPlacementGroupsClient creates a new instance of ProximityPlacementGroupsClient.
func (c *ClientFactory) NewProximityPlacementGroupsClient() *ProximityPlacementGroupsClient {
subClient, _ := NewProximityPlacementGroupsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &ProximityPlacementGroupsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewResourceSKUsClient creates a new instance of ResourceSKUsClient.
func (c *ClientFactory) NewResourceSKUsClient() *ResourceSKUsClient {
subClient, _ := NewResourceSKUsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &ResourceSKUsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewRestorePointCollectionsClient creates a new instance of RestorePointCollectionsClient.
func (c *ClientFactory) NewRestorePointCollectionsClient() *RestorePointCollectionsClient {
subClient, _ := NewRestorePointCollectionsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &RestorePointCollectionsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewRestorePointsClient creates a new instance of RestorePointsClient.
func (c *ClientFactory) NewRestorePointsClient() *RestorePointsClient {
subClient, _ := NewRestorePointsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &RestorePointsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewSSHPublicKeysClient creates a new instance of SSHPublicKeysClient.
func (c *ClientFactory) NewSSHPublicKeysClient() *SSHPublicKeysClient {
subClient, _ := NewSSHPublicKeysClient(c.subscriptionID, c.credential, c.options)
return subClient
return &SSHPublicKeysClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewSharedGalleriesClient creates a new instance of SharedGalleriesClient.
func (c *ClientFactory) NewSharedGalleriesClient() *SharedGalleriesClient {
subClient, _ := NewSharedGalleriesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &SharedGalleriesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewSharedGalleryImageVersionsClient creates a new instance of SharedGalleryImageVersionsClient.
func (c *ClientFactory) NewSharedGalleryImageVersionsClient() *SharedGalleryImageVersionsClient {
subClient, _ := NewSharedGalleryImageVersionsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &SharedGalleryImageVersionsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewSharedGalleryImagesClient creates a new instance of SharedGalleryImagesClient.
func (c *ClientFactory) NewSharedGalleryImagesClient() *SharedGalleryImagesClient {
subClient, _ := NewSharedGalleryImagesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &SharedGalleryImagesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewSnapshotsClient creates a new instance of SnapshotsClient.
func (c *ClientFactory) NewSnapshotsClient() *SnapshotsClient {
subClient, _ := NewSnapshotsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &SnapshotsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewUsageClient creates a new instance of UsageClient.
func (c *ClientFactory) NewUsageClient() *UsageClient {
subClient, _ := NewUsageClient(c.subscriptionID, c.credential, c.options)
return subClient
return &UsageClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewVirtualMachineExtensionImagesClient creates a new instance of VirtualMachineExtensionImagesClient.
func (c *ClientFactory) NewVirtualMachineExtensionImagesClient() *VirtualMachineExtensionImagesClient {
subClient, _ := NewVirtualMachineExtensionImagesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &VirtualMachineExtensionImagesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewVirtualMachineExtensionsClient creates a new instance of VirtualMachineExtensionsClient.
func (c *ClientFactory) NewVirtualMachineExtensionsClient() *VirtualMachineExtensionsClient {
subClient, _ := NewVirtualMachineExtensionsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &VirtualMachineExtensionsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewVirtualMachineImagesClient creates a new instance of VirtualMachineImagesClient.
func (c *ClientFactory) NewVirtualMachineImagesClient() *VirtualMachineImagesClient {
subClient, _ := NewVirtualMachineImagesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &VirtualMachineImagesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewVirtualMachineImagesEdgeZoneClient creates a new instance of VirtualMachineImagesEdgeZoneClient.
func (c *ClientFactory) NewVirtualMachineImagesEdgeZoneClient() *VirtualMachineImagesEdgeZoneClient {
subClient, _ := NewVirtualMachineImagesEdgeZoneClient(c.subscriptionID, c.credential, c.options)
return subClient
return &VirtualMachineImagesEdgeZoneClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewVirtualMachineRunCommandsClient creates a new instance of VirtualMachineRunCommandsClient.
func (c *ClientFactory) NewVirtualMachineRunCommandsClient() *VirtualMachineRunCommandsClient {
subClient, _ := NewVirtualMachineRunCommandsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &VirtualMachineRunCommandsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewVirtualMachineScaleSetExtensionsClient creates a new instance of VirtualMachineScaleSetExtensionsClient.
func (c *ClientFactory) NewVirtualMachineScaleSetExtensionsClient() *VirtualMachineScaleSetExtensionsClient {
subClient, _ := NewVirtualMachineScaleSetExtensionsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &VirtualMachineScaleSetExtensionsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewVirtualMachineScaleSetRollingUpgradesClient creates a new instance of VirtualMachineScaleSetRollingUpgradesClient.
func (c *ClientFactory) NewVirtualMachineScaleSetRollingUpgradesClient() *VirtualMachineScaleSetRollingUpgradesClient {
subClient, _ := NewVirtualMachineScaleSetRollingUpgradesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &VirtualMachineScaleSetRollingUpgradesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewVirtualMachineScaleSetVMExtensionsClient creates a new instance of VirtualMachineScaleSetVMExtensionsClient.
func (c *ClientFactory) NewVirtualMachineScaleSetVMExtensionsClient() *VirtualMachineScaleSetVMExtensionsClient {
subClient, _ := NewVirtualMachineScaleSetVMExtensionsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &VirtualMachineScaleSetVMExtensionsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewVirtualMachineScaleSetVMRunCommandsClient creates a new instance of VirtualMachineScaleSetVMRunCommandsClient.
func (c *ClientFactory) NewVirtualMachineScaleSetVMRunCommandsClient() *VirtualMachineScaleSetVMRunCommandsClient {
subClient, _ := NewVirtualMachineScaleSetVMRunCommandsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &VirtualMachineScaleSetVMRunCommandsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewVirtualMachineScaleSetVMsClient creates a new instance of VirtualMachineScaleSetVMsClient.
func (c *ClientFactory) NewVirtualMachineScaleSetVMsClient() *VirtualMachineScaleSetVMsClient {
subClient, _ := NewVirtualMachineScaleSetVMsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &VirtualMachineScaleSetVMsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewVirtualMachineScaleSetsClient creates a new instance of VirtualMachineScaleSetsClient.
func (c *ClientFactory) NewVirtualMachineScaleSetsClient() *VirtualMachineScaleSetsClient {
subClient, _ := NewVirtualMachineScaleSetsClient(c.subscriptionID, c.credential, c.options)
return subClient
return &VirtualMachineScaleSetsClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewVirtualMachineSizesClient creates a new instance of VirtualMachineSizesClient.
func (c *ClientFactory) NewVirtualMachineSizesClient() *VirtualMachineSizesClient {
subClient, _ := NewVirtualMachineSizesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &VirtualMachineSizesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}
// NewVirtualMachinesClient creates a new instance of VirtualMachinesClient.
func (c *ClientFactory) NewVirtualMachinesClient() *VirtualMachinesClient {
subClient, _ := NewVirtualMachinesClient(c.subscriptionID, c.credential, c.options)
return subClient
return &VirtualMachinesClient{
subscriptionID: c.subscriptionID,
internal: c.internal,
}
}

View file

@ -180,10 +180,10 @@ func (client *CloudServiceRoleInstancesClient) getCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-09-04")
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2022-09-04")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -380,10 +380,10 @@ func (client *CloudServiceRoleInstancesClient) listCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-09-04")
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2022-09-04")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil

View file

@ -47,7 +47,7 @@ func NewCommunityGalleriesClient(subscriptionID string, credential azcore.TokenC
// Get - Get a community gallery by gallery public name.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - location - Resource location.
// - publicGalleryName - The public name of the community gallery.
// - options - CommunityGalleriesClientGetOptions contains the optional parameters for the CommunityGalleriesClient.Get method.
@ -93,7 +93,7 @@ func (client *CommunityGalleriesClient) getCreateRequest(ctx context.Context, lo
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil

View file

@ -47,7 +47,7 @@ func NewCommunityGalleryImagesClient(subscriptionID string, credential azcore.To
// Get - Get a community gallery image.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - location - Resource location.
// - publicGalleryName - The public name of the community gallery.
// - galleryImageName - The name of the community gallery image definition.
@ -99,7 +99,7 @@ func (client *CommunityGalleryImagesClient) getCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -116,7 +116,7 @@ func (client *CommunityGalleryImagesClient) getHandleResponse(resp *http.Respons
// NewListPager - List community gallery images inside a gallery.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - location - Resource location.
// - publicGalleryName - The public name of the community gallery.
// - options - CommunityGalleryImagesClientListOptions contains the optional parameters for the CommunityGalleryImagesClient.NewListPager
@ -164,7 +164,7 @@ func (client *CommunityGalleryImagesClient) listCreateRequest(ctx context.Contex
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil

View file

@ -47,7 +47,7 @@ func NewCommunityGalleryImageVersionsClient(subscriptionID string, credential az
// Get - Get a community gallery image version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - location - Resource location.
// - publicGalleryName - The public name of the community gallery.
// - galleryImageName - The name of the community gallery image definition.
@ -106,7 +106,7 @@ func (client *CommunityGalleryImageVersionsClient) getCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -123,7 +123,7 @@ func (client *CommunityGalleryImageVersionsClient) getHandleResponse(resp *http.
// NewListPager - List community gallery image versions inside an image.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - location - Resource location.
// - publicGalleryName - The public name of the community gallery.
// - galleryImageName - The name of the community gallery image definition.
@ -176,7 +176,7 @@ func (client *CommunityGalleryImageVersionsClient) listCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil

View file

@ -10,7 +10,7 @@ package armcompute
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute"
moduleVersion = "v5.5.0"
moduleVersion = "v5.7.0"
)
type AccessLevel string
@ -333,15 +333,17 @@ func PossibleDiffDiskOptionsValues() []DiffDiskOptions {
}
// DiffDiskPlacement - Specifies the ephemeral disk placement for operating system disk. This property can be used by user
// in the request to choose the location i.e, cache disk or resource disk space for Ephemeral OS disk
// provisioning. For more information on Ephemeral OS disk size requirements, please refer Ephemeral OS disk size requirements
// for Windows VM at
// in the request to choose the location i.e, cache disk, resource disk or nvme disk space for
// Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please refer Ephemeral OS
// disk size requirements for Windows VM at
// https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at
// https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements
// https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. Minimum api-version for NvmeDisk:
// 2024-03-01.
type DiffDiskPlacement string
const (
DiffDiskPlacementCacheDisk DiffDiskPlacement = "CacheDisk"
DiffDiskPlacementNvmeDisk DiffDiskPlacement = "NvmeDisk"
DiffDiskPlacementResourceDisk DiffDiskPlacement = "ResourceDisk"
)
@ -349,6 +351,7 @@ const (
func PossibleDiffDiskPlacementValues() []DiffDiskPlacement {
return []DiffDiskPlacement{
DiffDiskPlacementCacheDisk,
DiffDiskPlacementNvmeDisk,
DiffDiskPlacementResourceDisk,
}
}
@ -425,25 +428,31 @@ func PossibleDiskCreateOptionValues() []DiskCreateOption {
}
}
// DiskCreateOptionTypes - Specifies how the virtual machine should be created. Possible values are: Attach. This value is
// used when you are using a specialized disk to create the virtual machine. FromImage. This value is used
// when you are using an image to create the virtual machine. If you are using a platform image, you also use the imageReference
// element described above. If you are using a marketplace image, you also
// use the plan element previously described.
// DiskCreateOptionTypes - Specifies how the virtual machine disk should be created. Possible values are Attach: This value
// is used when you are using a specialized disk to create the virtual machine. FromImage: This value is
// used when you are using an image to create the virtual machine. If you are using a platform image, you should also use
// the imageReference element described above. If you are using a marketplace image,
// you should also use the plan element previously described. Empty: This value is used when creating an empty data disk.
// Copy: This value is used to create a data disk from a snapshot or another disk.
// Restore: This value is used to create a data disk from a disk restore point.
type DiskCreateOptionTypes string
const (
DiskCreateOptionTypesAttach DiskCreateOptionTypes = "Attach"
DiskCreateOptionTypesCopy DiskCreateOptionTypes = "Copy"
DiskCreateOptionTypesEmpty DiskCreateOptionTypes = "Empty"
DiskCreateOptionTypesFromImage DiskCreateOptionTypes = "FromImage"
DiskCreateOptionTypesRestore DiskCreateOptionTypes = "Restore"
)
// PossibleDiskCreateOptionTypesValues returns the possible values for the DiskCreateOptionTypes const type.
func PossibleDiskCreateOptionTypesValues() []DiskCreateOptionTypes {
return []DiskCreateOptionTypes{
DiskCreateOptionTypesAttach,
DiskCreateOptionTypesCopy,
DiskCreateOptionTypesEmpty,
DiskCreateOptionTypesFromImage,
DiskCreateOptionTypesRestore,
}
}
@ -1678,6 +1687,23 @@ func PossibleReplicationStatusTypesValues() []ReplicationStatusTypes {
}
}
type ResourceIDOptionsForGetCapacityReservationGroups string
const (
ResourceIDOptionsForGetCapacityReservationGroupsAll ResourceIDOptionsForGetCapacityReservationGroups = "All"
ResourceIDOptionsForGetCapacityReservationGroupsCreatedInSubscription ResourceIDOptionsForGetCapacityReservationGroups = "CreatedInSubscription"
ResourceIDOptionsForGetCapacityReservationGroupsSharedWithSubscription ResourceIDOptionsForGetCapacityReservationGroups = "SharedWithSubscription"
)
// PossibleResourceIDOptionsForGetCapacityReservationGroupsValues returns the possible values for the ResourceIDOptionsForGetCapacityReservationGroups const type.
func PossibleResourceIDOptionsForGetCapacityReservationGroupsValues() []ResourceIDOptionsForGetCapacityReservationGroups {
return []ResourceIDOptionsForGetCapacityReservationGroups{
ResourceIDOptionsForGetCapacityReservationGroupsAll,
ResourceIDOptionsForGetCapacityReservationGroupsCreatedInSubscription,
ResourceIDOptionsForGetCapacityReservationGroupsSharedWithSubscription,
}
}
// ResourceIdentityType - The type of identity used for the virtual machine scale set. The type 'SystemAssigned, UserAssigned'
// includes both an implicitly created identity and a set of user assigned identities. The type 'None'
// will remove any identities from the virtual machine scale set.

View file

@ -48,7 +48,7 @@ func NewDedicatedHostGroupsClient(subscriptionID string, credential azcore.Token
// see Dedicated Host Documentation [https://go.microsoft.com/fwlink/?linkid=2082596]
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - parameters - Parameters supplied to the Create Dedicated Host Group.
@ -96,7 +96,7 @@ func (client *DedicatedHostGroupsClient) createOrUpdateCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -117,7 +117,7 @@ func (client *DedicatedHostGroupsClient) createOrUpdateHandleResponse(resp *http
// Delete - Delete a dedicated host group.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - options - DedicatedHostGroupsClientDeleteOptions contains the optional parameters for the DedicatedHostGroupsClient.Delete
@ -163,7 +163,7 @@ func (client *DedicatedHostGroupsClient) deleteCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -172,7 +172,7 @@ func (client *DedicatedHostGroupsClient) deleteCreateRequest(ctx context.Context
// Get - Retrieves information about a dedicated host group.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - options - DedicatedHostGroupsClientGetOptions contains the optional parameters for the DedicatedHostGroupsClient.Get method.
@ -221,7 +221,7 @@ func (client *DedicatedHostGroupsClient) getCreateRequest(ctx context.Context, r
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -239,7 +239,7 @@ func (client *DedicatedHostGroupsClient) getHandleResponse(resp *http.Response)
// NewListByResourceGroupPager - Lists all of the dedicated host groups in the specified resource group. Use the nextLink
// property in the response to get the next page of dedicated host groups.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - DedicatedHostGroupsClientListByResourceGroupOptions contains the optional parameters for the DedicatedHostGroupsClient.NewListByResourceGroupPager
// method.
@ -282,7 +282,7 @@ func (client *DedicatedHostGroupsClient) listByResourceGroupCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -300,7 +300,7 @@ func (client *DedicatedHostGroupsClient) listByResourceGroupHandleResponse(resp
// NewListBySubscriptionPager - Lists all of the dedicated host groups in the subscription. Use the nextLink property in the
// response to get the next page of dedicated host groups.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - options - DedicatedHostGroupsClientListBySubscriptionOptions contains the optional parameters for the DedicatedHostGroupsClient.NewListBySubscriptionPager
// method.
func (client *DedicatedHostGroupsClient) NewListBySubscriptionPager(options *DedicatedHostGroupsClientListBySubscriptionOptions) *runtime.Pager[DedicatedHostGroupsClientListBySubscriptionResponse] {
@ -338,7 +338,7 @@ func (client *DedicatedHostGroupsClient) listBySubscriptionCreateRequest(ctx con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -356,7 +356,7 @@ func (client *DedicatedHostGroupsClient) listBySubscriptionHandleResponse(resp *
// Update - Update an dedicated host group.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - parameters - Parameters supplied to the Update Dedicated Host Group operation.
@ -404,7 +404,7 @@ func (client *DedicatedHostGroupsClient) updateCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {

View file

@ -47,7 +47,7 @@ func NewDedicatedHostsClient(subscriptionID string, credential azcore.TokenCrede
// BeginCreateOrUpdate - Create or update a dedicated host .
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - hostName - The name of the dedicated host .
@ -74,7 +74,7 @@ func (client *DedicatedHostsClient) BeginCreateOrUpdate(ctx context.Context, res
// CreateOrUpdate - Create or update a dedicated host .
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *DedicatedHostsClient) createOrUpdate(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, parameters DedicatedHost, options *DedicatedHostsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "DedicatedHostsClient.BeginCreateOrUpdate"
@ -120,7 +120,7 @@ func (client *DedicatedHostsClient) createOrUpdateCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -132,7 +132,7 @@ func (client *DedicatedHostsClient) createOrUpdateCreateRequest(ctx context.Cont
// BeginDelete - Delete a dedicated host.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - hostName - The name of the dedicated host.
@ -158,7 +158,7 @@ func (client *DedicatedHostsClient) BeginDelete(ctx context.Context, resourceGro
// Delete - Delete a dedicated host.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *DedicatedHostsClient) deleteOperation(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "DedicatedHostsClient.BeginDelete"
@ -204,7 +204,7 @@ func (client *DedicatedHostsClient) deleteCreateRequest(ctx context.Context, res
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -213,7 +213,7 @@ func (client *DedicatedHostsClient) deleteCreateRequest(ctx context.Context, res
// Get - Retrieves information about a dedicated host.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - hostName - The name of the dedicated host.
@ -267,7 +267,7 @@ func (client *DedicatedHostsClient) getCreateRequest(ctx context.Context, resour
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -285,7 +285,7 @@ func (client *DedicatedHostsClient) getHandleResponse(resp *http.Response) (Dedi
// NewListAvailableSizesPager - Lists all available dedicated host sizes to which the specified dedicated host can be resized.
// NOTE: The dedicated host sizes provided can be used to only scale up the existing dedicated host.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - hostName - The name of the dedicated host.
@ -339,7 +339,7 @@ func (client *DedicatedHostsClient) listAvailableSizesCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -357,7 +357,7 @@ func (client *DedicatedHostsClient) listAvailableSizesHandleResponse(resp *http.
// NewListByHostGroupPager - Lists all of the dedicated hosts in the specified dedicated host group. Use the nextLink property
// in the response to get the next page of dedicated hosts.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - options - DedicatedHostsClientListByHostGroupOptions contains the optional parameters for the DedicatedHostsClient.NewListByHostGroupPager
@ -405,7 +405,7 @@ func (client *DedicatedHostsClient) listByHostGroupCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -426,7 +426,7 @@ func (client *DedicatedHostsClient) listByHostGroupHandleResponse(resp *http.Res
// for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - hostName - The name of the dedicated host.
@ -455,7 +455,7 @@ func (client *DedicatedHostsClient) BeginRedeploy(ctx context.Context, resourceG
// for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *DedicatedHostsClient) redeploy(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginRedeployOptions) (*http.Response, error) {
var err error
const operationName = "DedicatedHostsClient.BeginRedeploy"
@ -501,7 +501,7 @@ func (client *DedicatedHostsClient) redeployCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -513,7 +513,7 @@ func (client *DedicatedHostsClient) redeployCreateRequest(ctx context.Context, r
// for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - hostName - The name of the dedicated host.
@ -542,7 +542,7 @@ func (client *DedicatedHostsClient) BeginRestart(ctx context.Context, resourceGr
// for more details.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *DedicatedHostsClient) restart(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, options *DedicatedHostsClientBeginRestartOptions) (*http.Response, error) {
var err error
const operationName = "DedicatedHostsClient.BeginRestart"
@ -588,7 +588,7 @@ func (client *DedicatedHostsClient) restartCreateRequest(ctx context.Context, re
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -597,7 +597,7 @@ func (client *DedicatedHostsClient) restartCreateRequest(ctx context.Context, re
// BeginUpdate - Update a dedicated host .
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - hostGroupName - The name of the dedicated host group.
// - hostName - The name of the dedicated host .
@ -624,7 +624,7 @@ func (client *DedicatedHostsClient) BeginUpdate(ctx context.Context, resourceGro
// Update - Update a dedicated host .
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *DedicatedHostsClient) update(ctx context.Context, resourceGroupName string, hostGroupName string, hostName string, parameters DedicatedHostUpdate, options *DedicatedHostsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "DedicatedHostsClient.BeginUpdate"
@ -670,7 +670,7 @@ func (client *DedicatedHostsClient) updateCreateRequest(ctx context.Context, res
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {

View file

@ -47,7 +47,7 @@ func NewGalleriesClient(subscriptionID string, credential azcore.TokenCredential
// BeginCreateOrUpdate - Create or update a Shared Image Gallery.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods
// allowed in the middle. The maximum length is 80 characters.
@ -74,7 +74,7 @@ func (client *GalleriesClient) BeginCreateOrUpdate(ctx context.Context, resource
// CreateOrUpdate - Create or update a Shared Image Gallery.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleriesClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, gallery Gallery, options *GalleriesClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "GalleriesClient.BeginCreateOrUpdate"
@ -116,7 +116,7 @@ func (client *GalleriesClient) createOrUpdateCreateRequest(ctx context.Context,
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, gallery); err != nil {
@ -128,7 +128,7 @@ func (client *GalleriesClient) createOrUpdateCreateRequest(ctx context.Context,
// BeginDelete - Delete a Shared Image Gallery.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery to be deleted.
// - options - GalleriesClientBeginDeleteOptions contains the optional parameters for the GalleriesClient.BeginDelete method.
@ -152,7 +152,7 @@ func (client *GalleriesClient) BeginDelete(ctx context.Context, resourceGroupNam
// Delete - Delete a Shared Image Gallery.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleriesClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, options *GalleriesClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "GalleriesClient.BeginDelete"
@ -194,7 +194,7 @@ func (client *GalleriesClient) deleteCreateRequest(ctx context.Context, resource
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -203,7 +203,7 @@ func (client *GalleriesClient) deleteCreateRequest(ctx context.Context, resource
// Get - Retrieves information about a Shared Image Gallery.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery.
// - options - GalleriesClientGetOptions contains the optional parameters for the GalleriesClient.Get method.
@ -249,13 +249,13 @@ func (client *GalleriesClient) getCreateRequest(ctx context.Context, resourceGro
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
if options != nil && options.Select != nil {
reqQP.Set("$select", string(*options.Select))
}
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
if options != nil && options.Select != nil {
reqQP.Set("$select", string(*options.Select))
}
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -272,7 +272,7 @@ func (client *GalleriesClient) getHandleResponse(resp *http.Response) (Galleries
// NewListPager - List galleries under a subscription.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - options - GalleriesClientListOptions contains the optional parameters for the GalleriesClient.NewListPager method.
func (client *GalleriesClient) NewListPager(options *GalleriesClientListOptions) *runtime.Pager[GalleriesClientListResponse] {
return runtime.NewPager(runtime.PagingHandler[GalleriesClientListResponse]{
@ -309,7 +309,7 @@ func (client *GalleriesClient) listCreateRequest(ctx context.Context, options *G
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -326,7 +326,7 @@ func (client *GalleriesClient) listHandleResponse(resp *http.Response) (Gallerie
// NewListByResourceGroupPager - List galleries under a resource group.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - options - GalleriesClientListByResourceGroupOptions contains the optional parameters for the GalleriesClient.NewListByResourceGroupPager
// method.
@ -369,7 +369,7 @@ func (client *GalleriesClient) listByResourceGroupCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -387,7 +387,7 @@ func (client *GalleriesClient) listByResourceGroupHandleResponse(resp *http.Resp
// BeginUpdate - Update a Shared Image Gallery.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods
// allowed in the middle. The maximum length is 80 characters.
@ -413,7 +413,7 @@ func (client *GalleriesClient) BeginUpdate(ctx context.Context, resourceGroupNam
// Update - Update a Shared Image Gallery.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleriesClient) update(ctx context.Context, resourceGroupName string, galleryName string, gallery GalleryUpdate, options *GalleriesClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "GalleriesClient.BeginUpdate"
@ -455,7 +455,7 @@ func (client *GalleriesClient) updateCreateRequest(ctx context.Context, resource
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, gallery); err != nil {

View file

@ -47,7 +47,7 @@ func NewGalleryApplicationsClient(subscriptionID string, credential azcore.Token
// BeginCreateOrUpdate - Create or update a gallery Application Definition.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Application Gallery in which the Application Definition is to be created.
// - galleryApplicationName - The name of the gallery Application Definition to be created or updated. The allowed characters
@ -76,7 +76,7 @@ func (client *GalleryApplicationsClient) BeginCreateOrUpdate(ctx context.Context
// CreateOrUpdate - Create or update a gallery Application Definition.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleryApplicationsClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplication GalleryApplication, options *GalleryApplicationsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "GalleryApplicationsClient.BeginCreateOrUpdate"
@ -122,7 +122,7 @@ func (client *GalleryApplicationsClient) createOrUpdateCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, galleryApplication); err != nil {
@ -134,7 +134,7 @@ func (client *GalleryApplicationsClient) createOrUpdateCreateRequest(ctx context
// BeginDelete - Delete a gallery Application.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Application Gallery in which the Application Definition is to be deleted.
// - galleryApplicationName - The name of the gallery Application Definition to be deleted.
@ -160,7 +160,7 @@ func (client *GalleryApplicationsClient) BeginDelete(ctx context.Context, resour
// Delete - Delete a gallery Application.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleryApplicationsClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, options *GalleryApplicationsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "GalleryApplicationsClient.BeginDelete"
@ -206,7 +206,7 @@ func (client *GalleryApplicationsClient) deleteCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -215,7 +215,7 @@ func (client *GalleryApplicationsClient) deleteCreateRequest(ctx context.Context
// Get - Retrieves information about a gallery Application Definition.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Application Gallery from which the Application Definitions are to be retrieved.
// - galleryApplicationName - The name of the gallery Application Definition to be retrieved.
@ -266,7 +266,7 @@ func (client *GalleryApplicationsClient) getCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -283,7 +283,7 @@ func (client *GalleryApplicationsClient) getHandleResponse(resp *http.Response)
// NewListByGalleryPager - List gallery Application Definitions in a gallery.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Application Gallery from which Application Definitions are to be listed.
// - options - GalleryApplicationsClientListByGalleryOptions contains the optional parameters for the GalleryApplicationsClient.NewListByGalleryPager
@ -331,7 +331,7 @@ func (client *GalleryApplicationsClient) listByGalleryCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -349,7 +349,7 @@ func (client *GalleryApplicationsClient) listByGalleryHandleResponse(resp *http.
// BeginUpdate - Update a gallery Application Definition.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Application Gallery in which the Application Definition is to be updated.
// - galleryApplicationName - The name of the gallery Application Definition to be updated. The allowed characters are alphabets
@ -378,7 +378,7 @@ func (client *GalleryApplicationsClient) BeginUpdate(ctx context.Context, resour
// Update - Update a gallery Application Definition.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleryApplicationsClient) update(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplication GalleryApplicationUpdate, options *GalleryApplicationsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "GalleryApplicationsClient.BeginUpdate"
@ -424,7 +424,7 @@ func (client *GalleryApplicationsClient) updateCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, galleryApplication); err != nil {

View file

@ -47,7 +47,7 @@ func NewGalleryApplicationVersionsClient(subscriptionID string, credential azcor
// BeginCreateOrUpdate - Create or update a gallery Application Version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Application Gallery in which the Application Definition resides.
// - galleryApplicationName - The name of the gallery Application Definition in which the Application Version is to be created.
@ -77,7 +77,7 @@ func (client *GalleryApplicationVersionsClient) BeginCreateOrUpdate(ctx context.
// CreateOrUpdate - Create or update a gallery Application Version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleryApplicationVersionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, galleryApplicationVersion GalleryApplicationVersion, options *GalleryApplicationVersionsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "GalleryApplicationVersionsClient.BeginCreateOrUpdate"
@ -127,7 +127,7 @@ func (client *GalleryApplicationVersionsClient) createOrUpdateCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, galleryApplicationVersion); err != nil {
@ -139,7 +139,7 @@ func (client *GalleryApplicationVersionsClient) createOrUpdateCreateRequest(ctx
// BeginDelete - Delete a gallery Application Version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Application Gallery in which the Application Definition resides.
// - galleryApplicationName - The name of the gallery Application Definition in which the Application Version resides.
@ -166,7 +166,7 @@ func (client *GalleryApplicationVersionsClient) BeginDelete(ctx context.Context,
// Delete - Delete a gallery Application Version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleryApplicationVersionsClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, options *GalleryApplicationVersionsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "GalleryApplicationVersionsClient.BeginDelete"
@ -216,7 +216,7 @@ func (client *GalleryApplicationVersionsClient) deleteCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -225,7 +225,7 @@ func (client *GalleryApplicationVersionsClient) deleteCreateRequest(ctx context.
// Get - Retrieves information about a gallery Application Version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Application Gallery in which the Application Definition resides.
// - galleryApplicationName - The name of the gallery Application Definition in which the Application Version resides.
@ -285,7 +285,7 @@ func (client *GalleryApplicationVersionsClient) getCreateRequest(ctx context.Con
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -302,7 +302,7 @@ func (client *GalleryApplicationVersionsClient) getHandleResponse(resp *http.Res
// NewListByGalleryApplicationPager - List gallery Application Versions in a gallery Application Definition.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Application Gallery in which the Application Definition resides.
// - galleryApplicationName - The name of the Shared Application Gallery Application Definition from which the Application Versions
@ -356,7 +356,7 @@ func (client *GalleryApplicationVersionsClient) listByGalleryApplicationCreateRe
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -374,7 +374,7 @@ func (client *GalleryApplicationVersionsClient) listByGalleryApplicationHandleRe
// BeginUpdate - Update a gallery Application Version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Application Gallery in which the Application Definition resides.
// - galleryApplicationName - The name of the gallery Application Definition in which the Application Version is to be updated.
@ -404,7 +404,7 @@ func (client *GalleryApplicationVersionsClient) BeginUpdate(ctx context.Context,
// Update - Update a gallery Application Version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleryApplicationVersionsClient) update(ctx context.Context, resourceGroupName string, galleryName string, galleryApplicationName string, galleryApplicationVersionName string, galleryApplicationVersion GalleryApplicationVersionUpdate, options *GalleryApplicationVersionsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "GalleryApplicationVersionsClient.BeginUpdate"
@ -454,7 +454,7 @@ func (client *GalleryApplicationVersionsClient) updateCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, galleryApplicationVersion); err != nil {

View file

@ -47,7 +47,7 @@ func NewGalleryImagesClient(subscriptionID string, credential azcore.TokenCreden
// BeginCreateOrUpdate - Create or update a gallery image definition.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery in which the Image Definition is to be created.
// - galleryImageName - The name of the gallery image definition to be created or updated. The allowed characters are alphabets
@ -76,7 +76,7 @@ func (client *GalleryImagesClient) BeginCreateOrUpdate(ctx context.Context, reso
// CreateOrUpdate - Create or update a gallery image definition.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleryImagesClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImage GalleryImage, options *GalleryImagesClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "GalleryImagesClient.BeginCreateOrUpdate"
@ -122,7 +122,7 @@ func (client *GalleryImagesClient) createOrUpdateCreateRequest(ctx context.Conte
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, galleryImage); err != nil {
@ -134,7 +134,7 @@ func (client *GalleryImagesClient) createOrUpdateCreateRequest(ctx context.Conte
// BeginDelete - Delete a gallery image.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery in which the Image Definition is to be deleted.
// - galleryImageName - The name of the gallery image definition to be deleted.
@ -160,7 +160,7 @@ func (client *GalleryImagesClient) BeginDelete(ctx context.Context, resourceGrou
// Delete - Delete a gallery image.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleryImagesClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, options *GalleryImagesClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "GalleryImagesClient.BeginDelete"
@ -206,7 +206,7 @@ func (client *GalleryImagesClient) deleteCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -215,7 +215,7 @@ func (client *GalleryImagesClient) deleteCreateRequest(ctx context.Context, reso
// Get - Retrieves information about a gallery image definition.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery from which the Image Definitions are to be retrieved.
// - galleryImageName - The name of the gallery image definition to be retrieved.
@ -266,7 +266,7 @@ func (client *GalleryImagesClient) getCreateRequest(ctx context.Context, resourc
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -283,7 +283,7 @@ func (client *GalleryImagesClient) getHandleResponse(resp *http.Response) (Galle
// NewListByGalleryPager - List gallery image definitions in a gallery.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery from which Image Definitions are to be listed.
// - options - GalleryImagesClientListByGalleryOptions contains the optional parameters for the GalleryImagesClient.NewListByGalleryPager
@ -331,7 +331,7 @@ func (client *GalleryImagesClient) listByGalleryCreateRequest(ctx context.Contex
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -349,7 +349,7 @@ func (client *GalleryImagesClient) listByGalleryHandleResponse(resp *http.Respon
// BeginUpdate - Update a gallery image definition.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery in which the Image Definition is to be updated.
// - galleryImageName - The name of the gallery image definition to be updated. The allowed characters are alphabets and numbers
@ -377,7 +377,7 @@ func (client *GalleryImagesClient) BeginUpdate(ctx context.Context, resourceGrou
// Update - Update a gallery image definition.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleryImagesClient) update(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImage GalleryImageUpdate, options *GalleryImagesClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "GalleryImagesClient.BeginUpdate"
@ -423,7 +423,7 @@ func (client *GalleryImagesClient) updateCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, galleryImage); err != nil {

View file

@ -47,7 +47,7 @@ func NewGalleryImageVersionsClient(subscriptionID string, credential azcore.Toke
// BeginCreateOrUpdate - Create or update a gallery image version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery in which the Image Definition resides.
// - galleryImageName - The name of the gallery image definition in which the Image Version is to be created.
@ -77,7 +77,7 @@ func (client *GalleryImageVersionsClient) BeginCreateOrUpdate(ctx context.Contex
// CreateOrUpdate - Create or update a gallery image version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleryImageVersionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, galleryImageVersion GalleryImageVersion, options *GalleryImageVersionsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "GalleryImageVersionsClient.BeginCreateOrUpdate"
@ -127,7 +127,7 @@ func (client *GalleryImageVersionsClient) createOrUpdateCreateRequest(ctx contex
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, galleryImageVersion); err != nil {
@ -139,7 +139,7 @@ func (client *GalleryImageVersionsClient) createOrUpdateCreateRequest(ctx contex
// BeginDelete - Delete a gallery image version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery in which the Image Definition resides.
// - galleryImageName - The name of the gallery image definition in which the Image Version resides.
@ -166,7 +166,7 @@ func (client *GalleryImageVersionsClient) BeginDelete(ctx context.Context, resou
// Delete - Delete a gallery image version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleryImageVersionsClient) deleteOperation(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, options *GalleryImageVersionsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "GalleryImageVersionsClient.BeginDelete"
@ -216,7 +216,7 @@ func (client *GalleryImageVersionsClient) deleteCreateRequest(ctx context.Contex
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -225,7 +225,7 @@ func (client *GalleryImageVersionsClient) deleteCreateRequest(ctx context.Contex
// Get - Retrieves information about a gallery image version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery in which the Image Definition resides.
// - galleryImageName - The name of the gallery image definition in which the Image Version resides.
@ -285,7 +285,7 @@ func (client *GalleryImageVersionsClient) getCreateRequest(ctx context.Context,
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -302,7 +302,7 @@ func (client *GalleryImageVersionsClient) getHandleResponse(resp *http.Response)
// NewListByGalleryImagePager - List gallery image versions in a gallery image definition.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery in which the Image Definition resides.
// - galleryImageName - The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed.
@ -355,7 +355,7 @@ func (client *GalleryImageVersionsClient) listByGalleryImageCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -373,7 +373,7 @@ func (client *GalleryImageVersionsClient) listByGalleryImageHandleResponse(resp
// BeginUpdate - Update a gallery image version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery in which the Image Definition resides.
// - galleryImageName - The name of the gallery image definition in which the Image Version is to be updated.
@ -403,7 +403,7 @@ func (client *GalleryImageVersionsClient) BeginUpdate(ctx context.Context, resou
// Update - Update a gallery image version.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GalleryImageVersionsClient) update(ctx context.Context, resourceGroupName string, galleryName string, galleryImageName string, galleryImageVersionName string, galleryImageVersion GalleryImageVersionUpdate, options *GalleryImageVersionsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "GalleryImageVersionsClient.BeginUpdate"
@ -453,7 +453,7 @@ func (client *GalleryImageVersionsClient) updateCreateRequest(ctx context.Contex
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, galleryImageVersion); err != nil {

View file

@ -47,7 +47,7 @@ func NewGallerySharingProfileClient(subscriptionID string, credential azcore.Tok
// BeginUpdate - Update sharing profile of a gallery.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - resourceGroupName - The name of the resource group.
// - galleryName - The name of the Shared Image Gallery.
// - sharingUpdate - Parameters supplied to the update gallery sharing profile.
@ -73,7 +73,7 @@ func (client *GallerySharingProfileClient) BeginUpdate(ctx context.Context, reso
// Update - Update sharing profile of a gallery.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
func (client *GallerySharingProfileClient) update(ctx context.Context, resourceGroupName string, galleryName string, sharingUpdate SharingUpdate, options *GallerySharingProfileClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "GallerySharingProfileClient.BeginUpdate"
@ -115,7 +115,7 @@ func (client *GallerySharingProfileClient) updateCreateRequest(ctx context.Conte
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, sharingUpdate); err != nil {

View file

@ -47,7 +47,7 @@ func NewImagesClient(subscriptionID string, credential azcore.TokenCredential, o
// BeginCreateOrUpdate - Create or update an image.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - imageName - The name of the image.
// - parameters - Parameters supplied to the Create Image operation.
@ -73,7 +73,7 @@ func (client *ImagesClient) BeginCreateOrUpdate(ctx context.Context, resourceGro
// CreateOrUpdate - Create or update an image.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *ImagesClient) createOrUpdate(ctx context.Context, resourceGroupName string, imageName string, parameters Image, options *ImagesClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "ImagesClient.BeginCreateOrUpdate"
@ -115,7 +115,7 @@ func (client *ImagesClient) createOrUpdateCreateRequest(ctx context.Context, res
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -127,7 +127,7 @@ func (client *ImagesClient) createOrUpdateCreateRequest(ctx context.Context, res
// BeginDelete - Deletes an Image.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - imageName - The name of the image.
// - options - ImagesClientBeginDeleteOptions contains the optional parameters for the ImagesClient.BeginDelete method.
@ -151,7 +151,7 @@ func (client *ImagesClient) BeginDelete(ctx context.Context, resourceGroupName s
// Delete - Deletes an Image.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *ImagesClient) deleteOperation(ctx context.Context, resourceGroupName string, imageName string, options *ImagesClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "ImagesClient.BeginDelete"
@ -193,7 +193,7 @@ func (client *ImagesClient) deleteCreateRequest(ctx context.Context, resourceGro
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -202,7 +202,7 @@ func (client *ImagesClient) deleteCreateRequest(ctx context.Context, resourceGro
// Get - Gets an image.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - imageName - The name of the image.
// - options - ImagesClientGetOptions contains the optional parameters for the ImagesClient.Get method.
@ -251,7 +251,7 @@ func (client *ImagesClient) getCreateRequest(ctx context.Context, resourceGroupN
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -269,7 +269,7 @@ func (client *ImagesClient) getHandleResponse(resp *http.Response) (ImagesClient
// NewListPager - Gets the list of Images in the subscription. Use nextLink property in the response to get the next page
// of Images. Do this till nextLink is null to fetch all the Images.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - options - ImagesClientListOptions contains the optional parameters for the ImagesClient.NewListPager method.
func (client *ImagesClient) NewListPager(options *ImagesClientListOptions) *runtime.Pager[ImagesClientListResponse] {
return runtime.NewPager(runtime.PagingHandler[ImagesClientListResponse]{
@ -306,7 +306,7 @@ func (client *ImagesClient) listCreateRequest(ctx context.Context, options *Imag
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -324,7 +324,7 @@ func (client *ImagesClient) listHandleResponse(resp *http.Response) (ImagesClien
// NewListByResourceGroupPager - Gets the list of images under a resource group. Use nextLink property in the response to
// get the next page of Images. Do this till nextLink is null to fetch all the Images.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - ImagesClientListByResourceGroupOptions contains the optional parameters for the ImagesClient.NewListByResourceGroupPager
// method.
@ -367,7 +367,7 @@ func (client *ImagesClient) listByResourceGroupCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -385,7 +385,7 @@ func (client *ImagesClient) listByResourceGroupHandleResponse(resp *http.Respons
// BeginUpdate - Update an image.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - imageName - The name of the image.
// - parameters - Parameters supplied to the Update Image operation.
@ -410,7 +410,7 @@ func (client *ImagesClient) BeginUpdate(ctx context.Context, resourceGroupName s
// Update - Update an image.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *ImagesClient) update(ctx context.Context, resourceGroupName string, imageName string, parameters ImageUpdate, options *ImagesClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "ImagesClient.BeginUpdate"
@ -452,7 +452,7 @@ func (client *ImagesClient) updateCreateRequest(ctx context.Context, resourceGro
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {

View file

@ -48,7 +48,7 @@ func NewLogAnalyticsClient(subscriptionID string, credential azcore.TokenCredent
// to show throttling activities.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The location upon which virtual-machine-sizes is queried.
// - parameters - Parameters supplied to the LogAnalytics getRequestRateByInterval Api.
// - options - LogAnalyticsClientBeginExportRequestRateByIntervalOptions contains the optional parameters for the LogAnalyticsClient.BeginExportRequestRateByInterval
@ -75,7 +75,7 @@ func (client *LogAnalyticsClient) BeginExportRequestRateByInterval(ctx context.C
// show throttling activities.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *LogAnalyticsClient) exportRequestRateByInterval(ctx context.Context, location string, parameters RequestRateByIntervalInput, options *LogAnalyticsClientBeginExportRequestRateByIntervalOptions) (*http.Response, error) {
var err error
const operationName = "LogAnalyticsClient.BeginExportRequestRateByInterval"
@ -113,7 +113,7 @@ func (client *LogAnalyticsClient) exportRequestRateByIntervalCreateRequest(ctx c
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -126,7 +126,7 @@ func (client *LogAnalyticsClient) exportRequestRateByIntervalCreateRequest(ctx c
// window.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The location upon which virtual-machine-sizes is queried.
// - parameters - Parameters supplied to the LogAnalytics getThrottledRequests Api.
// - options - LogAnalyticsClientBeginExportThrottledRequestsOptions contains the optional parameters for the LogAnalyticsClient.BeginExportThrottledRequests
@ -152,7 +152,7 @@ func (client *LogAnalyticsClient) BeginExportThrottledRequests(ctx context.Conte
// ExportThrottledRequests - Export logs that show total throttled Api requests for this subscription in the given time window.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *LogAnalyticsClient) exportThrottledRequests(ctx context.Context, location string, parameters ThrottledRequestsInput, options *LogAnalyticsClientBeginExportThrottledRequestsOptions) (*http.Response, error) {
var err error
const operationName = "LogAnalyticsClient.BeginExportThrottledRequests"
@ -190,7 +190,7 @@ func (client *LogAnalyticsClient) exportThrottledRequestsCreateRequest(ctx conte
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {

View file

@ -368,7 +368,7 @@ type CapacityReservationGroupInstanceView struct {
// READ-ONLY; List of instance view of the capacity reservations under the capacity reservation group.
CapacityReservations []*CapacityReservationInstanceViewWithName
// READ-ONLY; List of the subscriptions that the capacity reservation group is shared with. Note: Minimum api-version: 2023-09-01.
// READ-ONLY; List of the subscriptions that the capacity reservation group is shared with. Note: Minimum api-version: 2024-03-01.
// Please refer to https://aka.ms/computereservationsharing for more details.
SharedSubscriptionIDs []*SubResourceReadOnly
}
@ -388,7 +388,7 @@ type CapacityReservationGroupProperties struct {
// Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. Pls. keep in
// mind the capacity reservation group resource generally can be shared across
// subscriptions belonging to a single azure AAD tenant or cross AAD tenant if there is a trust relationship established between
// the AAD tenants. Note: Minimum api-version: 2023-09-01. Please refer to
// the AAD tenants. Note: Minimum api-version: 2024-03-01. Please refer to
// https://aka.ms/computereservationsharing for more details.
SharingProfile *ResourceSharingProfile
@ -1064,11 +1064,13 @@ type CreationData struct {
// DataDisk - Describes a data disk.
type DataDisk struct {
// REQUIRED; Specifies how the virtual machine should be created. Possible values are: Attach. This value is used when you
// are using a specialized disk to create the virtual machine. FromImage. This value is used
// when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference
// element described above. If you are using a marketplace image, you
// should also use the plan element previously described.
// REQUIRED; Specifies how the virtual machine disk should be created. Possible values are Attach: This value is used when
// you are using a specialized disk to create the virtual machine. FromImage: This value is
// used when you are using an image to create the virtual machine data disk. If you are using a platform image, you should
// also use the imageReference element described above. If you are using a
// marketplace image, you should also use the plan element previously described. Empty: This value is used when creating an
// empty data disk. Copy: This value is used to create a data disk from a snapshot
// or another disk. Restore: This value is used to create a data disk from a disk restore point.
CreateOption *DiskCreateOptionTypes
// REQUIRED; Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and
@ -1110,6 +1112,9 @@ type DataDisk struct {
// The disk name.
Name *string
// The source resource identifier. It can be a snapshot, or disk restore point from which to create a disk.
SourceResource *APIEntityReference
// Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset
ToBeDetached *bool
@ -1153,10 +1158,25 @@ type DataDisksToAttach struct {
// REQUIRED; ID of the managed data disk.
DiskID *string
// Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The defaulting behavior is: None for
// Standard storage. ReadOnly for Premium storage.
Caching *CachingTypes
// Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: Delete. If this value
// is used, the data disk is deleted when VM is deleted. Detach. If this value is
// used, the data disk is retained after VM is deleted. The default value is set to Detach.
DeleteOption *DiskDeleteOptionTypes
// Specifies the customer managed disk encryption set resource id for the managed disk.
DiskEncryptionSet *DiskEncryptionSetParameters
// The logical unit number of the data disk. This value is used to identify data disks within the VM and therefore must be
// unique for each data disk attached to a VM. If not specified, lun would be auto
// assigned.
Lun *int32
// Specifies whether writeAccelerator should be enabled or disabled on the disk.
WriteAcceleratorEnabled *bool
}
// DataDisksToDetach - Describes the data disk to be detached.
@ -1408,11 +1428,12 @@ type DiffDiskSettings struct {
// Specifies the ephemeral disk settings for operating system disk.
Option *DiffDiskOptions
// Specifies the ephemeral disk placement for operating system disk. Possible values are: CacheDisk, ResourceDisk. The defaulting
// behavior is: CacheDisk if one is configured for the VM size otherwise
// ResourceDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes
// Specifies the ephemeral disk placement for operating system disk. Possible values are: CacheDisk, ResourceDisk, NvmeDisk.
// The defaulting behavior is: CacheDisk if one is configured for the VM size
// otherwise ResourceDisk or NvmeDisk is used. Refer to the VM size documentation for Windows VM at https://docs.microsoft.com/azure/virtual-machines/windows/sizes
// and Linux VM at
// https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk.
// https://docs.microsoft.com/azure/virtual-machines/linux/sizes to check which VM sizes exposes a cache disk. Minimum api-version
// for NvmeDisk: 2024-03-01.
Placement *DiffDiskPlacement
}
@ -2075,6 +2096,12 @@ type EncryptionSettingsElement struct {
KeyEncryptionKey *KeyVaultAndKeyReference
}
// EventGridAndResourceGraph - Specifies eventGridAndResourceGraph related Scheduled Event related configurations.
type EventGridAndResourceGraph struct {
// Specifies if event grid and resource graph is enabled for Scheduled event related configurations.
Enable *bool
}
// ExtendedLocation - The complex type of the extended location.
type ExtendedLocation struct {
// The name of the extended location.
@ -2385,13 +2412,17 @@ type GalleryArtifactVersionFullSource struct {
// The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
CommunityGalleryImageID *string
// The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
// The id of the gallery artifact version source.
ID *string
// The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image
// Version.
VirtualMachineID *string
}
// GalleryArtifactVersionSource - The gallery artifact version source.
type GalleryArtifactVersionSource struct {
// The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
// The id of the gallery artifact version source.
ID *string
}
@ -2426,7 +2457,7 @@ type GalleryDiskImage struct {
// GalleryDiskImageSource - The source for the disk image.
type GalleryDiskImageSource struct {
// The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
// The id of the gallery artifact version source.
ID *string
// The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
@ -3445,11 +3476,11 @@ type NetworkProfile struct {
// disks, see About disks and VHDs for Azure virtual machines
// [https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview].
type OSDisk struct {
// REQUIRED; Specifies how the virtual machine should be created. Possible values are: Attach. This value is used when you
// are using a specialized disk to create the virtual machine. FromImage. This value is used
// when you are using an image to create the virtual machine. If you are using a platform image, you should also use the imageReference
// element described above. If you are using a marketplace image, you
// should also use the plan element previously described.
// REQUIRED; Specifies how the virtual machine disk should be created. Possible values are Attach: This value is used when
// you are using a specialized disk to create the virtual machine. FromImage: This value is
// used when you are using an image to create the virtual machine. If you are using a platform image, you should also use
// the imageReference element described above. If you are using a marketplace image,
// you should also use the plan element previously described.
CreateOption *DiskCreateOptionTypes
// Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The defaulting behavior is: None for
@ -4070,7 +4101,7 @@ type ProximityPlacementGroupUpdate struct {
Tags map[string]*string
}
// ProxyAgentSettings - Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01.
// ProxyAgentSettings - Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2024-03-01.
type ProxyAgentSettings struct {
// Specifies whether ProxyAgent feature should be enabled on the virtual machine or virtual machine scale set.
Enabled *bool
@ -4427,7 +4458,7 @@ type ResourceSKUsResult struct {
type ResourceSharingProfile struct {
// Specifies an array of subscription resource IDs that capacity reservation group is shared with. Note: Minimum api-version:
// 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more
// 2024-03-01. Please refer to https://aka.ms/computereservationsharing for more
// details.
SubscriptionIDs []*SubResource
}
@ -5117,6 +5148,24 @@ type ScaleInPolicy struct {
Rules []*VirtualMachineScaleSetScaleInRules
}
type ScheduledEventsAdditionalPublishingTargets struct {
// The configuration parameters used while creating eventGridAndResourceGraph Scheduled Event setting.
EventGridAndResourceGraph *EventGridAndResourceGraph
}
// ScheduledEventsPolicy - Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related
// configurations.
type ScheduledEventsPolicy struct {
// The configuration parameters used while publishing scheduledEventsAdditionalPublishingTargets.
ScheduledEventsAdditionalPublishingTargets *ScheduledEventsAdditionalPublishingTargets
// The configuration parameters used while creating userInitiatedReboot scheduled event setting creation.
UserInitiatedReboot *UserInitiatedReboot
// The configuration parameters used while creating userInitiatedRedeploy scheduled event setting creation.
UserInitiatedRedeploy *UserInitiatedRedeploy
}
type ScheduledEventsProfile struct {
// Specifies OS Image Scheduled Event related configurations.
OSImageNotificationProfile *OSImageNotificationProfile
@ -5146,7 +5195,7 @@ type SecurityProfile struct {
// Specifies the Managed Identity used by ADE to get access token for keyvault operations.
EncryptionIdentity *EncryptionIdentity
// Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2023-09-01.
// Specifies ProxyAgent settings while creating the virtual machine. Minimum api-version: 2024-03-01.
ProxyAgentSettings *ProxyAgentSettings
// Specifies the SecurityType of the virtual machine. It has to be set to any specified value to enable UefiSettings. The
@ -5938,6 +5987,18 @@ type UserAssignedIdentitiesValue struct {
PrincipalID *string
}
// UserInitiatedReboot - Specifies Reboot related Scheduled Event related configurations.
type UserInitiatedReboot struct {
// Specifies Reboot Scheduled Event related configurations.
AutomaticallyApprove *bool
}
// UserInitiatedRedeploy - Specifies Redeploy related Scheduled Event related configurations.
type UserInitiatedRedeploy struct {
// Specifies Redeploy Scheduled Event related configurations.
AutomaticallyApprove *bool
}
// VMDiskSecurityProfile - Specifies the security profile settings for the managed disk. Note: It can only be set for Confidential
// VMs.
type VMDiskSecurityProfile struct {
@ -6782,6 +6843,10 @@ type VirtualMachineProperties struct {
// 2018-04-01.
ProximityPlacementGroup *SubResource
// Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations for the
// virtual machine.
ScheduledEventsPolicy *ScheduledEventsPolicy
// Specifies Scheduled Event related configurations.
ScheduledEventsProfile *ScheduledEventsProfile
@ -7592,6 +7657,9 @@ type VirtualMachineScaleSetProperties struct {
// Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.
ScaleInPolicy *ScaleInPolicy
// The ScheduledEventsPolicy.
ScheduledEventsPolicy *ScheduledEventsPolicy
// When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup
// is true, it may be modified to false. However, if singlePlacementGroup
// is false, it may not be modified to true.
@ -7676,6 +7744,9 @@ type VirtualMachineScaleSetReimageParameters struct {
// is reimaged to the existing version of OS Disk.
ExactVersion *string
// Parameter to force update ephemeral OS disk for a virtual machine scale set VM
ForceUpdateOSDiskForEphemeral *bool
// The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation
// being performed on all virtual machines in the virtual machine scale set.
InstanceIDs []*string
@ -7869,6 +7940,9 @@ type VirtualMachineScaleSetUpdateOSDisk struct {
// delete option for Ephemeral OS Disk.
DeleteOption *DiskDeleteOptionTypes
// Specifies the ephemeral disk Settings for the operating system disk used by the virtual machine scale set.
DiffDiskSettings *DiffDiskSettings
// Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk in a
// virtual machine image.
// diskSizeGB is the number of bytes x 1024^3 for the disk and the value cannot be larger than 1023
@ -8277,8 +8351,8 @@ type VirtualMachineScaleSetVMProfile struct {
UserData *string
// READ-ONLY; Specifies the time in which this VM profile for the Virtual Machine Scale Set was created. Minimum API version
// for this property is 2023-09-01. This value will be added to VMSS Flex VM tags when
// creating/updating the VMSS VM Profile with minimum api-version 2023-09-01.
// for this property is 2024-03-01. This value will be added to VMSS Flex VM tags when
// creating/updating the VMSS VM Profile with minimum api-version 2024-03-01.
TimeCreated *time.Time
}
@ -8375,6 +8449,9 @@ type VirtualMachineScaleSetVMReimageParameters struct {
// is reimaged to the existing version of OS Disk.
ExactVersion *string
// Parameter to force update ephemeral OS disk for a virtual machine scale set VM
ForceUpdateOSDiskForEphemeral *bool
// Specifies information required for reimaging the non-ephemeral OS disk.
OSProfile *OSProfileProvisioningData

View file

@ -2484,6 +2484,7 @@ func (d DataDisk) MarshalJSON() ([]byte, error) {
populate(objectMap, "lun", d.Lun)
populate(objectMap, "managedDisk", d.ManagedDisk)
populate(objectMap, "name", d.Name)
populate(objectMap, "sourceResource", d.SourceResource)
populate(objectMap, "toBeDetached", d.ToBeDetached)
populate(objectMap, "vhd", d.Vhd)
populate(objectMap, "writeAcceleratorEnabled", d.WriteAcceleratorEnabled)
@ -2532,6 +2533,9 @@ func (d *DataDisk) UnmarshalJSON(data []byte) error {
case "name":
err = unpopulate(val, "Name", &d.Name)
delete(rawMsg, key)
case "sourceResource":
err = unpopulate(val, "SourceResource", &d.SourceResource)
delete(rawMsg, key)
case "toBeDetached":
err = unpopulate(val, "ToBeDetached", &d.ToBeDetached)
delete(rawMsg, key)
@ -2610,8 +2614,12 @@ func (d *DataDiskImageEncryption) UnmarshalJSON(data []byte) error {
// MarshalJSON implements the json.Marshaller interface for type DataDisksToAttach.
func (d DataDisksToAttach) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "caching", d.Caching)
populate(objectMap, "deleteOption", d.DeleteOption)
populate(objectMap, "diskEncryptionSet", d.DiskEncryptionSet)
populate(objectMap, "diskId", d.DiskID)
populate(objectMap, "lun", d.Lun)
populate(objectMap, "writeAcceleratorEnabled", d.WriteAcceleratorEnabled)
return json.Marshal(objectMap)
}
@ -2624,12 +2632,24 @@ func (d *DataDisksToAttach) UnmarshalJSON(data []byte) error {
for key, val := range rawMsg {
var err error
switch key {
case "caching":
err = unpopulate(val, "Caching", &d.Caching)
delete(rawMsg, key)
case "deleteOption":
err = unpopulate(val, "DeleteOption", &d.DeleteOption)
delete(rawMsg, key)
case "diskEncryptionSet":
err = unpopulate(val, "DiskEncryptionSet", &d.DiskEncryptionSet)
delete(rawMsg, key)
case "diskId":
err = unpopulate(val, "DiskID", &d.DiskID)
delete(rawMsg, key)
case "lun":
err = unpopulate(val, "Lun", &d.Lun)
delete(rawMsg, key)
case "writeAcceleratorEnabled":
err = unpopulate(val, "WriteAcceleratorEnabled", &d.WriteAcceleratorEnabled)
delete(rawMsg, key)
}
if err != nil {
return fmt.Errorf("unmarshalling type %T: %v", d, err)
@ -4749,6 +4769,33 @@ func (e *EncryptionSettingsElement) UnmarshalJSON(data []byte) error {
return nil
}
// MarshalJSON implements the json.Marshaller interface for type EventGridAndResourceGraph.
func (e EventGridAndResourceGraph) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "enable", e.Enable)
return json.Marshal(objectMap)
}
// UnmarshalJSON implements the json.Unmarshaller interface for type EventGridAndResourceGraph.
func (e *EventGridAndResourceGraph) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", e, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "enable":
err = unpopulate(val, "Enable", &e.Enable)
delete(rawMsg, key)
}
if err != nil {
return fmt.Errorf("unmarshalling type %T: %v", e, err)
}
}
return nil
}
// MarshalJSON implements the json.Marshaller interface for type ExtendedLocation.
func (e ExtendedLocation) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
@ -5492,6 +5539,7 @@ func (g GalleryArtifactVersionFullSource) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "communityGalleryImageId", g.CommunityGalleryImageID)
populate(objectMap, "id", g.ID)
populate(objectMap, "virtualMachineId", g.VirtualMachineID)
return json.Marshal(objectMap)
}
@ -5510,6 +5558,9 @@ func (g *GalleryArtifactVersionFullSource) UnmarshalJSON(data []byte) error {
case "id":
err = unpopulate(val, "ID", &g.ID)
delete(rawMsg, key)
case "virtualMachineId":
err = unpopulate(val, "VirtualMachineID", &g.VirtualMachineID)
delete(rawMsg, key)
}
if err != nil {
return fmt.Errorf("unmarshalling type %T: %v", g, err)
@ -12307,6 +12358,68 @@ func (s *ScaleInPolicy) UnmarshalJSON(data []byte) error {
return nil
}
// MarshalJSON implements the json.Marshaller interface for type ScheduledEventsAdditionalPublishingTargets.
func (s ScheduledEventsAdditionalPublishingTargets) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "eventGridAndResourceGraph", s.EventGridAndResourceGraph)
return json.Marshal(objectMap)
}
// UnmarshalJSON implements the json.Unmarshaller interface for type ScheduledEventsAdditionalPublishingTargets.
func (s *ScheduledEventsAdditionalPublishingTargets) 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 "eventGridAndResourceGraph":
err = unpopulate(val, "EventGridAndResourceGraph", &s.EventGridAndResourceGraph)
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 ScheduledEventsPolicy.
func (s ScheduledEventsPolicy) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "scheduledEventsAdditionalPublishingTargets", s.ScheduledEventsAdditionalPublishingTargets)
populate(objectMap, "userInitiatedReboot", s.UserInitiatedReboot)
populate(objectMap, "userInitiatedRedeploy", s.UserInitiatedRedeploy)
return json.Marshal(objectMap)
}
// UnmarshalJSON implements the json.Unmarshaller interface for type ScheduledEventsPolicy.
func (s *ScheduledEventsPolicy) 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 "scheduledEventsAdditionalPublishingTargets":
err = unpopulate(val, "ScheduledEventsAdditionalPublishingTargets", &s.ScheduledEventsAdditionalPublishingTargets)
delete(rawMsg, key)
case "userInitiatedReboot":
err = unpopulate(val, "UserInitiatedReboot", &s.UserInitiatedReboot)
delete(rawMsg, key)
case "userInitiatedRedeploy":
err = unpopulate(val, "UserInitiatedRedeploy", &s.UserInitiatedRedeploy)
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 ScheduledEventsProfile.
func (s ScheduledEventsProfile) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
@ -14452,6 +14565,60 @@ func (u *UserAssignedIdentitiesValue) UnmarshalJSON(data []byte) error {
return nil
}
// MarshalJSON implements the json.Marshaller interface for type UserInitiatedReboot.
func (u UserInitiatedReboot) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "automaticallyApprove", u.AutomaticallyApprove)
return json.Marshal(objectMap)
}
// UnmarshalJSON implements the json.Unmarshaller interface for type UserInitiatedReboot.
func (u *UserInitiatedReboot) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", u, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "automaticallyApprove":
err = unpopulate(val, "AutomaticallyApprove", &u.AutomaticallyApprove)
delete(rawMsg, key)
}
if err != nil {
return fmt.Errorf("unmarshalling type %T: %v", u, err)
}
}
return nil
}
// MarshalJSON implements the json.Marshaller interface for type UserInitiatedRedeploy.
func (u UserInitiatedRedeploy) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "automaticallyApprove", u.AutomaticallyApprove)
return json.Marshal(objectMap)
}
// UnmarshalJSON implements the json.Unmarshaller interface for type UserInitiatedRedeploy.
func (u *UserInitiatedRedeploy) UnmarshalJSON(data []byte) error {
var rawMsg map[string]json.RawMessage
if err := json.Unmarshal(data, &rawMsg); err != nil {
return fmt.Errorf("unmarshalling type %T: %v", u, err)
}
for key, val := range rawMsg {
var err error
switch key {
case "automaticallyApprove":
err = unpopulate(val, "AutomaticallyApprove", &u.AutomaticallyApprove)
delete(rawMsg, key)
}
if err != nil {
return fmt.Errorf("unmarshalling type %T: %v", u, err)
}
}
return nil
}
// MarshalJSON implements the json.Marshaller interface for type VMDiskSecurityProfile.
func (v VMDiskSecurityProfile) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
@ -16139,6 +16306,7 @@ func (v VirtualMachineProperties) MarshalJSON() ([]byte, error) {
populate(objectMap, "priority", v.Priority)
populate(objectMap, "provisioningState", v.ProvisioningState)
populate(objectMap, "proximityPlacementGroup", v.ProximityPlacementGroup)
populate(objectMap, "scheduledEventsPolicy", v.ScheduledEventsPolicy)
populate(objectMap, "scheduledEventsProfile", v.ScheduledEventsProfile)
populate(objectMap, "securityProfile", v.SecurityProfile)
populate(objectMap, "storageProfile", v.StorageProfile)
@ -16215,6 +16383,9 @@ func (v *VirtualMachineProperties) UnmarshalJSON(data []byte) error {
case "proximityPlacementGroup":
err = unpopulate(val, "ProximityPlacementGroup", &v.ProximityPlacementGroup)
delete(rawMsg, key)
case "scheduledEventsPolicy":
err = unpopulate(val, "ScheduledEventsPolicy", &v.ScheduledEventsPolicy)
delete(rawMsg, key)
case "scheduledEventsProfile":
err = unpopulate(val, "ScheduledEventsProfile", &v.ScheduledEventsProfile)
delete(rawMsg, key)
@ -17733,6 +17904,7 @@ func (v VirtualMachineScaleSetProperties) MarshalJSON() ([]byte, error) {
populate(objectMap, "proximityPlacementGroup", v.ProximityPlacementGroup)
populate(objectMap, "resiliencyPolicy", v.ResiliencyPolicy)
populate(objectMap, "scaleInPolicy", v.ScaleInPolicy)
populate(objectMap, "scheduledEventsPolicy", v.ScheduledEventsPolicy)
populate(objectMap, "singlePlacementGroup", v.SinglePlacementGroup)
populate(objectMap, "spotRestorePolicy", v.SpotRestorePolicy)
populateDateTimeRFC3339(objectMap, "timeCreated", v.TimeCreated)
@ -17791,6 +17963,9 @@ func (v *VirtualMachineScaleSetProperties) UnmarshalJSON(data []byte) error {
case "scaleInPolicy":
err = unpopulate(val, "ScaleInPolicy", &v.ScaleInPolicy)
delete(rawMsg, key)
case "scheduledEventsPolicy":
err = unpopulate(val, "ScheduledEventsPolicy", &v.ScheduledEventsPolicy)
delete(rawMsg, key)
case "singlePlacementGroup":
err = unpopulate(val, "SinglePlacementGroup", &v.SinglePlacementGroup)
delete(rawMsg, key)
@ -17937,6 +18112,7 @@ func (v *VirtualMachineScaleSetPublicIPAddressConfigurationProperties) Unmarshal
func (v VirtualMachineScaleSetReimageParameters) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "exactVersion", v.ExactVersion)
populate(objectMap, "forceUpdateOSDiskForEphemeral", v.ForceUpdateOSDiskForEphemeral)
populate(objectMap, "instanceIds", v.InstanceIDs)
populate(objectMap, "osProfile", v.OSProfile)
populate(objectMap, "tempDisk", v.TempDisk)
@ -17955,6 +18131,9 @@ func (v *VirtualMachineScaleSetReimageParameters) UnmarshalJSON(data []byte) err
case "exactVersion":
err = unpopulate(val, "ExactVersion", &v.ExactVersion)
delete(rawMsg, key)
case "forceUpdateOSDiskForEphemeral":
err = unpopulate(val, "ForceUpdateOSDiskForEphemeral", &v.ForceUpdateOSDiskForEphemeral)
delete(rawMsg, key)
case "instanceIds":
err = unpopulate(val, "InstanceIDs", &v.InstanceIDs)
delete(rawMsg, key)
@ -18352,6 +18531,7 @@ func (v VirtualMachineScaleSetUpdateOSDisk) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "caching", v.Caching)
populate(objectMap, "deleteOption", v.DeleteOption)
populate(objectMap, "diffDiskSettings", v.DiffDiskSettings)
populate(objectMap, "diskSizeGB", v.DiskSizeGB)
populate(objectMap, "image", v.Image)
populate(objectMap, "managedDisk", v.ManagedDisk)
@ -18375,6 +18555,9 @@ func (v *VirtualMachineScaleSetUpdateOSDisk) UnmarshalJSON(data []byte) error {
case "deleteOption":
err = unpopulate(val, "DeleteOption", &v.DeleteOption)
delete(rawMsg, key)
case "diffDiskSettings":
err = unpopulate(val, "DiffDiskSettings", &v.DiffDiskSettings)
delete(rawMsg, key)
case "diskSizeGB":
err = unpopulate(val, "DiskSizeGB", &v.DiskSizeGB)
delete(rawMsg, key)
@ -19323,6 +19506,7 @@ func (v *VirtualMachineScaleSetVMProtectionPolicy) UnmarshalJSON(data []byte) er
func (v VirtualMachineScaleSetVMReimageParameters) MarshalJSON() ([]byte, error) {
objectMap := make(map[string]any)
populate(objectMap, "exactVersion", v.ExactVersion)
populate(objectMap, "forceUpdateOSDiskForEphemeral", v.ForceUpdateOSDiskForEphemeral)
populate(objectMap, "osProfile", v.OSProfile)
populate(objectMap, "tempDisk", v.TempDisk)
return json.Marshal(objectMap)
@ -19340,6 +19524,9 @@ func (v *VirtualMachineScaleSetVMReimageParameters) UnmarshalJSON(data []byte) e
case "exactVersion":
err = unpopulate(val, "ExactVersion", &v.ExactVersion)
delete(rawMsg, key)
case "forceUpdateOSDiskForEphemeral":
err = unpopulate(val, "ForceUpdateOSDiskForEphemeral", &v.ForceUpdateOSDiskForEphemeral)
delete(rawMsg, key)
case "osProfile":
err = unpopulate(val, "OSProfile", &v.OSProfile)
delete(rawMsg, key)
@ -19769,7 +19956,7 @@ func populateAny(m map[string]any, k string, v any) {
}
func unpopulate(data json.RawMessage, fn string, v any) error {
if data == nil {
if data == nil || string(data) == "null" {
return nil
}
if err := json.Unmarshal(data, v); err != nil {

View file

@ -39,7 +39,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO
// NewListPager - Gets a list of compute operations.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] {
return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{
@ -73,7 +73,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options *
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil

View file

@ -84,6 +84,13 @@ type CapacityReservationGroupsClientListBySubscriptionOptions struct {
// VM Instance or both resource Ids which are associated to capacity
// reservation group in the response.
Expand *ExpandTypesForGetCapacityReservationGroups
// The query option to fetch Capacity Reservation Group Resource Ids.
// 'CreatedInSubscription' enables fetching Resource Ids for all capacity reservation group resources created in the subscription.
// 'SharedWithSubscription' enables fetching Resource Ids for all capacity reservation group resources shared with the subscription.
// 'All' enables fetching Resource Ids for all capacity reservation group resources shared with the subscription and created
// in the subscription.
ResourceIDsOnly *ResourceIDOptionsForGetCapacityReservationGroups
}
// CapacityReservationGroupsClientUpdateOptions contains the optional parameters for the CapacityReservationGroupsClient.Update

View file

@ -47,7 +47,7 @@ func NewProximityPlacementGroupsClient(subscriptionID string, credential azcore.
// CreateOrUpdate - Create or update a proximity placement group.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - proximityPlacementGroupName - The name of the proximity placement group.
// - parameters - Parameters supplied to the Create Proximity Placement Group operation.
@ -95,7 +95,7 @@ func (client *ProximityPlacementGroupsClient) createOrUpdateCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -116,7 +116,7 @@ func (client *ProximityPlacementGroupsClient) createOrUpdateHandleResponse(resp
// Delete - Delete a proximity placement group.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - proximityPlacementGroupName - The name of the proximity placement group.
// - options - ProximityPlacementGroupsClientDeleteOptions contains the optional parameters for the ProximityPlacementGroupsClient.Delete
@ -162,7 +162,7 @@ func (client *ProximityPlacementGroupsClient) deleteCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -171,7 +171,7 @@ func (client *ProximityPlacementGroupsClient) deleteCreateRequest(ctx context.Co
// Get - Retrieves information about a proximity placement group .
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - proximityPlacementGroupName - The name of the proximity placement group.
// - options - ProximityPlacementGroupsClientGetOptions contains the optional parameters for the ProximityPlacementGroupsClient.Get
@ -218,10 +218,10 @@ func (client *ProximityPlacementGroupsClient) getCreateRequest(ctx context.Conte
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.IncludeColocationStatus != nil {
reqQP.Set("includeColocationStatus", *options.IncludeColocationStatus)
}
reqQP.Set("api-version", "2023-09-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -238,7 +238,7 @@ func (client *ProximityPlacementGroupsClient) getHandleResponse(resp *http.Respo
// NewListByResourceGroupPager - Lists all proximity placement groups in a resource group.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - ProximityPlacementGroupsClientListByResourceGroupOptions contains the optional parameters for the ProximityPlacementGroupsClient.NewListByResourceGroupPager
// method.
@ -281,7 +281,7 @@ func (client *ProximityPlacementGroupsClient) listByResourceGroupCreateRequest(c
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -298,7 +298,7 @@ func (client *ProximityPlacementGroupsClient) listByResourceGroupHandleResponse(
// NewListBySubscriptionPager - Lists all proximity placement groups in a subscription.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - options - ProximityPlacementGroupsClientListBySubscriptionOptions contains the optional parameters for the ProximityPlacementGroupsClient.NewListBySubscriptionPager
// method.
func (client *ProximityPlacementGroupsClient) NewListBySubscriptionPager(options *ProximityPlacementGroupsClientListBySubscriptionOptions) *runtime.Pager[ProximityPlacementGroupsClientListBySubscriptionResponse] {
@ -336,7 +336,7 @@ func (client *ProximityPlacementGroupsClient) listBySubscriptionCreateRequest(ct
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -354,7 +354,7 @@ func (client *ProximityPlacementGroupsClient) listBySubscriptionHandleResponse(r
// Update - Update a proximity placement group.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - proximityPlacementGroupName - The name of the proximity placement group.
// - parameters - Parameters supplied to the Update Proximity Placement Group operation.
@ -402,7 +402,7 @@ func (client *ProximityPlacementGroupsClient) updateCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {

View file

@ -83,10 +83,10 @@ func (client *ResourceSKUsClient) listCreateRequest(ctx context.Context, options
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2021-07-01")
if options != nil && options.Filter != nil {
reqQP.Set("$filter", *options.Filter)
}
reqQP.Set("api-version", "2021-07-01")
if options != nil && options.IncludeExtendedLocations != nil {
reqQP.Set("includeExtendedLocations", *options.IncludeExtendedLocations)
}

View file

@ -48,7 +48,7 @@ func NewRestorePointCollectionsClient(subscriptionID string, credential azcore.T
// for more details. When updating a restore point collection, only tags may be modified.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - restorePointCollectionName - The name of the restore point collection.
// - parameters - Parameters supplied to the Create or Update restore point collection operation.
@ -96,7 +96,7 @@ func (client *RestorePointCollectionsClient) createOrUpdateCreateRequest(ctx con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -118,7 +118,7 @@ func (client *RestorePointCollectionsClient) createOrUpdateHandleResponse(resp *
// points.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - restorePointCollectionName - The name of the Restore Point Collection.
// - options - RestorePointCollectionsClientBeginDeleteOptions contains the optional parameters for the RestorePointCollectionsClient.BeginDelete
@ -144,7 +144,7 @@ func (client *RestorePointCollectionsClient) BeginDelete(ctx context.Context, re
// points.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *RestorePointCollectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, restorePointCollectionName string, options *RestorePointCollectionsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "RestorePointCollectionsClient.BeginDelete"
@ -186,7 +186,7 @@ func (client *RestorePointCollectionsClient) deleteCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -195,7 +195,7 @@ func (client *RestorePointCollectionsClient) deleteCreateRequest(ctx context.Con
// Get - The operation to get the restore point collection.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - restorePointCollectionName - The name of the restore point collection.
// - options - RestorePointCollectionsClientGetOptions contains the optional parameters for the RestorePointCollectionsClient.Get
@ -245,7 +245,7 @@ func (client *RestorePointCollectionsClient) getCreateRequest(ctx context.Contex
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -262,7 +262,7 @@ func (client *RestorePointCollectionsClient) getHandleResponse(resp *http.Respon
// NewListPager - Gets the list of restore point collections in a resource group.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - RestorePointCollectionsClientListOptions contains the optional parameters for the RestorePointCollectionsClient.NewListPager
// method.
@ -305,7 +305,7 @@ func (client *RestorePointCollectionsClient) listCreateRequest(ctx context.Conte
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -324,7 +324,7 @@ func (client *RestorePointCollectionsClient) listHandleResponse(resp *http.Respo
// to get the next page of restore point collections. Do this till nextLink is not null to fetch all
// the restore point collections.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - options - RestorePointCollectionsClientListAllOptions contains the optional parameters for the RestorePointCollectionsClient.NewListAllPager
// method.
func (client *RestorePointCollectionsClient) NewListAllPager(options *RestorePointCollectionsClientListAllOptions) *runtime.Pager[RestorePointCollectionsClientListAllResponse] {
@ -362,7 +362,7 @@ func (client *RestorePointCollectionsClient) listAllCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -380,7 +380,7 @@ func (client *RestorePointCollectionsClient) listAllHandleResponse(resp *http.Re
// Update - The operation to update the restore point collection.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - restorePointCollectionName - The name of the restore point collection.
// - parameters - Parameters supplied to the Update restore point collection operation.
@ -428,7 +428,7 @@ func (client *RestorePointCollectionsClient) updateCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {

View file

@ -47,7 +47,7 @@ func NewRestorePointsClient(subscriptionID string, credential azcore.TokenCreden
// BeginCreate - The operation to create the restore point. Updating properties of an existing restore point is not allowed
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - restorePointCollectionName - The name of the restore point collection.
// - restorePointName - The name of the restore point.
@ -74,7 +74,7 @@ func (client *RestorePointsClient) BeginCreate(ctx context.Context, resourceGrou
// Create - The operation to create the restore point. Updating properties of an existing restore point is not allowed
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *RestorePointsClient) create(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, parameters RestorePoint, options *RestorePointsClientBeginCreateOptions) (*http.Response, error) {
var err error
const operationName = "RestorePointsClient.BeginCreate"
@ -120,7 +120,7 @@ func (client *RestorePointsClient) createCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -132,7 +132,7 @@ func (client *RestorePointsClient) createCreateRequest(ctx context.Context, reso
// BeginDelete - The operation to delete the restore point.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - restorePointCollectionName - The name of the Restore Point Collection.
// - restorePointName - The name of the restore point.
@ -158,7 +158,7 @@ func (client *RestorePointsClient) BeginDelete(ctx context.Context, resourceGrou
// Delete - The operation to delete the restore point.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *RestorePointsClient) deleteOperation(ctx context.Context, resourceGroupName string, restorePointCollectionName string, restorePointName string, options *RestorePointsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "RestorePointsClient.BeginDelete"
@ -204,7 +204,7 @@ func (client *RestorePointsClient) deleteCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -213,7 +213,7 @@ func (client *RestorePointsClient) deleteCreateRequest(ctx context.Context, reso
// Get - The operation to get the restore point.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - restorePointCollectionName - The name of the restore point collection.
// - restorePointName - The name of the restore point.
@ -267,7 +267,7 @@ func (client *RestorePointsClient) getCreateRequest(ctx context.Context, resourc
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil

View file

@ -47,7 +47,7 @@ func NewSharedGalleriesClient(subscriptionID string, credential azcore.TokenCred
// Get - Get a shared gallery by subscription id or tenant id.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - location - Resource location.
// - galleryUniqueName - The unique name of the Shared Gallery.
// - options - SharedGalleriesClientGetOptions contains the optional parameters for the SharedGalleriesClient.Get method.
@ -93,7 +93,7 @@ func (client *SharedGalleriesClient) getCreateRequest(ctx context.Context, locat
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -110,7 +110,7 @@ func (client *SharedGalleriesClient) getHandleResponse(resp *http.Response) (Sha
// NewListPager - List shared galleries by subscription id or tenant id.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - location - Resource location.
// - options - SharedGalleriesClientListOptions contains the optional parameters for the SharedGalleriesClient.NewListPager
// method.
@ -153,7 +153,7 @@ func (client *SharedGalleriesClient) listCreateRequest(ctx context.Context, loca
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
if options != nil && options.SharedTo != nil {
reqQP.Set("sharedTo", string(*options.SharedTo))
}

View file

@ -47,7 +47,7 @@ func NewSharedGalleryImagesClient(subscriptionID string, credential azcore.Token
// Get - Get a shared gallery image by subscription id or tenant id.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - location - Resource location.
// - galleryUniqueName - The unique name of the Shared Gallery.
// - galleryImageName - The name of the Shared Gallery Image Definition from which the Image Versions are to be listed.
@ -98,7 +98,7 @@ func (client *SharedGalleryImagesClient) getCreateRequest(ctx context.Context, l
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -115,7 +115,7 @@ func (client *SharedGalleryImagesClient) getHandleResponse(resp *http.Response)
// NewListPager - List shared gallery images by subscription id or tenant id.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - location - Resource location.
// - galleryUniqueName - The unique name of the Shared Gallery.
// - options - SharedGalleryImagesClientListOptions contains the optional parameters for the SharedGalleryImagesClient.NewListPager
@ -163,7 +163,7 @@ func (client *SharedGalleryImagesClient) listCreateRequest(ctx context.Context,
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
if options != nil && options.SharedTo != nil {
reqQP.Set("sharedTo", string(*options.SharedTo))
}

View file

@ -47,7 +47,7 @@ func NewSharedGalleryImageVersionsClient(subscriptionID string, credential azcor
// Get - Get a shared gallery image version by subscription id or tenant id.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - location - Resource location.
// - galleryUniqueName - The unique name of the Shared Gallery.
// - galleryImageName - The name of the Shared Gallery Image Definition from which the Image Versions are to be listed.
@ -106,7 +106,7 @@ func (client *SharedGalleryImageVersionsClient) getCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -123,7 +123,7 @@ func (client *SharedGalleryImageVersionsClient) getHandleResponse(resp *http.Res
// NewListPager - List shared gallery image versions by subscription id or tenant id.
//
// Generated from API version 2022-08-03
// Generated from API version 2023-07-03
// - location - Resource location.
// - galleryUniqueName - The unique name of the Shared Gallery.
// - galleryImageName - The name of the Shared Gallery Image Definition from which the Image Versions are to be listed.
@ -176,7 +176,7 @@ func (client *SharedGalleryImageVersionsClient) listCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2022-08-03")
reqQP.Set("api-version", "2023-07-03")
if options != nil && options.SharedTo != nil {
reqQP.Set("sharedTo", string(*options.SharedTo))
}

View file

@ -47,7 +47,7 @@ func NewSSHPublicKeysClient(subscriptionID string, credential azcore.TokenCreden
// Create - Creates a new SSH public key resource.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - sshPublicKeyName - The name of the SSH public key.
// - parameters - Parameters supplied to create the SSH public key.
@ -94,7 +94,7 @@ func (client *SSHPublicKeysClient) createCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -115,7 +115,7 @@ func (client *SSHPublicKeysClient) createHandleResponse(resp *http.Response) (SS
// Delete - Delete an SSH public key.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - sshPublicKeyName - The name of the SSH public key.
// - options - SSHPublicKeysClientDeleteOptions contains the optional parameters for the SSHPublicKeysClient.Delete method.
@ -160,7 +160,7 @@ func (client *SSHPublicKeysClient) deleteCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -171,7 +171,7 @@ func (client *SSHPublicKeysClient) deleteCreateRequest(ctx context.Context, reso
// SSH public key resource.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - sshPublicKeyName - The name of the SSH public key.
// - options - SSHPublicKeysClientGenerateKeyPairOptions contains the optional parameters for the SSHPublicKeysClient.GenerateKeyPair
@ -218,7 +218,7 @@ func (client *SSHPublicKeysClient) generateKeyPairCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.Parameters != nil {
@ -242,7 +242,7 @@ func (client *SSHPublicKeysClient) generateKeyPairHandleResponse(resp *http.Resp
// Get - Retrieves information about an SSH public key.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - sshPublicKeyName - The name of the SSH public key.
// - options - SSHPublicKeysClientGetOptions contains the optional parameters for the SSHPublicKeysClient.Get method.
@ -288,7 +288,7 @@ func (client *SSHPublicKeysClient) getCreateRequest(ctx context.Context, resourc
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -306,7 +306,7 @@ func (client *SSHPublicKeysClient) getHandleResponse(resp *http.Response) (SSHPu
// NewListByResourceGroupPager - Lists all of the SSH public keys in the specified resource group. Use the nextLink property
// in the response to get the next page of SSH public keys.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - SSHPublicKeysClientListByResourceGroupOptions contains the optional parameters for the SSHPublicKeysClient.NewListByResourceGroupPager
// method.
@ -349,7 +349,7 @@ func (client *SSHPublicKeysClient) listByResourceGroupCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -367,7 +367,7 @@ func (client *SSHPublicKeysClient) listByResourceGroupHandleResponse(resp *http.
// NewListBySubscriptionPager - Lists all of the SSH public keys in the subscription. Use the nextLink property in the response
// to get the next page of SSH public keys.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - options - SSHPublicKeysClientListBySubscriptionOptions contains the optional parameters for the SSHPublicKeysClient.NewListBySubscriptionPager
// method.
func (client *SSHPublicKeysClient) NewListBySubscriptionPager(options *SSHPublicKeysClientListBySubscriptionOptions) *runtime.Pager[SSHPublicKeysClientListBySubscriptionResponse] {
@ -405,7 +405,7 @@ func (client *SSHPublicKeysClient) listBySubscriptionCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -423,7 +423,7 @@ func (client *SSHPublicKeysClient) listBySubscriptionHandleResponse(resp *http.R
// Update - Updates a new SSH public key resource.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - sshPublicKeyName - The name of the SSH public key.
// - parameters - Parameters supplied to update the SSH public key.
@ -470,7 +470,7 @@ func (client *SSHPublicKeysClient) updateCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {

View file

@ -19,12 +19,16 @@ import (
)
// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases.
var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`)
var tzOffsetRegex = regexp.MustCompile(`(?:Z|z|\+|-)(?:\d+:\d+)*"*$`)
const (
utcDateTimeJSON = `"2006-01-02T15:04:05.999999999"`
utcDateTime = "2006-01-02T15:04:05.999999999"
dateTimeJSON = `"` + time.RFC3339Nano + `"`
utcDateTime = "2006-01-02T15:04:05.999999999"
utcDateTimeJSON = `"` + utcDateTime + `"`
utcDateTimeNoT = "2006-01-02 15:04:05.999999999"
utcDateTimeJSONNoT = `"` + utcDateTimeNoT + `"`
dateTimeNoT = `2006-01-02 15:04:05.999999999Z07:00`
dateTimeJSON = `"` + time.RFC3339Nano + `"`
dateTimeJSONNoT = `"` + dateTimeNoT + `"`
)
type dateTimeRFC3339 time.Time
@ -40,17 +44,33 @@ func (t dateTimeRFC3339) MarshalText() ([]byte, error) {
}
func (t *dateTimeRFC3339) UnmarshalJSON(data []byte) error {
layout := utcDateTimeJSON
if tzOffsetRegex.Match(data) {
tzOffset := tzOffsetRegex.Match(data)
hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t")
var layout string
if tzOffset && hasT {
layout = dateTimeJSON
} else if tzOffset {
layout = dateTimeJSONNoT
} else if hasT {
layout = utcDateTimeJSON
} else {
layout = utcDateTimeJSONNoT
}
return t.Parse(layout, string(data))
}
func (t *dateTimeRFC3339) UnmarshalText(data []byte) error {
layout := utcDateTime
if tzOffsetRegex.Match(data) {
tzOffset := tzOffsetRegex.Match(data)
hasT := strings.Contains(string(data), "T") || strings.Contains(string(data), "t")
var layout string
if tzOffset && hasT {
layout = time.RFC3339Nano
} else if tzOffset {
layout = dateTimeNoT
} else if hasT {
layout = utcDateTime
} else {
layout = utcDateTimeNoT
}
return t.Parse(layout, string(data))
}
@ -61,6 +81,10 @@ func (t *dateTimeRFC3339) Parse(layout, value string) error {
return err
}
func (t dateTimeRFC3339) String() string {
return time.Time(t).Format(time.RFC3339Nano)
}
func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) {
if t == nil {
return
@ -74,7 +98,7 @@ func populateDateTimeRFC3339(m map[string]any, k string, t *time.Time) {
}
func unpopulateDateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error {
if data == nil || strings.EqualFold(string(data), "null") {
if data == nil || string(data) == "null" {
return nil
}
var aux dateTimeRFC3339

View file

@ -47,7 +47,7 @@ func NewUsageClient(subscriptionID string, credential azcore.TokenCredential, op
// NewListPager - Gets, for the specified location, the current compute resource usage information as well as the limits for
// compute resources under the subscription.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The location for which resource usage is queried.
// - options - UsageClientListOptions contains the optional parameters for the UsageClient.NewListPager method.
func (client *UsageClient) NewListPager(location string, options *UsageClientListOptions) *runtime.Pager[UsageClientListResponse] {
@ -89,7 +89,7 @@ func (client *UsageClient) listCreateRequest(ctx context.Context, location strin
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil

View file

@ -48,7 +48,7 @@ func NewVirtualMachineExtensionImagesClient(subscriptionID string, credential az
// Get - Gets a virtual machine extension image.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - options - VirtualMachineExtensionImagesClientGetOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.Get
// method.
@ -102,7 +102,7 @@ func (client *VirtualMachineExtensionImagesClient) getCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -120,7 +120,7 @@ func (client *VirtualMachineExtensionImagesClient) getHandleResponse(resp *http.
// ListTypes - Gets a list of virtual machine extension image types.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - options - VirtualMachineExtensionImagesClientListTypesOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListTypes
// method.
@ -166,7 +166,7 @@ func (client *VirtualMachineExtensionImagesClient) listTypesCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -184,7 +184,7 @@ func (client *VirtualMachineExtensionImagesClient) listTypesHandleResponse(resp
// ListVersions - Gets a list of virtual machine extension image versions.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - options - VirtualMachineExtensionImagesClientListVersionsOptions contains the optional parameters for the VirtualMachineExtensionImagesClient.ListVersions
// method.
@ -237,13 +237,13 @@ func (client *VirtualMachineExtensionImagesClient) listVersionsCreateRequest(ctx
if options != nil && options.Filter != nil {
reqQP.Set("$filter", *options.Filter)
}
if options != nil && options.Top != nil {
reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10))
}
if options != nil && options.Orderby != nil {
reqQP.Set("$orderby", *options.Orderby)
}
reqQP.Set("api-version", "2023-09-01")
if options != nil && options.Top != nil {
reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10))
}
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil

View file

@ -47,7 +47,7 @@ func NewVirtualMachineExtensionsClient(subscriptionID string, credential azcore.
// BeginCreateOrUpdate - The operation to create or update the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine where the extension should be created or updated.
// - vmExtensionName - The name of the virtual machine extension.
@ -74,7 +74,7 @@ func (client *VirtualMachineExtensionsClient) BeginCreateOrUpdate(ctx context.Co
// CreateOrUpdate - The operation to create or update the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineExtensionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtension, options *VirtualMachineExtensionsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineExtensionsClient.BeginCreateOrUpdate"
@ -120,7 +120,7 @@ func (client *VirtualMachineExtensionsClient) createOrUpdateCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil {
@ -132,7 +132,7 @@ func (client *VirtualMachineExtensionsClient) createOrUpdateCreateRequest(ctx co
// BeginDelete - The operation to delete the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine where the extension should be deleted.
// - vmExtensionName - The name of the virtual machine extension.
@ -158,7 +158,7 @@ func (client *VirtualMachineExtensionsClient) BeginDelete(ctx context.Context, r
// Delete - The operation to delete the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineExtensionsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, options *VirtualMachineExtensionsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineExtensionsClient.BeginDelete"
@ -204,7 +204,7 @@ func (client *VirtualMachineExtensionsClient) deleteCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -213,7 +213,7 @@ func (client *VirtualMachineExtensionsClient) deleteCreateRequest(ctx context.Co
// Get - The operation to get the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine containing the extension.
// - vmExtensionName - The name of the virtual machine extension.
@ -268,7 +268,7 @@ func (client *VirtualMachineExtensionsClient) getCreateRequest(ctx context.Conte
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -286,7 +286,7 @@ func (client *VirtualMachineExtensionsClient) getHandleResponse(resp *http.Respo
// List - The operation to get all extensions of a Virtual Machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine containing the extension.
// - options - VirtualMachineExtensionsClientListOptions contains the optional parameters for the VirtualMachineExtensionsClient.List
@ -336,7 +336,7 @@ func (client *VirtualMachineExtensionsClient) listCreateRequest(ctx context.Cont
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -354,7 +354,7 @@ func (client *VirtualMachineExtensionsClient) listHandleResponse(resp *http.Resp
// BeginUpdate - The operation to update the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine where the extension should be updated.
// - vmExtensionName - The name of the virtual machine extension.
@ -381,7 +381,7 @@ func (client *VirtualMachineExtensionsClient) BeginUpdate(ctx context.Context, r
// Update - The operation to update the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineExtensionsClient) update(ctx context.Context, resourceGroupName string, vmName string, vmExtensionName string, extensionParameters VirtualMachineExtensionUpdate, options *VirtualMachineExtensionsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineExtensionsClient.BeginUpdate"
@ -427,7 +427,7 @@ func (client *VirtualMachineExtensionsClient) updateCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil {

View file

@ -48,7 +48,7 @@ func NewVirtualMachineImagesClient(subscriptionID string, credential azcore.Toke
// Get - Gets a virtual machine image.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - publisherName - A valid image publisher.
// - offer - A valid image publisher offer.
@ -110,7 +110,7 @@ func (client *VirtualMachineImagesClient) getCreateRequest(ctx context.Context,
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -128,7 +128,7 @@ func (client *VirtualMachineImagesClient) getHandleResponse(resp *http.Response)
// List - Gets a list of all virtual machine image versions for the specified location, publisher, offer, and SKU.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - publisherName - A valid image publisher.
// - offer - A valid image publisher offer.
@ -188,13 +188,13 @@ func (client *VirtualMachineImagesClient) listCreateRequest(ctx context.Context,
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
if options != nil && options.Top != nil {
reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10))
}
if options != nil && options.Orderby != nil {
reqQP.Set("$orderby", *options.Orderby)
}
reqQP.Set("api-version", "2023-09-01")
if options != nil && options.Top != nil {
reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10))
}
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -212,7 +212,7 @@ func (client *VirtualMachineImagesClient) listHandleResponse(resp *http.Response
// ListByEdgeZone - Gets a list of all virtual machine image versions for the specified edge zone
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - edgeZone - The name of the edge zone.
// - options - VirtualMachineImagesClientListByEdgeZoneOptions contains the optional parameters for the VirtualMachineImagesClient.ListByEdgeZone
@ -259,7 +259,7 @@ func (client *VirtualMachineImagesClient) listByEdgeZoneCreateRequest(ctx contex
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -277,7 +277,7 @@ func (client *VirtualMachineImagesClient) listByEdgeZoneHandleResponse(resp *htt
// ListOffers - Gets a list of virtual machine image offers for the specified location and publisher.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - publisherName - A valid image publisher.
// - options - VirtualMachineImagesClientListOffersOptions contains the optional parameters for the VirtualMachineImagesClient.ListOffers
@ -324,7 +324,7 @@ func (client *VirtualMachineImagesClient) listOffersCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -342,7 +342,7 @@ func (client *VirtualMachineImagesClient) listOffersHandleResponse(resp *http.Re
// ListPublishers - Gets a list of virtual machine image publishers for the specified Azure location.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - options - VirtualMachineImagesClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesClient.ListPublishers
// method.
@ -384,7 +384,7 @@ func (client *VirtualMachineImagesClient) listPublishersCreateRequest(ctx contex
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -402,7 +402,7 @@ func (client *VirtualMachineImagesClient) listPublishersHandleResponse(resp *htt
// ListSKUs - Gets a list of virtual machine image SKUs for the specified location, publisher, and offer.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - publisherName - A valid image publisher.
// - offer - A valid image publisher offer.
@ -454,7 +454,7 @@ func (client *VirtualMachineImagesClient) listSKUsCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil

View file

@ -48,7 +48,7 @@ func NewVirtualMachineImagesEdgeZoneClient(subscriptionID string, credential azc
// Get - Gets a virtual machine image in an edge zone.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - edgeZone - The name of the edge zone.
// - publisherName - A valid image publisher.
@ -115,7 +115,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) getCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -133,7 +133,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) getHandleResponse(resp *http.R
// List - Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, offer, and SKU.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - edgeZone - The name of the edge zone.
// - publisherName - A valid image publisher.
@ -198,13 +198,13 @@ func (client *VirtualMachineImagesEdgeZoneClient) listCreateRequest(ctx context.
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
if options != nil && options.Top != nil {
reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10))
}
if options != nil && options.Orderby != nil {
reqQP.Set("$orderby", *options.Orderby)
}
reqQP.Set("api-version", "2023-09-01")
if options != nil && options.Top != nil {
reqQP.Set("$top", strconv.FormatInt(int64(*options.Top), 10))
}
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -222,7 +222,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) listHandleResponse(resp *http.
// ListOffers - Gets a list of virtual machine image offers for the specified location, edge zone and publisher.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - edgeZone - The name of the edge zone.
// - publisherName - A valid image publisher.
@ -274,7 +274,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) listOffersCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -292,7 +292,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) listOffersHandleResponse(resp
// ListPublishers - Gets a list of virtual machine image publishers for the specified Azure location and edge zone.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - edgeZone - The name of the edge zone.
// - options - VirtualMachineImagesEdgeZoneClientListPublishersOptions contains the optional parameters for the VirtualMachineImagesEdgeZoneClient.ListPublishers
@ -339,7 +339,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) listPublishersCreateRequest(ct
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -357,7 +357,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) listPublishersHandleResponse(r
// ListSKUs - Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and offer.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The name of a supported Azure region.
// - edgeZone - The name of the edge zone.
// - publisherName - A valid image publisher.
@ -414,7 +414,7 @@ func (client *VirtualMachineImagesEdgeZoneClient) listSKUsCreateRequest(ctx cont
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil

View file

@ -47,7 +47,7 @@ func NewVirtualMachineRunCommandsClient(subscriptionID string, credential azcore
// BeginCreateOrUpdate - The operation to create or update the run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine where the run command should be created or updated.
// - runCommandName - The name of the virtual machine run command.
@ -74,7 +74,7 @@ func (client *VirtualMachineRunCommandsClient) BeginCreateOrUpdate(ctx context.C
// CreateOrUpdate - The operation to create or update the run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineRunCommandsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineRunCommandsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineRunCommandsClient.BeginCreateOrUpdate"
@ -120,7 +120,7 @@ func (client *VirtualMachineRunCommandsClient) createOrUpdateCreateRequest(ctx c
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
if err := runtime.MarshalAsJSON(req, runCommand); err != nil {
@ -132,7 +132,7 @@ func (client *VirtualMachineRunCommandsClient) createOrUpdateCreateRequest(ctx c
// BeginDelete - The operation to delete the run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine where the run command should be deleted.
// - runCommandName - The name of the virtual machine run command.
@ -158,7 +158,7 @@ func (client *VirtualMachineRunCommandsClient) BeginDelete(ctx context.Context,
// Delete - The operation to delete the run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineRunCommandsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, options *VirtualMachineRunCommandsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineRunCommandsClient.BeginDelete"
@ -204,7 +204,7 @@ func (client *VirtualMachineRunCommandsClient) deleteCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@ -213,7 +213,7 @@ func (client *VirtualMachineRunCommandsClient) deleteCreateRequest(ctx context.C
// Get - Gets specific run command for a subscription in a location.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The location upon which run commands is queried.
// - commandID - The command id.
// - options - VirtualMachineRunCommandsClientGetOptions contains the optional parameters for the VirtualMachineRunCommandsClient.Get
@ -260,7 +260,7 @@ func (client *VirtualMachineRunCommandsClient) getCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@ -278,7 +278,7 @@ func (client *VirtualMachineRunCommandsClient) getHandleResponse(resp *http.Resp
// GetByVirtualMachine - The operation to get the run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine containing the run command.
// - runCommandName - The name of the virtual machine run command.
@ -333,7 +333,7 @@ func (client *VirtualMachineRunCommandsClient) getByVirtualMachineCreateRequest(
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@ -350,7 +350,7 @@ func (client *VirtualMachineRunCommandsClient) getByVirtualMachineHandleResponse
// NewListPager - Lists all available run commands for a subscription in a location.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The location upon which run commands is queried.
// - options - VirtualMachineRunCommandsClientListOptions contains the optional parameters for the VirtualMachineRunCommandsClient.NewListPager
// method.
@ -393,7 +393,7 @@ func (client *VirtualMachineRunCommandsClient) listCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@ -410,7 +410,7 @@ func (client *VirtualMachineRunCommandsClient) listHandleResponse(resp *http.Res
// NewListByVirtualMachinePager - The operation to get all run commands of a Virtual Machine.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine containing the run command.
// - options - VirtualMachineRunCommandsClientListByVirtualMachineOptions contains the optional parameters for the VirtualMachineRunCommandsClient.NewListByVirtualMachinePager
@ -461,7 +461,7 @@ func (client *VirtualMachineRunCommandsClient) listByVirtualMachineCreateRequest
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@ -479,7 +479,7 @@ func (client *VirtualMachineRunCommandsClient) listByVirtualMachineHandleRespons
// BeginUpdate - The operation to update the run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine where the run command should be updated.
// - runCommandName - The name of the virtual machine run command.
@ -506,7 +506,7 @@ func (client *VirtualMachineRunCommandsClient) BeginUpdate(ctx context.Context,
// Update - The operation to update the run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineRunCommandsClient) update(ctx context.Context, resourceGroupName string, vmName string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineRunCommandsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineRunCommandsClient.BeginUpdate"
@ -552,7 +552,7 @@ func (client *VirtualMachineRunCommandsClient) updateCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
if err := runtime.MarshalAsJSON(req, runCommand); err != nil {

View file

@ -48,7 +48,7 @@ func NewVirtualMachinesClient(subscriptionID string, credential azcore.TokenCred
// BeginAssessPatches - Assess patches on the VM.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginAssessPatchesOptions contains the optional parameters for the VirtualMachinesClient.BeginAssessPatches
@ -74,7 +74,7 @@ func (client *VirtualMachinesClient) BeginAssessPatches(ctx context.Context, res
// AssessPatches - Assess patches on the VM.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) assessPatches(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginAssessPatchesOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginAssessPatches"
@ -116,7 +116,7 @@ func (client *VirtualMachinesClient) assessPatchesCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -125,7 +125,7 @@ func (client *VirtualMachinesClient) assessPatchesCreateRequest(ctx context.Cont
// BeginAttachDetachDataDisks - Attach and detach data disks to/from the virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - parameters - Parameters supplied to the attach and detach data disks operation on the virtual machine.
@ -152,7 +152,7 @@ func (client *VirtualMachinesClient) BeginAttachDetachDataDisks(ctx context.Cont
// AttachDetachDataDisks - Attach and detach data disks to/from the virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) attachDetachDataDisks(ctx context.Context, resourceGroupName string, vmName string, parameters AttachDetachDataDisksRequest, options *VirtualMachinesClientBeginAttachDetachDataDisksOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginAttachDetachDataDisks"
@ -194,7 +194,7 @@ func (client *VirtualMachinesClient) attachDetachDataDisksCreateRequest(ctx cont
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -207,7 +207,7 @@ func (client *VirtualMachinesClient) attachDetachDataDisksCreateRequest(ctx cont
// similar VMs.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - parameters - Parameters supplied to the Capture Virtual Machine operation.
@ -235,7 +235,7 @@ func (client *VirtualMachinesClient) BeginCapture(ctx context.Context, resourceG
// VMs.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) capture(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachineCaptureParameters, options *VirtualMachinesClientBeginCaptureOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginCapture"
@ -277,7 +277,7 @@ func (client *VirtualMachinesClient) captureCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -290,7 +290,7 @@ func (client *VirtualMachinesClient) captureCreateRequest(ctx context.Context, r
// before invoking this operation.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginConvertToManagedDisksOptions contains the optional parameters for the VirtualMachinesClient.BeginConvertToManagedDisks
@ -316,7 +316,7 @@ func (client *VirtualMachinesClient) BeginConvertToManagedDisks(ctx context.Cont
// before invoking this operation.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) convertToManagedDisks(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginConvertToManagedDisksOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginConvertToManagedDisks"
@ -358,7 +358,7 @@ func (client *VirtualMachinesClient) convertToManagedDisksCreateRequest(ctx cont
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -368,7 +368,7 @@ func (client *VirtualMachinesClient) convertToManagedDisksCreateRequest(ctx cont
// during virtual machine creation.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - parameters - Parameters supplied to the Create Virtual Machine operation.
@ -395,7 +395,7 @@ func (client *VirtualMachinesClient) BeginCreateOrUpdate(ctx context.Context, re
// virtual machine creation.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachine, options *VirtualMachinesClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginCreateOrUpdate"
@ -437,15 +437,15 @@ func (client *VirtualMachinesClient) createOrUpdateCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.IfMatch != nil {
req.Raw().Header["If-Match"] = []string{*options.IfMatch}
}
if options != nil && options.IfNoneMatch != nil {
req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch}
}
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
return nil, err
}
@ -456,7 +456,7 @@ func (client *VirtualMachinesClient) createOrUpdateCreateRequest(ctx context.Con
// resources that this virtual machine uses.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginDeallocateOptions contains the optional parameters for the VirtualMachinesClient.BeginDeallocate
@ -482,7 +482,7 @@ func (client *VirtualMachinesClient) BeginDeallocate(ctx context.Context, resour
// that this virtual machine uses.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) deallocate(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginDeallocateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginDeallocate"
@ -524,10 +524,10 @@ func (client *VirtualMachinesClient) deallocateCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.Hibernate != nil {
reqQP.Set("hibernate", strconv.FormatBool(*options.Hibernate))
}
reqQP.Set("api-version", "2023-09-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -536,7 +536,7 @@ func (client *VirtualMachinesClient) deallocateCreateRequest(ctx context.Context
// BeginDelete - The operation to delete a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginDeleteOptions contains the optional parameters for the VirtualMachinesClient.BeginDelete
@ -561,7 +561,7 @@ func (client *VirtualMachinesClient) BeginDelete(ctx context.Context, resourceGr
// Delete - The operation to delete a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) deleteOperation(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginDelete"
@ -603,10 +603,10 @@ func (client *VirtualMachinesClient) deleteCreateRequest(ctx context.Context, re
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.ForceDeletion != nil {
reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion))
}
reqQP.Set("api-version", "2023-09-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -619,7 +619,7 @@ func (client *VirtualMachinesClient) deleteCreateRequest(ctx context.Context, re
// [https://docs.microsoft.com/azure/virtual-machines/linux/capture-image].
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientGeneralizeOptions contains the optional parameters for the VirtualMachinesClient.Generalize
@ -665,7 +665,7 @@ func (client *VirtualMachinesClient) generalizeCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -674,7 +674,7 @@ func (client *VirtualMachinesClient) generalizeCreateRequest(ctx context.Context
// Get - Retrieves information about the model view or the instance view of a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientGetOptions contains the optional parameters for the VirtualMachinesClient.Get method.
@ -723,7 +723,7 @@ func (client *VirtualMachinesClient) getCreateRequest(ctx context.Context, resou
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -741,7 +741,7 @@ func (client *VirtualMachinesClient) getHandleResponse(resp *http.Response) (Vir
// BeginInstallPatches - Installs patches on the VM.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - installPatchesInput - Input for InstallPatches as directly received by the API
@ -768,7 +768,7 @@ func (client *VirtualMachinesClient) BeginInstallPatches(ctx context.Context, re
// InstallPatches - Installs patches on the VM.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) installPatches(ctx context.Context, resourceGroupName string, vmName string, installPatchesInput VirtualMachineInstallPatchesParameters, options *VirtualMachinesClientBeginInstallPatchesOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginInstallPatches"
@ -810,7 +810,7 @@ func (client *VirtualMachinesClient) installPatchesCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, installPatchesInput); err != nil {
@ -822,7 +822,7 @@ func (client *VirtualMachinesClient) installPatchesCreateRequest(ctx context.Con
// InstanceView - Retrieves information about the run-time state of a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientInstanceViewOptions contains the optional parameters for the VirtualMachinesClient.InstanceView
@ -869,7 +869,7 @@ func (client *VirtualMachinesClient) instanceViewCreateRequest(ctx context.Conte
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -887,7 +887,7 @@ func (client *VirtualMachinesClient) instanceViewHandleResponse(resp *http.Respo
// NewListPager - Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response
// to get the next page of virtual machines.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - VirtualMachinesClientListOptions contains the optional parameters for the VirtualMachinesClient.NewListPager
// method.
@ -930,13 +930,13 @@ func (client *VirtualMachinesClient) listCreateRequest(ctx context.Context, reso
return nil, err
}
reqQP := req.Raw().URL.Query()
if options != nil && options.Filter != nil {
reqQP.Set("$filter", *options.Filter)
}
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2023-09-01")
if options != nil && options.Filter != nil {
reqQP.Set("$filter", *options.Filter)
}
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -954,7 +954,7 @@ func (client *VirtualMachinesClient) listHandleResponse(resp *http.Response) (Vi
// NewListAllPager - Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response
// to get the next page of virtual machines.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - options - VirtualMachinesClientListAllOptions contains the optional parameters for the VirtualMachinesClient.NewListAllPager
// method.
func (client *VirtualMachinesClient) NewListAllPager(options *VirtualMachinesClientListAllOptions) *runtime.Pager[VirtualMachinesClientListAllResponse] {
@ -992,15 +992,15 @@ func (client *VirtualMachinesClient) listAllCreateRequest(ctx context.Context, o
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
if options != nil && options.StatusOnly != nil {
reqQP.Set("statusOnly", *options.StatusOnly)
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
if options != nil && options.Filter != nil {
reqQP.Set("$filter", *options.Filter)
}
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.StatusOnly != nil {
reqQP.Set("statusOnly", *options.StatusOnly)
}
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
@ -1018,7 +1018,7 @@ func (client *VirtualMachinesClient) listAllHandleResponse(resp *http.Response)
// NewListAvailableSizesPager - Lists all available virtual machine sizes to which the specified virtual machine can be resized.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientListAvailableSizesOptions contains the optional parameters for the VirtualMachinesClient.NewListAvailableSizesPager
@ -1067,7 +1067,7 @@ func (client *VirtualMachinesClient) listAvailableSizesCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1084,7 +1084,7 @@ func (client *VirtualMachinesClient) listAvailableSizesHandleResponse(resp *http
// NewListByLocationPager - Gets all the virtual machines under the specified subscription for the specified location.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The location for which virtual machines under the subscription are queried.
// - options - VirtualMachinesClientListByLocationOptions contains the optional parameters for the VirtualMachinesClient.NewListByLocationPager
// method.
@ -1127,7 +1127,7 @@ func (client *VirtualMachinesClient) listByLocationCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1145,7 +1145,7 @@ func (client *VirtualMachinesClient) listByLocationHandleResponse(resp *http.Res
// BeginPerformMaintenance - The operation to perform maintenance on a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachinesClient.BeginPerformMaintenance
@ -1170,7 +1170,7 @@ func (client *VirtualMachinesClient) BeginPerformMaintenance(ctx context.Context
// PerformMaintenance - The operation to perform maintenance on a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) performMaintenance(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginPerformMaintenanceOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginPerformMaintenance"
@ -1212,7 +1212,7 @@ func (client *VirtualMachinesClient) performMaintenanceCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1222,7 +1222,7 @@ func (client *VirtualMachinesClient) performMaintenanceCreateRequest(ctx context
// provisioned resources. You are still charged for this virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginPowerOffOptions contains the optional parameters for the VirtualMachinesClient.BeginPowerOff
@ -1248,7 +1248,7 @@ func (client *VirtualMachinesClient) BeginPowerOff(ctx context.Context, resource
// resources. You are still charged for this virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) powerOff(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginPowerOffOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginPowerOff"
@ -1290,10 +1290,10 @@ func (client *VirtualMachinesClient) powerOffCreateRequest(ctx context.Context,
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.SkipShutdown != nil {
reqQP.Set("skipShutdown", strconv.FormatBool(*options.SkipShutdown))
}
reqQP.Set("api-version", "2023-09-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1302,7 +1302,7 @@ func (client *VirtualMachinesClient) powerOffCreateRequest(ctx context.Context,
// BeginReapply - The operation to reapply a virtual machine's state.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginReapplyOptions contains the optional parameters for the VirtualMachinesClient.BeginReapply
@ -1327,7 +1327,7 @@ func (client *VirtualMachinesClient) BeginReapply(ctx context.Context, resourceG
// Reapply - The operation to reapply a virtual machine's state.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) reapply(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginReapplyOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginReapply"
@ -1369,7 +1369,7 @@ func (client *VirtualMachinesClient) reapplyCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1378,7 +1378,7 @@ func (client *VirtualMachinesClient) reapplyCreateRequest(ctx context.Context, r
// BeginRedeploy - Shuts down the virtual machine, moves it to a new node, and powers it back on.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginRedeployOptions contains the optional parameters for the VirtualMachinesClient.BeginRedeploy
@ -1403,7 +1403,7 @@ func (client *VirtualMachinesClient) BeginRedeploy(ctx context.Context, resource
// Redeploy - Shuts down the virtual machine, moves it to a new node, and powers it back on.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) redeploy(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginRedeployOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginRedeploy"
@ -1445,7 +1445,7 @@ func (client *VirtualMachinesClient) redeployCreateRequest(ctx context.Context,
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1458,7 +1458,7 @@ func (client *VirtualMachinesClient) redeployCreateRequest(ctx context.Context,
// will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginReimageOptions contains the optional parameters for the VirtualMachinesClient.BeginReimage
@ -1487,7 +1487,7 @@ func (client *VirtualMachinesClient) BeginReimage(ctx context.Context, resourceG
// will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) reimage(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginReimageOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginReimage"
@ -1529,7 +1529,7 @@ func (client *VirtualMachinesClient) reimageCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.Parameters != nil {
@ -1544,7 +1544,7 @@ func (client *VirtualMachinesClient) reimageCreateRequest(ctx context.Context, r
// BeginRestart - The operation to restart a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginRestartOptions contains the optional parameters for the VirtualMachinesClient.BeginRestart
@ -1569,7 +1569,7 @@ func (client *VirtualMachinesClient) BeginRestart(ctx context.Context, resourceG
// Restart - The operation to restart a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) restart(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginRestartOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginRestart"
@ -1611,7 +1611,7 @@ func (client *VirtualMachinesClient) restartCreateRequest(ctx context.Context, r
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1620,7 +1620,7 @@ func (client *VirtualMachinesClient) restartCreateRequest(ctx context.Context, r
// RetrieveBootDiagnosticsData - The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientRetrieveBootDiagnosticsDataOptions contains the optional parameters for the VirtualMachinesClient.RetrieveBootDiagnosticsData
@ -1667,10 +1667,10 @@ func (client *VirtualMachinesClient) retrieveBootDiagnosticsDataCreateRequest(ct
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.SasURIExpirationTimeInMinutes != nil {
reqQP.Set("sasUriExpirationTimeInMinutes", strconv.FormatInt(int64(*options.SasURIExpirationTimeInMinutes), 10))
}
reqQP.Set("api-version", "2023-09-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1688,7 +1688,7 @@ func (client *VirtualMachinesClient) retrieveBootDiagnosticsDataHandleResponse(r
// BeginRunCommand - Run command on the VM.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - parameters - Parameters supplied to the Run command operation.
@ -1715,7 +1715,7 @@ func (client *VirtualMachinesClient) BeginRunCommand(ctx context.Context, resour
// RunCommand - Run command on the VM.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) runCommand(ctx context.Context, resourceGroupName string, vmName string, parameters RunCommandInput, options *VirtualMachinesClientBeginRunCommandOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginRunCommand"
@ -1757,7 +1757,7 @@ func (client *VirtualMachinesClient) runCommandCreateRequest(ctx context.Context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -1769,7 +1769,7 @@ func (client *VirtualMachinesClient) runCommandCreateRequest(ctx context.Context
// SimulateEviction - The operation to simulate the eviction of spot virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientSimulateEvictionOptions contains the optional parameters for the VirtualMachinesClient.SimulateEviction
@ -1815,7 +1815,7 @@ func (client *VirtualMachinesClient) simulateEvictionCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1824,7 +1824,7 @@ func (client *VirtualMachinesClient) simulateEvictionCreateRequest(ctx context.C
// BeginStart - The operation to start a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - options - VirtualMachinesClientBeginStartOptions contains the optional parameters for the VirtualMachinesClient.BeginStart
@ -1849,7 +1849,7 @@ func (client *VirtualMachinesClient) BeginStart(ctx context.Context, resourceGro
// Start - The operation to start a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) start(ctx context.Context, resourceGroupName string, vmName string, options *VirtualMachinesClientBeginStartOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginStart"
@ -1891,7 +1891,7 @@ func (client *VirtualMachinesClient) startCreateRequest(ctx context.Context, res
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1900,7 +1900,7 @@ func (client *VirtualMachinesClient) startCreateRequest(ctx context.Context, res
// BeginUpdate - The operation to update a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmName - The name of the virtual machine.
// - parameters - Parameters supplied to the Update Virtual Machine operation.
@ -1926,7 +1926,7 @@ func (client *VirtualMachinesClient) BeginUpdate(ctx context.Context, resourceGr
// Update - The operation to update a virtual machine.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachinesClient) update(ctx context.Context, resourceGroupName string, vmName string, parameters VirtualMachineUpdate, options *VirtualMachinesClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachinesClient.BeginUpdate"
@ -1968,15 +1968,15 @@ func (client *VirtualMachinesClient) updateCreateRequest(ctx context.Context, re
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.IfMatch != nil {
req.Raw().Header["If-Match"] = []string{*options.IfMatch}
}
if options != nil && options.IfNoneMatch != nil {
req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch}
}
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
return nil, err
}

View file

@ -47,7 +47,7 @@ func NewVirtualMachineScaleSetExtensionsClient(subscriptionID string, credential
// BeginCreateOrUpdate - The operation to create or update an extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set where the extension should be create or updated.
// - vmssExtensionName - The name of the VM scale set extension.
@ -74,7 +74,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) BeginCreateOrUpdate(ctx co
// CreateOrUpdate - The operation to create or update an extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetExtensionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, extensionParameters VirtualMachineScaleSetExtension, options *VirtualMachineScaleSetExtensionsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetExtensionsClient.BeginCreateOrUpdate"
@ -120,7 +120,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) createOrUpdateCreateReques
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil {
@ -132,7 +132,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) createOrUpdateCreateReques
// BeginDelete - The operation to delete the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set where the extension should be deleted.
// - vmssExtensionName - The name of the VM scale set extension.
@ -158,7 +158,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) BeginDelete(ctx context.Co
// Delete - The operation to delete the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetExtensionsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, options *VirtualMachineScaleSetExtensionsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetExtensionsClient.BeginDelete"
@ -204,7 +204,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) deleteCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -213,7 +213,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) deleteCreateRequest(ctx co
// Get - The operation to get the extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set containing the extension.
// - vmssExtensionName - The name of the VM scale set extension.
@ -268,7 +268,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) getCreateRequest(ctx conte
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -285,7 +285,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) getHandleResponse(resp *ht
// NewListPager - Gets a list of all extensions in a VM scale set.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set containing the extension.
// - options - VirtualMachineScaleSetExtensionsClientListOptions contains the optional parameters for the VirtualMachineScaleSetExtensionsClient.NewListPager
@ -333,7 +333,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) listCreateRequest(ctx cont
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -351,7 +351,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) listHandleResponse(resp *h
// BeginUpdate - The operation to update an extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set where the extension should be updated.
// - vmssExtensionName - The name of the VM scale set extension.
@ -378,7 +378,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) BeginUpdate(ctx context.Co
// Update - The operation to update an extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetExtensionsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmssExtensionName string, extensionParameters VirtualMachineScaleSetExtensionUpdate, options *VirtualMachineScaleSetExtensionsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetExtensionsClient.BeginUpdate"
@ -424,7 +424,7 @@ func (client *VirtualMachineScaleSetExtensionsClient) updateCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil {

View file

@ -47,7 +47,7 @@ func NewVirtualMachineScaleSetRollingUpgradesClient(subscriptionID string, crede
// BeginCancel - Cancels the current virtual machine scale set rolling upgrade.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.BeginCancel
@ -72,7 +72,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) BeginCancel(ctx conte
// Cancel - Cancels the current virtual machine scale set rolling upgrade.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetRollingUpgradesClient) cancel(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginCancelOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetRollingUpgradesClient.BeginCancel"
@ -114,7 +114,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) cancelCreateRequest(c
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -123,7 +123,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) cancelCreateRequest(c
// GetLatest - Gets the status of the latest virtual machine scale set rolling upgrade.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetRollingUpgradesClientGetLatestOptions contains the optional parameters for the VirtualMachineScaleSetRollingUpgradesClient.GetLatest
@ -170,7 +170,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) getLatestCreateReques
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -190,7 +190,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) getLatestHandleRespon
// are not affected.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions contains the optional parameters
@ -217,7 +217,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) BeginStartExtensionUp
// are not affected.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetRollingUpgradesClient) startExtensionUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginStartExtensionUpgradeOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetRollingUpgradesClient.BeginStartExtensionUpgrade"
@ -259,7 +259,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) startExtensionUpgrade
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -270,7 +270,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) startExtensionUpgrade
// affected.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions contains the optional parameters for the
@ -297,7 +297,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) BeginStartOSUpgrade(c
// affected.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetRollingUpgradesClient) startOSUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetRollingUpgradesClientBeginStartOSUpgradeOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetRollingUpgradesClient.BeginStartOSUpgrade"
@ -339,7 +339,7 @@ func (client *VirtualMachineScaleSetRollingUpgradesClient) startOSUpgradeCreateR
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil

View file

@ -49,7 +49,7 @@ func NewVirtualMachineScaleSetsClient(subscriptionID string, credential azcore.T
// scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginApproveRollingUpgradeOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginApproveRollingUpgrade
@ -75,7 +75,7 @@ func (client *VirtualMachineScaleSetsClient) BeginApproveRollingUpgrade(ctx cont
// set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) approveRollingUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginApproveRollingUpgradeOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginApproveRollingUpgrade"
@ -117,7 +117,7 @@ func (client *VirtualMachineScaleSetsClient) approveRollingUpgradeCreateRequest(
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMInstanceIDs != nil {
@ -132,7 +132,7 @@ func (client *VirtualMachineScaleSetsClient) approveRollingUpgradeCreateRequest(
// ConvertToSinglePlacementGroup - Converts SinglePlacementGroup property to false for a existing virtual machine scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the virtual machine scale set to create or update.
// - parameters - The input object for ConvertToSinglePlacementGroup API.
@ -179,7 +179,7 @@ func (client *VirtualMachineScaleSetsClient) convertToSinglePlacementGroupCreate
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -191,7 +191,7 @@ func (client *VirtualMachineScaleSetsClient) convertToSinglePlacementGroupCreate
// BeginCreateOrUpdate - Create or update a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set to create or update.
// - parameters - The scale set object.
@ -217,7 +217,7 @@ func (client *VirtualMachineScaleSetsClient) BeginCreateOrUpdate(ctx context.Con
// CreateOrUpdate - Create or update a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VirtualMachineScaleSet, options *VirtualMachineScaleSetsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginCreateOrUpdate"
@ -259,15 +259,15 @@ func (client *VirtualMachineScaleSetsClient) createOrUpdateCreateRequest(ctx con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.IfMatch != nil {
req.Raw().Header["If-Match"] = []string{*options.IfMatch}
}
if options != nil && options.IfNoneMatch != nil {
req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch}
}
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
return nil, err
}
@ -279,7 +279,7 @@ func (client *VirtualMachineScaleSetsClient) createOrUpdateCreateRequest(ctx con
// scale set deallocates.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginDeallocateOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDeallocate
@ -306,7 +306,7 @@ func (client *VirtualMachineScaleSetsClient) BeginDeallocate(ctx context.Context
// scale set deallocates.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) deallocate(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginDeallocateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginDeallocate"
@ -348,10 +348,10 @@ func (client *VirtualMachineScaleSetsClient) deallocateCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.Hibernate != nil {
reqQP.Set("hibernate", strconv.FormatBool(*options.Hibernate))
}
reqQP.Set("api-version", "2023-09-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMInstanceIDs != nil {
@ -366,7 +366,7 @@ func (client *VirtualMachineScaleSetsClient) deallocateCreateRequest(ctx context
// BeginDelete - Deletes a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginDeleteOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginDelete
@ -391,7 +391,7 @@ func (client *VirtualMachineScaleSetsClient) BeginDelete(ctx context.Context, re
// Delete - Deletes a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginDelete"
@ -433,10 +433,10 @@ func (client *VirtualMachineScaleSetsClient) deleteCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.ForceDeletion != nil {
reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion))
}
reqQP.Set("api-version", "2023-09-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -445,7 +445,7 @@ func (client *VirtualMachineScaleSetsClient) deleteCreateRequest(ctx context.Con
// BeginDeleteInstances - Deletes virtual machines in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
@ -471,7 +471,7 @@ func (client *VirtualMachineScaleSetsClient) BeginDeleteInstances(ctx context.Co
// DeleteInstances - Deletes virtual machines in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) deleteInstances(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, options *VirtualMachineScaleSetsClientBeginDeleteInstancesOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginDeleteInstances"
@ -513,10 +513,10 @@ func (client *VirtualMachineScaleSetsClient) deleteInstancesCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.ForceDeletion != nil {
reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion))
}
reqQP.Set("api-version", "2023-09-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, vmInstanceIDs); err != nil {
@ -529,7 +529,7 @@ func (client *VirtualMachineScaleSetsClient) deleteInstancesCreateRequest(ctx co
// service fabric virtual machine scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - platformUpdateDomain - The platform update domain for which a manual recovery walk is requested
@ -577,14 +577,14 @@ func (client *VirtualMachineScaleSetsClient) forceRecoveryServiceFabricPlatformU
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.PlacementGroupID != nil {
reqQP.Set("placementGroupId", *options.PlacementGroupID)
}
reqQP.Set("platformUpdateDomain", strconv.FormatInt(int64(platformUpdateDomain), 10))
if options != nil && options.Zone != nil {
reqQP.Set("zone", *options.Zone)
}
if options != nil && options.PlacementGroupID != nil {
reqQP.Set("placementGroupId", *options.PlacementGroupID)
}
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -602,7 +602,7 @@ func (client *VirtualMachineScaleSetsClient) forceRecoveryServiceFabricPlatformU
// Get - Display information about a virtual machine scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientGetOptions contains the optional parameters for the VirtualMachineScaleSetsClient.Get
@ -649,10 +649,10 @@ func (client *VirtualMachineScaleSetsClient) getCreateRequest(ctx context.Contex
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -670,7 +670,7 @@ func (client *VirtualMachineScaleSetsClient) getHandleResponse(resp *http.Respon
// GetInstanceView - Gets the status of a VM scale set instance.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientGetInstanceViewOptions contains the optional parameters for the VirtualMachineScaleSetsClient.GetInstanceView
@ -717,7 +717,7 @@ func (client *VirtualMachineScaleSetsClient) getInstanceViewCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -734,7 +734,7 @@ func (client *VirtualMachineScaleSetsClient) getInstanceViewHandleResponse(resp
// NewGetOSUpgradeHistoryPager - Gets list of OS upgrades on a VM scale set instance.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientGetOSUpgradeHistoryOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewGetOSUpgradeHistoryPager
@ -782,7 +782,7 @@ func (client *VirtualMachineScaleSetsClient) getOSUpgradeHistoryCreateRequest(ct
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -799,7 +799,7 @@ func (client *VirtualMachineScaleSetsClient) getOSUpgradeHistoryHandleResponse(r
// NewListPager - Gets a list of all VM scale sets under a resource group.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - options - VirtualMachineScaleSetsClientListOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListPager
// method.
@ -842,7 +842,7 @@ func (client *VirtualMachineScaleSetsClient) listCreateRequest(ctx context.Conte
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -861,7 +861,7 @@ func (client *VirtualMachineScaleSetsClient) listHandleResponse(resp *http.Respo
// nextLink property in the response to get the next page of VM Scale Sets. Do this till nextLink is
// null to fetch all the VM Scale Sets.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - options - VirtualMachineScaleSetsClientListAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListAllPager
// method.
func (client *VirtualMachineScaleSetsClient) NewListAllPager(options *VirtualMachineScaleSetsClientListAllOptions) *runtime.Pager[VirtualMachineScaleSetsClientListAllResponse] {
@ -899,7 +899,7 @@ func (client *VirtualMachineScaleSetsClient) listAllCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -916,7 +916,7 @@ func (client *VirtualMachineScaleSetsClient) listAllHandleResponse(resp *http.Re
// NewListByLocationPager - Gets all the VM scale sets under the specified subscription for the specified location.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The location for which VM scale sets under the subscription are queried.
// - options - VirtualMachineScaleSetsClientListByLocationOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListByLocationPager
// method.
@ -959,7 +959,7 @@ func (client *VirtualMachineScaleSetsClient) listByLocationCreateRequest(ctx con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -977,7 +977,7 @@ func (client *VirtualMachineScaleSetsClient) listByLocationHandleResponse(resp *
// NewListSKUsPager - Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances
// allowed for each SKU.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientListSKUsOptions contains the optional parameters for the VirtualMachineScaleSetsClient.NewListSKUsPager
@ -1025,7 +1025,7 @@ func (client *VirtualMachineScaleSetsClient) listSKUsCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1045,7 +1045,7 @@ func (client *VirtualMachineScaleSetsClient) listSKUsHandleResponse(resp *http.R
// details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPerformMaintenance
@ -1072,7 +1072,7 @@ func (client *VirtualMachineScaleSetsClient) BeginPerformMaintenance(ctx context
// details: https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-maintenance-notifications
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) performMaintenance(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginPerformMaintenanceOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginPerformMaintenance"
@ -1114,7 +1114,7 @@ func (client *VirtualMachineScaleSetsClient) performMaintenanceCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMInstanceIDs != nil {
@ -1131,7 +1131,7 @@ func (client *VirtualMachineScaleSetsClient) performMaintenanceCreateRequest(ctx
// avoid charges.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginPowerOffOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginPowerOff
@ -1158,7 +1158,7 @@ func (client *VirtualMachineScaleSetsClient) BeginPowerOff(ctx context.Context,
// avoid charges.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) powerOff(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginPowerOffOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginPowerOff"
@ -1200,10 +1200,10 @@ func (client *VirtualMachineScaleSetsClient) powerOffCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.SkipShutdown != nil {
reqQP.Set("skipShutdown", strconv.FormatBool(*options.SkipShutdown))
}
reqQP.Set("api-version", "2023-09-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMInstanceIDs != nil {
@ -1218,7 +1218,7 @@ func (client *VirtualMachineScaleSetsClient) powerOffCreateRequest(ctx context.C
// BeginReapply - Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginReapplyOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReapply
@ -1244,7 +1244,7 @@ func (client *VirtualMachineScaleSetsClient) BeginReapply(ctx context.Context, r
// Reapply - Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) reapply(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReapplyOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginReapply"
@ -1286,7 +1286,7 @@ func (client *VirtualMachineScaleSetsClient) reapplyCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1296,7 +1296,7 @@ func (client *VirtualMachineScaleSetsClient) reapplyCreateRequest(ctx context.Co
// them back on.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginRedeployOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRedeploy
@ -1322,7 +1322,7 @@ func (client *VirtualMachineScaleSetsClient) BeginRedeploy(ctx context.Context,
// back on.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) redeploy(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginRedeployOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginRedeploy"
@ -1364,7 +1364,7 @@ func (client *VirtualMachineScaleSetsClient) redeployCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMInstanceIDs != nil {
@ -1381,7 +1381,7 @@ func (client *VirtualMachineScaleSetsClient) redeployCreateRequest(ctx context.C
// reset to initial state.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginReimageOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimage
@ -1408,7 +1408,7 @@ func (client *VirtualMachineScaleSetsClient) BeginReimage(ctx context.Context, r
// reset to initial state.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) reimage(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReimageOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginReimage"
@ -1450,7 +1450,7 @@ func (client *VirtualMachineScaleSetsClient) reimageCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMScaleSetReimageInput != nil {
@ -1466,7 +1466,7 @@ func (client *VirtualMachineScaleSetsClient) reimageCreateRequest(ctx context.Co
// is only supported for managed disks.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginReimageAllOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginReimageAll
@ -1492,7 +1492,7 @@ func (client *VirtualMachineScaleSetsClient) BeginReimageAll(ctx context.Context
// is only supported for managed disks.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) reimageAll(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginReimageAllOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginReimageAll"
@ -1534,7 +1534,7 @@ func (client *VirtualMachineScaleSetsClient) reimageAllCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMInstanceIDs != nil {
@ -1549,7 +1549,7 @@ func (client *VirtualMachineScaleSetsClient) reimageAllCreateRequest(ctx context
// BeginRestart - Restarts one or more virtual machines in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginRestartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginRestart
@ -1574,7 +1574,7 @@ func (client *VirtualMachineScaleSetsClient) BeginRestart(ctx context.Context, r
// Restart - Restarts one or more virtual machines in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) restart(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginRestartOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginRestart"
@ -1616,7 +1616,7 @@ func (client *VirtualMachineScaleSetsClient) restartCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMInstanceIDs != nil {
@ -1631,7 +1631,7 @@ func (client *VirtualMachineScaleSetsClient) restartCreateRequest(ctx context.Co
// BeginSetOrchestrationServiceState - Changes ServiceState property for a given service
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the virtual machine scale set to create or update.
// - parameters - The input object for SetOrchestrationServiceState API.
@ -1657,7 +1657,7 @@ func (client *VirtualMachineScaleSetsClient) BeginSetOrchestrationServiceState(c
// SetOrchestrationServiceState - Changes ServiceState property for a given service
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) setOrchestrationServiceState(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters OrchestrationServiceStateInput, options *VirtualMachineScaleSetsClientBeginSetOrchestrationServiceStateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginSetOrchestrationServiceState"
@ -1699,7 +1699,7 @@ func (client *VirtualMachineScaleSetsClient) setOrchestrationServiceStateCreateR
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -1711,7 +1711,7 @@ func (client *VirtualMachineScaleSetsClient) setOrchestrationServiceStateCreateR
// BeginStart - Starts one or more virtual machines in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetsClientBeginStartOptions contains the optional parameters for the VirtualMachineScaleSetsClient.BeginStart
@ -1736,7 +1736,7 @@ func (client *VirtualMachineScaleSetsClient) BeginStart(ctx context.Context, res
// Start - Starts one or more virtual machines in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) start(ctx context.Context, resourceGroupName string, vmScaleSetName string, options *VirtualMachineScaleSetsClientBeginStartOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginStart"
@ -1778,7 +1778,7 @@ func (client *VirtualMachineScaleSetsClient) startCreateRequest(ctx context.Cont
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMInstanceIDs != nil {
@ -1793,7 +1793,7 @@ func (client *VirtualMachineScaleSetsClient) startCreateRequest(ctx context.Cont
// BeginUpdate - Update a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set to create or update.
// - parameters - The scale set object.
@ -1819,7 +1819,7 @@ func (client *VirtualMachineScaleSetsClient) BeginUpdate(ctx context.Context, re
// Update - Update a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, parameters VirtualMachineScaleSetUpdate, options *VirtualMachineScaleSetsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginUpdate"
@ -1861,15 +1861,15 @@ func (client *VirtualMachineScaleSetsClient) updateCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.IfMatch != nil {
req.Raw().Header["If-Match"] = []string{*options.IfMatch}
}
if options != nil && options.IfNoneMatch != nil {
req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch}
}
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
return nil, err
}
@ -1879,7 +1879,7 @@ func (client *VirtualMachineScaleSetsClient) updateCreateRequest(ctx context.Con
// BeginUpdateInstances - Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - vmInstanceIDs - A list of virtual machine instance IDs from the VM scale set.
@ -1905,7 +1905,7 @@ func (client *VirtualMachineScaleSetsClient) BeginUpdateInstances(ctx context.Co
// UpdateInstances - Upgrades one or more virtual machines to the latest SKU set in the VM scale set model.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetsClient) updateInstances(ctx context.Context, resourceGroupName string, vmScaleSetName string, vmInstanceIDs VirtualMachineScaleSetVMInstanceRequiredIDs, options *VirtualMachineScaleSetsClientBeginUpdateInstancesOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetsClient.BeginUpdateInstances"
@ -1947,7 +1947,7 @@ func (client *VirtualMachineScaleSetsClient) updateInstancesCreateRequest(ctx co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, vmInstanceIDs); err != nil {

View file

@ -47,7 +47,7 @@ func NewVirtualMachineScaleSetVMExtensionsClient(subscriptionID string, credenti
// BeginCreateOrUpdate - The operation to create or update the VMSS VM extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -75,7 +75,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) BeginCreateOrUpdate(ctx
// CreateOrUpdate - The operation to create or update the VMSS VM extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMExtensionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, extensionParameters VirtualMachineScaleSetVMExtension, options *VirtualMachineScaleSetVMExtensionsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMExtensionsClient.BeginCreateOrUpdate"
@ -125,7 +125,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) createOrUpdateCreateRequ
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil {
@ -137,7 +137,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) createOrUpdateCreateRequ
// BeginDelete - The operation to delete the VMSS VM extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -164,7 +164,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) BeginDelete(ctx context.
// Delete - The operation to delete the VMSS VM extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMExtensionsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, options *VirtualMachineScaleSetVMExtensionsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMExtensionsClient.BeginDelete"
@ -214,7 +214,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) deleteCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -223,7 +223,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) deleteCreateRequest(ctx
// Get - The operation to get the VMSS VM extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -283,7 +283,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) getCreateRequest(ctx con
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -301,7 +301,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) getHandleResponse(resp *
// List - The operation to get all extensions of an instance in Virtual Machine Scaleset.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -356,7 +356,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) listCreateRequest(ctx co
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -374,7 +374,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) listHandleResponse(resp
// BeginUpdate - The operation to update the VMSS VM extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -402,7 +402,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) BeginUpdate(ctx context.
// Update - The operation to update the VMSS VM extension.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMExtensionsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, vmExtensionName string, extensionParameters VirtualMachineScaleSetVMExtensionUpdate, options *VirtualMachineScaleSetVMExtensionsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMExtensionsClient.BeginUpdate"
@ -452,7 +452,7 @@ func (client *VirtualMachineScaleSetVMExtensionsClient) updateCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, extensionParameters); err != nil {

View file

@ -47,7 +47,7 @@ func NewVirtualMachineScaleSetVMRunCommandsClient(subscriptionID string, credent
// BeginCreateOrUpdate - The operation to create or update the VMSS VM run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -75,7 +75,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) BeginCreateOrUpdate(ctx
// CreateOrUpdate - The operation to create or update the VMSS VM run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMRunCommandsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommand, options *VirtualMachineScaleSetVMRunCommandsClientBeginCreateOrUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMRunCommandsClient.BeginCreateOrUpdate"
@ -125,7 +125,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) createOrUpdateCreateReq
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
if err := runtime.MarshalAsJSON(req, runCommand); err != nil {
@ -137,7 +137,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) createOrUpdateCreateReq
// BeginDelete - The operation to delete the VMSS VM run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -164,7 +164,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) BeginDelete(ctx context
// Delete - The operation to delete the VMSS VM run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMRunCommandsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, options *VirtualMachineScaleSetVMRunCommandsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMRunCommandsClient.BeginDelete"
@ -214,7 +214,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) deleteCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@ -223,7 +223,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) deleteCreateRequest(ctx
// Get - The operation to get the VMSS VM run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -283,7 +283,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) getCreateRequest(ctx co
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@ -300,7 +300,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) getHandleResponse(resp
// NewListPager - The operation to get all run commands of an instance in Virtual Machine Scaleset.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -356,7 +356,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) listCreateRequest(ctx c
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
return req, nil
@ -374,7 +374,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) listHandleResponse(resp
// BeginUpdate - The operation to update the VMSS VM run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -402,7 +402,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) BeginUpdate(ctx context
// Update - The operation to update the VMSS VM run command.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMRunCommandsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, runCommandName string, runCommand VirtualMachineRunCommandUpdate, options *VirtualMachineScaleSetVMRunCommandsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMRunCommandsClient.BeginUpdate"
@ -452,7 +452,7 @@ func (client *VirtualMachineScaleSetVMRunCommandsClient) updateCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
if err := runtime.MarshalAsJSON(req, runCommand); err != nil {

View file

@ -48,7 +48,7 @@ func NewVirtualMachineScaleSetVMsClient(subscriptionID string, credential azcore
// BeginApproveRollingUpgrade - Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -74,7 +74,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginApproveRollingUpgrade(ctx co
// ApproveRollingUpgrade - Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) approveRollingUpgrade(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginApproveRollingUpgradeOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginApproveRollingUpgrade"
@ -120,7 +120,7 @@ func (client *VirtualMachineScaleSetVMsClient) approveRollingUpgradeCreateReques
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -129,7 +129,7 @@ func (client *VirtualMachineScaleSetVMsClient) approveRollingUpgradeCreateReques
// BeginAttachDetachDataDisks - Attach and detach data disks to/from a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -157,7 +157,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginAttachDetachDataDisks(ctx co
// AttachDetachDataDisks - Attach and detach data disks to/from a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) attachDetachDataDisks(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters AttachDetachDataDisksRequest, options *VirtualMachineScaleSetVMsClientBeginAttachDetachDataDisksOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginAttachDetachDataDisks"
@ -203,7 +203,7 @@ func (client *VirtualMachineScaleSetVMsClient) attachDetachDataDisksCreateReques
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -217,7 +217,7 @@ func (client *VirtualMachineScaleSetVMsClient) attachDetachDataDisksCreateReques
// machine once it is deallocated.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -245,7 +245,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginDeallocate(ctx context.Conte
// machine once it is deallocated.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) deallocate(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginDeallocateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginDeallocate"
@ -291,7 +291,7 @@ func (client *VirtualMachineScaleSetVMsClient) deallocateCreateRequest(ctx conte
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -300,7 +300,7 @@ func (client *VirtualMachineScaleSetVMsClient) deallocateCreateRequest(ctx conte
// BeginDelete - Deletes a virtual machine from a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -326,7 +326,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginDelete(ctx context.Context,
// Delete - Deletes a virtual machine from a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) deleteOperation(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginDeleteOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginDelete"
@ -372,10 +372,10 @@ func (client *VirtualMachineScaleSetVMsClient) deleteCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.ForceDeletion != nil {
reqQP.Set("forceDeletion", strconv.FormatBool(*options.ForceDeletion))
}
reqQP.Set("api-version", "2023-09-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -384,7 +384,7 @@ func (client *VirtualMachineScaleSetVMsClient) deleteCreateRequest(ctx context.C
// Get - Gets a virtual machine from a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -439,7 +439,7 @@ func (client *VirtualMachineScaleSetVMsClient) getCreateRequest(ctx context.Cont
if options != nil && options.Expand != nil {
reqQP.Set("$expand", string(*options.Expand))
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -457,7 +457,7 @@ func (client *VirtualMachineScaleSetVMsClient) getHandleResponse(resp *http.Resp
// GetInstanceView - Gets the status of a virtual machine from a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -509,7 +509,7 @@ func (client *VirtualMachineScaleSetVMsClient) getInstanceViewCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -526,7 +526,7 @@ func (client *VirtualMachineScaleSetVMsClient) getInstanceViewHandleResponse(res
// NewListPager - Gets a list of all virtual machines in a VM scale sets.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - virtualMachineScaleSetName - The name of the VM scale set.
// - options - VirtualMachineScaleSetVMsClientListOptions contains the optional parameters for the VirtualMachineScaleSetVMsClient.NewListPager
@ -574,16 +574,16 @@ func (client *VirtualMachineScaleSetVMsClient) listCreateRequest(ctx context.Con
return nil, err
}
reqQP := req.Raw().URL.Query()
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
if options != nil && options.Filter != nil {
reqQP.Set("$filter", *options.Filter)
}
if options != nil && options.Select != nil {
reqQP.Set("$select", *options.Select)
}
if options != nil && options.Expand != nil {
reqQP.Set("$expand", *options.Expand)
}
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -601,7 +601,7 @@ func (client *VirtualMachineScaleSetVMsClient) listHandleResponse(resp *http.Res
// BeginPerformMaintenance - Performs maintenance on a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -627,7 +627,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginPerformMaintenance(ctx conte
// PerformMaintenance - Performs maintenance on a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) performMaintenance(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginPerformMaintenanceOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginPerformMaintenance"
@ -673,7 +673,7 @@ func (client *VirtualMachineScaleSetVMsClient) performMaintenanceCreateRequest(c
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -684,7 +684,7 @@ func (client *VirtualMachineScaleSetVMsClient) performMaintenanceCreateRequest(c
// charges.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -712,7 +712,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginPowerOff(ctx context.Context
// charges.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) powerOff(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginPowerOffOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginPowerOff"
@ -758,10 +758,10 @@ func (client *VirtualMachineScaleSetVMsClient) powerOffCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.SkipShutdown != nil {
reqQP.Set("skipShutdown", strconv.FormatBool(*options.SkipShutdown))
}
reqQP.Set("api-version", "2023-09-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -771,7 +771,7 @@ func (client *VirtualMachineScaleSetVMsClient) powerOffCreateRequest(ctx context
// back on.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -798,7 +798,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginRedeploy(ctx context.Context
// on.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) redeploy(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginRedeployOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginRedeploy"
@ -844,7 +844,7 @@ func (client *VirtualMachineScaleSetVMsClient) redeployCreateRequest(ctx context
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -853,7 +853,7 @@ func (client *VirtualMachineScaleSetVMsClient) redeployCreateRequest(ctx context
// BeginReimage - Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -879,7 +879,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginReimage(ctx context.Context,
// Reimage - Reimages (upgrade the operating system) a specific virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) reimage(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginReimageOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginReimage"
@ -925,7 +925,7 @@ func (client *VirtualMachineScaleSetVMsClient) reimageCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.VMScaleSetVMReimageInput != nil {
@ -941,7 +941,7 @@ func (client *VirtualMachineScaleSetVMsClient) reimageCreateRequest(ctx context.
// is only supported for managed disks.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -968,7 +968,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginReimageAll(ctx context.Conte
// is only supported for managed disks.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) reimageAll(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginReimageAllOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginReimageAll"
@ -1014,7 +1014,7 @@ func (client *VirtualMachineScaleSetVMsClient) reimageAllCreateRequest(ctx conte
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1023,7 +1023,7 @@ func (client *VirtualMachineScaleSetVMsClient) reimageAllCreateRequest(ctx conte
// BeginRestart - Restarts a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -1049,7 +1049,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginRestart(ctx context.Context,
// Restart - Restarts a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) restart(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginRestartOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginRestart"
@ -1095,7 +1095,7 @@ func (client *VirtualMachineScaleSetVMsClient) restartCreateRequest(ctx context.
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1105,7 +1105,7 @@ func (client *VirtualMachineScaleSetVMsClient) restartCreateRequest(ctx context.
// scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -1157,10 +1157,10 @@ func (client *VirtualMachineScaleSetVMsClient) retrieveBootDiagnosticsDataCreate
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2024-03-01")
if options != nil && options.SasURIExpirationTimeInMinutes != nil {
reqQP.Set("sasUriExpirationTimeInMinutes", strconv.FormatInt(int64(*options.SasURIExpirationTimeInMinutes), 10))
}
reqQP.Set("api-version", "2023-09-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1178,7 +1178,7 @@ func (client *VirtualMachineScaleSetVMsClient) retrieveBootDiagnosticsDataHandle
// BeginRunCommand - Run command on a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -1206,7 +1206,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginRunCommand(ctx context.Conte
// RunCommand - Run command on a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) runCommand(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters RunCommandInput, options *VirtualMachineScaleSetVMsClientBeginRunCommandOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginRunCommand"
@ -1252,7 +1252,7 @@ func (client *VirtualMachineScaleSetVMsClient) runCommandCreateRequest(ctx conte
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json, text/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
@ -1264,7 +1264,7 @@ func (client *VirtualMachineScaleSetVMsClient) runCommandCreateRequest(ctx conte
// SimulateEviction - The operation to simulate the eviction of spot virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -1315,7 +1315,7 @@ func (client *VirtualMachineScaleSetVMsClient) simulateEvictionCreateRequest(ctx
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1324,7 +1324,7 @@ func (client *VirtualMachineScaleSetVMsClient) simulateEvictionCreateRequest(ctx
// BeginStart - Starts a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set.
// - instanceID - The instance ID of the virtual machine.
@ -1350,7 +1350,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginStart(ctx context.Context, r
// Start - Starts a virtual machine in a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) start(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, options *VirtualMachineScaleSetVMsClientBeginStartOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginStart"
@ -1396,7 +1396,7 @@ func (client *VirtualMachineScaleSetVMsClient) startCreateRequest(ctx context.Co
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil
@ -1405,7 +1405,7 @@ func (client *VirtualMachineScaleSetVMsClient) startCreateRequest(ctx context.Co
// BeginUpdate - Updates a virtual machine of a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - resourceGroupName - The name of the resource group.
// - vmScaleSetName - The name of the VM scale set where the extension should be create or updated.
// - instanceID - The instance ID of the virtual machine.
@ -1432,7 +1432,7 @@ func (client *VirtualMachineScaleSetVMsClient) BeginUpdate(ctx context.Context,
// Update - Updates a virtual machine of a VM scale set.
// If the operation fails it returns an *azcore.ResponseError type.
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
func (client *VirtualMachineScaleSetVMsClient) update(ctx context.Context, resourceGroupName string, vmScaleSetName string, instanceID string, parameters VirtualMachineScaleSetVM, options *VirtualMachineScaleSetVMsClientBeginUpdateOptions) (*http.Response, error) {
var err error
const operationName = "VirtualMachineScaleSetVMsClient.BeginUpdate"
@ -1478,15 +1478,15 @@ func (client *VirtualMachineScaleSetVMsClient) updateCreateRequest(ctx context.C
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
if options != nil && options.IfMatch != nil {
req.Raw().Header["If-Match"] = []string{*options.IfMatch}
}
if options != nil && options.IfNoneMatch != nil {
req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch}
}
req.Raw().Header["Accept"] = []string{"application/json"}
if err := runtime.MarshalAsJSON(req, parameters); err != nil {
return nil, err
}

View file

@ -46,7 +46,7 @@ func NewVirtualMachineSizesClient(subscriptionID string, credential azcore.Token
// NewListPager - This API is deprecated. Use Resources Skus [https://docs.microsoft.com/rest/api/compute/resourceskus/list]
//
// Generated from API version 2023-09-01
// Generated from API version 2024-03-01
// - location - The location upon which virtual-machine-sizes is queried.
// - options - VirtualMachineSizesClientListOptions contains the optional parameters for the VirtualMachineSizesClient.NewListPager
// method.
@ -90,7 +90,7 @@ func (client *VirtualMachineSizesClient) listCreateRequest(ctx context.Context,
return nil, err
}
reqQP := req.Raw().URL.Query()
reqQP.Set("api-version", "2023-09-01")
reqQP.Set("api-version", "2024-03-01")
req.Raw().URL.RawQuery = reqQP.Encode()
req.Raw().Header["Accept"] = []string{"application/json"}
return req, nil